Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/flex/dist/src Add missing macros to the non-rec...



details:   https://anonhg.NetBSD.org/src/rev/781b6a08ec73
branches:  trunk
changeset: 350059:781b6a08ec73
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Jan 03 00:50:11 2017 +0000

description:
Add missing macros to the non-recursive prefixed-parser. Disable macros
for the recursive parser.

diffstat:

 external/bsd/flex/dist/src/flex.skl |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r 9755937213be -r 781b6a08ec73 external/bsd/flex/dist/src/flex.skl
--- a/external/bsd/flex/dist/src/flex.skl       Tue Jan 03 00:35:07 2017 +0000
+++ b/external/bsd/flex/dist/src/flex.skl       Tue Jan 03 00:50:11 2017 +0000
@@ -61,11 +61,17 @@
 m4_ifelse(M4_YY_PREFIX,yy,,
 #define yy_create_buffer M4_YY_PREFIX[[_create_buffer]]
 #define yy_delete_buffer M4_YY_PREFIX[[_delete_buffer]]
-#define yy_flex_debug M4_YY_PREFIX[[_flex_debug]]
+#define yy_scan_buffer M4_YY_PREFIX[[_scan_buffer]]
+#define yy_scan_string M4_YY_PREFIX[[_scan_string]]
+#define yy_scan_bytes M4_YY_PREFIX[[_scan_bytes]]
 #define yy_init_buffer M4_YY_PREFIX[[_init_buffer]]
 #define yy_flush_buffer M4_YY_PREFIX[[_flush_buffer]]
 #define yy_load_buffer_state M4_YY_PREFIX[[_load_buffer_state]]
 #define yy_switch_to_buffer M4_YY_PREFIX[[_switch_to_buffer]]
+#define yypush_buffer_state M4_YY_PREFIX[[push_buffer_state]]
+#define yypop_buffer_state M4_YY_PREFIX[[pop_buffer_state]]
+#define yyensure_buffer_stack M4_YY_PREFIX[[ensure_buffer_stack]]
+#define yy_flex_debug M4_YY_PREFIX[[_flex_debug]]
 #define yyin M4_YY_PREFIX[[in]]
 #define yyleng M4_YY_PREFIX[[leng]]
 #define yylex M4_YY_PREFIX[[lex]]
@@ -120,7 +126,7 @@
 %endif
 
 %if-c-only
-m4_ifelse(M4_YY_PREFIX,yy,,
+m4_ifelse(M4_YY_PREFIX,M4_YY_PREFIX,,
     M4_GEN_PREFIX(`_create_buffer')
     M4_GEN_PREFIX(`_delete_buffer')
     M4_GEN_PREFIX(`_scan_buffer')



Home | Main Index | Thread Index | Old Index