summaryrefslogtreecommitdiff
path: root/nfa.c
diff options
context:
space:
mode:
authorWill Estes <wlestes@users.sourceforge.net>2001-05-18 21:25:31 +0000
committerWill Estes <wlestes@users.sourceforge.net>2001-05-18 21:25:31 +0000
commitd2bfee0cce6e4a42fe921e66884ee0cc661dda89 (patch)
tree84632fffa8674967649d9d6e569c097ba3de5306 /nfa.c
parentab16cad4746ef05ca1917263bccb79376a0a7882 (diff)
john millaway's reentrancy patch
Diffstat (limited to 'nfa.c')
-rw-r--r--nfa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nfa.c b/nfa.c
index 216cc30..ec0ffeb 100644
--- a/nfa.c
+++ b/nfa.c
@@ -235,11 +235,11 @@ int mach, variable_trail_rule, headcnt, trailcnt;
/* Do trailing context magic to not match the trailing
* characters.
*/
- char *scanner_cp = "yy_c_buf_p = yy_cp";
+ char *scanner_cp = "YY_G(yy_c_buf_p) = yy_cp";
char *scanner_bp = "yy_bp";
add_action(
- "*yy_cp = yy_hold_char; /* undo effects of setting up yytext */\n" );
+ "*yy_cp = YY_G(yy_hold_char); /* undo effects of setting up yytext */\n" );
if ( headcnt > 0 )
{