public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
909a82d
)
%c does not work with null-bytes on some systems (BSD 2.9)
author
ceriel
<none@none>
Mon, 16 Mar 1987 08:56:31 +0000
(08:56 +0000)
committer
ceriel
<none@none>
Mon, 16 Mar 1987 08:56:31 +0000
(08:56 +0000)
util/LLgen/src/LLgen.g
patch
|
blob
|
history
diff --git
a/util/LLgen/src/LLgen.g
b/util/LLgen/src/LLgen.g
index
424a3a7
..
ea15510
100644
(file)
--- a/
util/LLgen/src/LLgen.g
+++ b/
util/LLgen/src/LLgen.g
@@
-82,7
+82,8
@@
spec : { acount = 0; }
{ /*
* Put an endmarker in temporary file
*/
- fprintf(fact,"%c%c",'\0', '\0');
+ putc('\0', fact);
+ putc('\0', fact);
}
;
@@
-482,7
+483,8
@@
copyact(ch1,ch2,flag,level) char ch1,ch2; {
if (!level) {
saved = linecount;
nparams = 0; /* count comma's */
- fprintf(f,"%c# line %d \"%s\"\n", '\0', linecount,f_input);
+ putc('\0',f);
+ fprintf(f,"# line %d \"%s\"\n", linecount,f_input);
}
if (level || flag == 1) putc(ch1,f);
for (;;) {