2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-30 22:05:46 +00:00

Fix up #line entries that reference lex.sudoers.c.

This commit is contained in:
Todd C. Miller
2018-10-16 10:31:43 -06:00
parent 387672583e
commit a9fd783f20
2 changed files with 5 additions and 5 deletions

View File

@@ -321,7 +321,7 @@ $(devdir)/toke.c: $(srcdir)/toke.l
else \
toke_l="$(srcdir)/toke.l"; \
fi; \
cmd='$(FLEX) '"$$toke_l"'; echo "#include <config.h>" > $(devdir)/toke.c; cat lex.sudoers.c >> $(devdir)/toke.c; rm -f lex.sudoers.c'; \
cmd='$(FLEX) '"$$toke_l"'; echo "#include <config.h>" > $(devdir)/toke.c; $(SED) "s/^\\(#line .*\\) \"lex\\.sudoers\\.c\"/\1 \"toke.c\"/" lex.sudoers.c >> $(devdir)/toke.c; rm -f lex.sudoers.c'; \
echo "$$cmd"; eval $$cmd; \
fi

View File

@@ -1,6 +1,6 @@
#include <config.h>
#line 3 "lex.sudoers.c"
#line 3 "toke.c"
#define YY_INT_ALIGNED short int
@@ -2133,7 +2133,7 @@ int (*trace_print)(const char *msg) = sudoers_trace_print;
#line 2136 "lex.sudoers.c"
#line 2136 "toke.c"
#define INITIAL 0
#define GOTDEFS 1
@@ -2351,7 +2351,7 @@ YY_DECL
{
#line 116 "toke.l"
#line 2354 "lex.sudoers.c"
#line 2354 "toke.c"
while ( 1 ) /* loops until end-of-file is reached */
{
@@ -3277,7 +3277,7 @@ YY_RULE_SETUP
#line 745 "toke.l"
ECHO;
YY_BREAK
#line 3280 "lex.sudoers.c"
#line 3280 "toke.c"
case YY_END_OF_BUFFER:
{