From 149d5e8f19dda2fa4d898fbbc7d922b29c8aa281 Mon Sep 17 00:00:00 2001 From: albert-github Date: Wed, 18 Dec 2019 11:38:14 +0100 Subject: Incorrect warning "yyextra->inside" instead of "inside" We get warnings like: ``` warning: reached end of file while yyextra->inside a 'code' block! warning: Ignoring \brief command yyextra->inside argument documentation ``` this is due to the fact that the scanner has been made reentrant (inside becomes yyextra->inside and this slipped into the warning strings as well) --- src/scanner.l | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scanner.l b/src/scanner.l index 7115129..c1718dc 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -4307,7 +4307,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) . { yyextra->fullArgString+=*yytext; } {CMD}("brief"|"short"){B}+ { warn(yyextra->yyFileName,yyextra->yyLineNr, - "Ignoring %cbrief command yyextra->inside argument documentation",*yytext + "Ignoring %cbrief command inside argument documentation",*yytext ); yyextra->fullArgString+=' '; } @@ -6421,7 +6421,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) } <> { warn(yyextra->yyFileName,yyextra->yyLineNr, - "reached end of file while yyextra->inside a '%s' block!\n" + "reached end of file while inside a '%s' block!\n" "The command that should end the block seems to be missing!\n", yyextra->docBlockName.data()); yyterminate(); -- cgit v0.12