Skip to content

Commit

Permalink
Missing debug statements sqlcode and xmlcode lexers
Browse files Browse the repository at this point in the history
The messages for `doxygen -d lex` were missing in case of the sqlcode.l and xmlcode.l
  • Loading branch information
albert-github committed May 20, 2019
1 parent 08c26ab commit 03994c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sqlcode.l
Expand Up @@ -35,6 +35,7 @@
#include "config.h"
#include "filedef.h"
#include "tooltip.h"
#include "message.h"

#define YY_NEVER_INTERACTIVE 1
#define YY_NO_INPUT 1
Expand Down Expand Up @@ -379,6 +380,7 @@ void parseSqlCode(

sqlcodeYYlex_init_extra(&sqlcode_extra, &yyscanner);
struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
printlex(yy_flex_debug, TRUE, __FILE__, fd ? fd->fileName().data(): NULL);

yyextra->code = &od;
yyextra->inputString = s;
Expand Down Expand Up @@ -436,6 +438,7 @@ void parseSqlCode(

sqlcodeYYlex_destroy(yyscanner);

printlex(yy_flex_debug, FALSE, __FILE__, fd ? fd->fileName().data(): NULL);
return;
}

Expand Down
3 changes: 3 additions & 0 deletions src/xmlcode.l
Expand Up @@ -35,6 +35,7 @@
#include "config.h"
#include "filedef.h"
#include "tooltip.h"
#include "message.h"

#define YY_NEVER_INTERACTIVE 1
#define YY_NO_INPUT 1
Expand Down Expand Up @@ -338,6 +339,7 @@ void parseXmlCode(
)
{
if (s.isEmpty()) return;
printlex(yy_flex_debug, TRUE, __FILE__, fd ? fd->fileName().data(): NULL);
g_code = &od;
g_inputString = s;
Expand Down Expand Up @@ -393,6 +395,7 @@ void parseXmlCode(
g_sourceFileDef=0;
}
printlex(yy_flex_debug, FALSE, __FILE__, fd ? fd->fileName().data(): NULL);
return;
}
Expand Down

0 comments on commit 03994c7

Please sign in to comment.