diff options
author | albert-github <albert.tests@gmail.com> | 2020-11-20 15:25:30 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-11-20 15:25:30 (GMT) |
commit | a51a6d4845f8a8220700883db7c786a0007f1094 (patch) | |
tree | ce60282e974309104105042af2c99770f6da8c46 /libmscgen/mscgen_lexer.l | |
parent | 4211ec287793c0bae93977a9359db9bafef6d2ac (diff) | |
download | Doxygen-a51a6d4845f8a8220700883db7c786a0007f1094.zip Doxygen-a51a6d4845f8a8220700883db7c786a0007f1094.tar.gz Doxygen-a51a6d4845f8a8220700883db7c786a0007f1094.tar.bz2 |
Incorrect line count in case of an error in msc input
The variables to store line number etc. are static variables and should be reset on each invocation of the lex msc parser.
Diffstat (limited to 'libmscgen/mscgen_lexer.l')
-rw-r--r-- | libmscgen/mscgen_lexer.l | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libmscgen/mscgen_lexer.l b/libmscgen/mscgen_lexer.l index 52f5e05..ea812f9 100644 --- a/libmscgen/mscgen_lexer.l +++ b/libmscgen/mscgen_lexer.l @@ -234,5 +234,12 @@ Boolean lex_getutf8(void) return lex_utf8; } +void lex_resetparser() +{ + lex_linenum = 1; + lex_line = NULL; + lex_utf8 = FALSE; +} + #include "mscgen_lexer.l.h" /* END OF FILE */ |