removed the -n flag, but not its effect. The generated parser will

call LLmessage(-1) when saying "garbage at end of input".
This commit is contained in:
ceriel 1986-12-10 09:32:57 +00:00
parent fe2e67d1c6
commit c501c762cf
3 changed files with 1 additions and 7 deletions

View file

@ -82,4 +82,3 @@ extern int nerrors;
extern string rec_file, incl_file;
extern p_term terms;
extern p_link links;
extern int nflag;

View file

@ -206,7 +206,7 @@ genrecovery() {
}
fputs(c_arrend, f);
free((p_mem) index);
if (nflag) fputs("#define LL_NEWMESS\n", f);
fputs("#define LL_NEWMESS\n", f);
copyfile(rec_file);
if (ferror(f) != 0) {
fatal(0,"write error on temporary");

View file

@ -50,7 +50,6 @@ extern install();
# ifndef NDEBUG
extern badassertion();
# endif not NDEBUG
int nflag;
main(argc,argv) register string argv[]; {
register string arg;
@ -90,10 +89,6 @@ main(argc,argv) register string argv[]; {
incl_file = ++arg;
break;
# endif not NDEBUG
case 'n':
case 'N':
nflag = 1;
continue;
case 'x':
case 'X':
ntneeded = 1;