diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2020-10-10 17:21:11 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2020-10-10 17:21:11 -0400 |
commit | 0d1959c5956173060389021e931091269af6216e (patch) | |
tree | d40c210553c52b9d267038cdad3a102afed10123 /src/flexdef.h | |
parent | 76affdf8942bf5627a815edcb486f9dcc3067ae6 (diff) | |
download | flex-git-0d1959c5956173060389021e931091269af6216e.tar.gz |
Implement and document %yydecl directive to replace #define YY_DECL.
Also added a deprecation note abut the old mechanism.
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 d2d61cb..10bc90f 100644 --- a/src/flexdef.h +++ b/src/flexdef.h @@ -351,6 +351,7 @@ struct ctrl_bundle_t { bool use_read; // (-f, -F, or -Cr) use read() for scanner input // otherwise, use fread(). char *yyclass; // yyFlexLexer subclass to use for YY_DECL + char *yydecl; // user-specfied prototype for yylex. bool yytext_is_array; // if true (i.e., %array directive), then declare // yytext as array instead of a character pointer. // Nice and inefficient. |