diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2020-10-27 19:35:02 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2020-10-28 12:39:26 -0400 |
commit | d1dc1c0911b48e6bb4137a4aeeeead49082236eb (patch) | |
tree | 4b0dd69e2af98d740d278d98754ae593ecccec75 /src/flexdef.h | |
parent | f854b710512bb20ff41563e7ab9edfc10071fc08 (diff) | |
download | flex-git-d1dc1c0911b48e6bb4137a4aeeeead49082236eb.tar.gz |
Sever a number of dependencies on cpp by adding rewrite rules...
...in the flex scanner. Presently this works for yyecho(), yyinput(),
yystart(), yybegin(), and yyunput(). These no longer need to be nacros.
A few more remain to be done, notably yyless() and yymore().
Along the way, deprecate YY_FATAL_ERROR and add a replacement option.
Diffstat (limited to 'src/flexdef.h')
-rw-r--r-- | src/flexdef.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/flexdef.h b/src/flexdef.h index 098f72d..e5bdbc1 100644 --- a/src/flexdef.h +++ b/src/flexdef.h @@ -351,6 +351,7 @@ struct ctrl_bundle_t { char *postaction; // Code fragment to be inserted after each action char *emit; // Specify target language to emit. // flags corresponding to the huge mass of --no-yy options + bool no_yy_fatal_error; bool no_yy_push_state; bool no_yy_pop_state; bool no_yy_top_state; @@ -1059,6 +1060,8 @@ extern void scinstal(const char *, int); /* make a start condition */ /* Lookup the number associated with a start condition. */ extern int sclookup(const char *); +/* Supply context argument for a function if required */ +extern void context_call(char *); /* from file tblcmp.c */ |