From 66f8d960ff1458e5c632d9853232daa2c0c5c768 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 8 Dec 2009 22:04:39 +0000 Subject: [PATCH] Worked around the bug in flex 2.5.35 that causes yy_size_t/int comparison warnings. --- Cycript.l.in | 2 +- makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cycript.l.in b/Cycript.l.in index 5b4d5d9..70d4e53 100644 --- a/Cycript.l.in +++ b/Cycript.l.in @@ -347,7 +347,7 @@ XMLName {XMLNameStart}{XMLNamePart}* char *value(reinterpret_cast(apr_palloc(yyextra->pool_, yyleng))); char *local(value); - for (size_t i(1); i != yyleng - 1; ++i) { + for (yy_size_t i(1), e(yyleng - 1); i != e; ++i) { char next(yytext[i]); if (yytext[i] == '\\') diff --git a/makefile b/makefile index 190fbb4..42ba7d6 100644 --- a/makefile +++ b/makefile @@ -121,7 +121,7 @@ Cycript.tab.cc Cycript.tab.hh location.hh position.hh: Cycript.yy bison -v --report=state $< lex.cy.c: Cycript.l - flex $< + flex -t $< | sed -e 's/int yyl;/yy_size_t yyl;/;s/int yyleng_r;/yy_size_t yyleng_r;/' >$@ #Parser.hpp: Parser.py Parser.dat # ./Parser.py $@ -- 2.49.0