File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ COMPFLAGS=-strict-sequence -principal -absname -w +a-4-9-41-42-44-45-48 -warn-er
29
29
-bin-annot -safe-string -strict-formats $(INCLUDES)
30
30
LINKFLAGS=
31
31
32
- YACCFLAGS=-v -e
32
+ YACCFLAGS=-v --strict
33
33
CAMLLEX=$(CAMLRUN) boot/ocamllex
34
34
CAMLDEP=$(CAMLRUN) tools/ocamldep
35
35
DEPFLAGS=$(INCLUDES)
Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ void polymorphic_entry_point(char *s)
317
317
void forbidden_conflicts (void )
318
318
{
319
319
fprintf (stderr ,
320
- "%s: the grammar has conflicts, but -e was specified\n" ,
320
+ "%s: the grammar has conflicts, but --strict was specified\n" ,
321
321
myname );
322
322
done (1 );
323
323
}
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ void set_signals(void)
161
161
162
162
void usage (void )
163
163
{
164
- fprintf (stderr , "usage: %s [-v] [-e ] [-q] [-b file_prefix] filename\n" ,
164
+ fprintf (stderr , "usage: %s [-v] [--strict ] [-q] [-b file_prefix] filename\n" ,
165
165
myname );
166
166
exit (1 );
167
167
}
@@ -185,6 +185,10 @@ void getargs(int argc, char **argv)
185
185
return ;
186
186
187
187
case '-' :
188
+ if (!strcmp (argv [i ], "--strict" )){
189
+ eflag = 1 ;
190
+ goto end_of_option ;
191
+ }
188
192
++ i ;
189
193
goto no_more_options ;
190
194
@@ -214,10 +218,6 @@ void getargs(int argc, char **argv)
214
218
usage ();
215
219
continue ;
216
220
217
- case 'e' :
218
- eflag = 1 ;
219
- continue ;
220
-
221
221
default :
222
222
usage ();
223
223
}
You can’t perform that action at this time.
0 commit comments