adapted to print(3L) module

This commit is contained in:
erikb
1986-04-03 14:32:56 +00:00
parent 22f6299fdb
commit 2118a5eea0
11 changed files with 87 additions and 109 deletions

View File

@@ -88,7 +88,7 @@ hash_stat()
if (options['h']) {
int i;
printf("Hash table tally:\n");
print("Hash table tally:\n");
for (i = 0; i < HASHSIZE; i++) {
struct idf *notch = idf_hashtable[i];
int cnt = 0;
@@ -97,9 +97,9 @@ hash_stat()
cnt++;
notch = notch->next;
}
printf("%d %d\n", i, cnt);
print("%d %d\n", i, cnt);
}
printf("End hash table tally\n");
print("End hash table tally\n");
}
}
#endif DEBUG
@@ -139,9 +139,9 @@ gen_idf()
*/
static int name_cnt;
char buff[100];
char *sprintf();
char *sprint();
sprintf(buff, "#%d in %s, line %u",
sprint(buff, "#%d in %s, line %u",
++name_cnt, dot.tk_file, dot.tk_line);
return str2idf(buff);
}