From c9ade3f92bb952da5fac35f474f445d84dc18bd1 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 23 Sep 2020 19:49:31 -0400 Subject: 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 --- src/flexdef.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/flexdef.h') 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; -- cgit v1.2.1