diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2020-09-23 19:49:31 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2020-09-23 19:49:31 -0400 |
commit | c9ade3f92bb952da5fac35f474f445d84dc18bd1 (patch) | |
tree | 15cf53f22f5142c0a1578b4c04fdd5d3b182215c /src/flexdef.h | |
parent | ca94d99782c1b2b0ac27c56b74d997e0906fc133 (diff) | |
download | flex-git-c9ade3f92bb952da5fac35f474f445d84dc18bd1.tar.gz |
Methodize whether fullspd mode can use a pointer table.
Presently only C can do this. Otherwise we fall through to storing
numeric indices for a tiny loss of performance.
No generated-code changes from this.
#33 in the retargeting patch series
Diffstat (limited to 'src/flexdef.h')
-rw-r--r-- | src/flexdef.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/flexdef.h b/src/flexdef.h index 6bed71d..f8575a6 100644 --- a/src/flexdef.h +++ b/src/flexdef.h @@ -345,6 +345,7 @@ struct flex_backend_t { char *caseprefix; // Prefix of an arm in the language's case construct char *fallthrough; // Finish a case arm with this to fall through char *endcase; // What to ship after all EOF-state case arms + int c_like; // Will &yy_transition[%d]," produce a pointer table entry? }; extern bool gentables; |