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:
parent
fe2e67d1c6
commit
c501c762cf
3 changed files with 1 additions and 7 deletions
|
@ -82,4 +82,3 @@ extern int nerrors;
|
||||||
extern string rec_file, incl_file;
|
extern string rec_file, incl_file;
|
||||||
extern p_term terms;
|
extern p_term terms;
|
||||||
extern p_link links;
|
extern p_link links;
|
||||||
extern int nflag;
|
|
||||||
|
|
|
@ -206,7 +206,7 @@ genrecovery() {
|
||||||
}
|
}
|
||||||
fputs(c_arrend, f);
|
fputs(c_arrend, f);
|
||||||
free((p_mem) index);
|
free((p_mem) index);
|
||||||
if (nflag) fputs("#define LL_NEWMESS\n", f);
|
fputs("#define LL_NEWMESS\n", f);
|
||||||
copyfile(rec_file);
|
copyfile(rec_file);
|
||||||
if (ferror(f) != 0) {
|
if (ferror(f) != 0) {
|
||||||
fatal(0,"write error on temporary");
|
fatal(0,"write error on temporary");
|
||||||
|
|
|
@ -50,7 +50,6 @@ extern install();
|
||||||
# ifndef NDEBUG
|
# ifndef NDEBUG
|
||||||
extern badassertion();
|
extern badassertion();
|
||||||
# endif not NDEBUG
|
# endif not NDEBUG
|
||||||
int nflag;
|
|
||||||
|
|
||||||
main(argc,argv) register string argv[]; {
|
main(argc,argv) register string argv[]; {
|
||||||
register string arg;
|
register string arg;
|
||||||
|
@ -90,10 +89,6 @@ main(argc,argv) register string argv[]; {
|
||||||
incl_file = ++arg;
|
incl_file = ++arg;
|
||||||
break;
|
break;
|
||||||
# endif not NDEBUG
|
# endif not NDEBUG
|
||||||
case 'n':
|
|
||||||
case 'N':
|
|
||||||
nflag = 1;
|
|
||||||
continue;
|
|
||||||
case 'x':
|
case 'x':
|
||||||
case 'X':
|
case 'X':
|
||||||
ntneeded = 1;
|
ntneeded = 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue