relaxed the ;-terminator requirement for parameters

This commit is contained in:
ceriel
1991-08-23 16:23:07 +00:00
parent 3c221691b3
commit b1fdacb99c
6 changed files with 25 additions and 42 deletions

View File

@@ -236,7 +236,7 @@ error(lineno,s,t,u) string s,t,u; {
++nerrors;
if (!lineno) lineno = 1;
fprintf(stderr,"\"%s\", line %d : ",f_input, lineno);
fprintf(stderr,"\"%s\", line %d: ",f_input, lineno);
fprintf(stderr,s,t,u);
fputs("\n",stderr);
}
@@ -249,7 +249,7 @@ warning(lineno,s,t,u) string s,t,u; {
if (wflag) return;
if (!lineno) lineno = 1;
fprintf(stderr,"\"%s\", line %d : (Warning) ",f_input, lineno);
fprintf(stderr,"\"%s\", line %d: (Warning) ",f_input, lineno);
fprintf(stderr,s,t,u);
fputs("\n",stderr);
}
@@ -339,13 +339,3 @@ install(target, source) string target, source; {
RENAME(f_pars,target);
}
}
#ifndef NDEBUG
badassertion(asstr,file,line) char *asstr, *file; {
fprintf(stderr,"Assertion \"%s\" failed %s(%d)\n",asstr,file,line);
if (fact != NULL) fclose(fact);
if (fpars != NULL) fclose(fpars);
abort();
}
#endif