summaryrefslogtreecommitdiff
path: root/src/flexdef.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2020-10-27 19:35:02 -0400
committerEric S. Raymond <esr@thyrsus.com>2020-10-28 12:39:26 -0400
commitd1dc1c0911b48e6bb4137a4aeeeead49082236eb (patch)
tree4b0dd69e2af98d740d278d98754ae593ecccec75 /src/flexdef.h
parentf854b710512bb20ff41563e7ab9edfc10071fc08 (diff)
downloadflex-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.h3
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 */