From 4f80c3fedf8c45e07b70d069b0f59b36b8278be5 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Thu, 4 May 2000 08:43:30 +0000 Subject: save and restore `len' in lexsave/restore (11142) --- Src/lex.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Src') diff --git a/Src/lex.c b/Src/lex.c index ccd04b2d9..6ba6b49b0 100644 --- a/Src/lex.c +++ b/Src/lex.c @@ -178,6 +178,7 @@ struct lexstack { char *yytext; char *bptr; int bsiz; + int len; short *chwords; int chwordlen; int chwordpos; @@ -236,6 +237,7 @@ lexsave(void) ls->yytext = yytext; ls->bptr = bptr; ls->bsiz = bsiz; + ls->len = len; ls->chwords = chwords; ls->chwordlen = chwordlen; ls->chwordpos = chwordpos; @@ -296,6 +298,7 @@ lexrestore(void) yytext = lstack->yytext; bptr = lstack->bptr; bsiz = lstack->bsiz; + len = lstack->len; chwords = lstack->chwords; chwordlen = lstack->chwordlen; chwordpos = lstack->chwordpos; -- cgit 1.4.1