diff options
Diffstat (limited to 'src/pre.l')
-rw-r--r-- | src/pre.l | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -71,8 +71,8 @@ struct CondCtx struct FileState { - FileState(int size) : fileBuf(size), - oldFileBuf(0), oldFileBufPos(0) {} + FileState(int size) : lineNr(1), fileBuf(size), + oldFileBuf(0), oldFileBufPos(0), bufState(0) {} int lineNr; BufStr fileBuf; BufStr *oldFileBuf; @@ -2299,7 +2299,7 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'")) } <DefName>{ID}{B}+"1"/[ \r\t\n] { // special case: define with 1 -> can be "guard" //printf("Define `%s'\n",yytext); - g_argDict = 0; + delete g_argDict; g_argDict=0; g_defArgs = -1; g_defArgsStr.resize(0); g_defName = yytext; @@ -2328,7 +2328,7 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'")) g_expectGuard=FALSE; } <DefName>{ID}/{B}*"\n" { // empty define - g_argDict = 0; + delete g_argDict; g_argDict=0; g_defArgs = -1; g_defName = yytext; g_defArgsStr.resize(0); @@ -2357,7 +2357,7 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'")) } <DefName>{ID}/{B}* { // define with content //printf("Define `%s'\n",yytext); - g_argDict = 0; + delete g_argDict; g_argDict=0; g_defArgs = -1; g_defArgsStr.resize(0); g_defText.resize(0); |