summaryrefslogtreecommitdiffstats
path: root/scripts/config/lexer.lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/config/lexer.lex.c')
-rw-r--r--scripts/config/lexer.lex.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/scripts/config/lexer.lex.c b/scripts/config/lexer.lex.c
index 826c06e4e7..c57119fa23 100644
--- a/scripts/config/lexer.lex.c
+++ b/scripts/config/lexer.lex.c
@@ -14,6 +14,7 @@
/* First, we deal with platform-specific or compiler-specific issues. */
/* begin standard C headers. */
+
#include <stdio.h>
#include <string.h>
#include <errno.h>
@@ -30,8 +31,8 @@
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
-/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
- * if you want the limit (max/min) macros for int types.
+/* C++ systems might need __STDC_LIMIT_MACROS defined before including
+ * <stdint.h>, if you want the limit (max/min) macros for int types.
*/
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS 1
@@ -2538,8 +2539,7 @@ YY_DECL
{
- int str = 0;
- int ts, i;
+ char open_quote = 0;
while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
{
@@ -2772,7 +2772,7 @@ return T_PLUS_EQUAL;
case 48:
YY_RULE_SETUP
{
- str = yytext[0];
+ open_quote = yytext[0];
new_string();
BEGIN(STRING);
}
@@ -2837,7 +2837,7 @@ YY_RULE_SETUP
case 58:
YY_RULE_SETUP
{
- if (str == yytext[0]) {
+ if (open_quote == yytext[0]) {
BEGIN(INITIAL);
yylval.string = text;
return T_WORD_QUOTE;
@@ -2869,6 +2869,8 @@ case YY_STATE_EOF(STRING):
case 60:
YY_RULE_SETUP
{
+ int ts, i;
+
ts = 0;
for (i = 0; i < yyleng; i++) {
if (yytext[i] == '\t')