From: Jay Freeman (saurik) Date: Sun, 23 Sep 2012 15:27:54 +0000 (-0700) Subject: Parse bison output to prevent LexSetRegExp mistakes. X-Git-Tag: v0.9.500%b1~125 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/5b75838211f16d9c88fb1bae3193e3693a1bee39?hp=70234143cce404215fb1809116076d23f6091521 Parse bison output to prevent LexSetRegExp mistakes. --- diff --git a/GNUmakefile.in b/GNUmakefile.in index 941bb2d..1990dfa 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -204,6 +204,8 @@ distclean: clean Cycript.tab.cc Cycript.tab.hh location.hh position.hh: Cycript.yy $(bison) -v --report=state $< + ! grep '^ *$$default reduce using rule [0-9]* (LexSetRegExp)$$' Cycript.output -B 2 | grep 'shift, and go to state [0-9]*$$' + ! grep '^ *$$default reduce using rule [0-9]* (LexSetRegExp)$$' Cycript.output -B 2 | grep -v '\$default' | grep 'reduce using rule [0-9]* ([^)]*)$$' lex.cy.c: Cycript.l $(flex) -t $< | $(sed) -e 's/int yyl;/yy_size_t yyl;/;s/int yyleng_r;/yy_size_t yyleng_r;/' >$@