From: Jay Freeman (saurik) Date: Wed, 12 Jun 2013 07:02:22 +0000 (-0700) Subject: Rename lex.cy.c to .cpp (it's actually a C++ file). X-Git-Tag: v0.9.500%b1~112 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/3a8ac5484c464ec0542fc4edd4a1723bd0fd132a Rename lex.cy.c to .cpp (it's actually a C++ file). --- diff --git a/GNUmakefile.in b/GNUmakefile.in index ef72335..e2c6f71 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -188,7 +188,7 @@ endif all: $(all) clean:: - rm -rf *.lo *.o *.d *.t.hpp .libs */*.d */*.lo */.libs lib*.la $(all) Struct.hpp lex.cy.c Cycript.tab.cc Cycript.tab.hh location.hh position.hh stack.hh Cycript.yy Cycript.l control Bridge.gperf Bridge.hpp Cycript.output + rm -rf *.lo *.o *.d *.t.hpp .libs */*.d */*.lo */.libs lib*.la $(all) Struct.hpp lex.cy.cpp Cycript.tab.cc Cycript.tab.hh location.hh position.hh stack.hh Cycript.yy Cycript.l control Bridge.gperf Bridge.hpp Cycript.output ifneq ($(srcdir),.) rm -rf Mach ObjectiveC sig endif @@ -207,7 +207,7 @@ Cycript.tab.cc Cycript.tab.hh location.hh position.hh: Cycript.yy ! grep -n '^ *$$default reduce using rule [0-9]* (Lex[A-Z][^)]*)$$' Cycript.output -B 2 | grep 'shift, and go to state [0-9]*$$' ! grep -n '^ *$$default reduce using rule [0-9]* (Lex[A-Z][^)]*)$$' Cycript.output -B 2 | grep -v '$$default' | grep 'reduce using rule [0-9]* ([^)]*)$$' -lex.cy.c: Cycript.l +lex.cy.cpp: Cycript.l $(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 @@ -216,7 +216,7 @@ lex.cy.c: Cycript.l Cycript.tab.lo: Cycript.tab.cc $(header) $(libtool) --mode=compile $(cxx) $(cflags) -c -o $@ $< -lex.cy.lo: lex.cy.c $(header) +lex.cy.lo: lex.cy.cpp $(header) $(libtool) --mode=compile $(cxx) $(cflags) -c -o $@ $< %.lo: %.cpp $(header)