Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use smart-pointer and generate C++ code for bison/flex #410

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ internal-tests :
test :
cd testing && cabal v1-install && bnfc-system-tests && cd ..

tag :
cd ./source && hasktags --etags .
#EOF
2 changes: 1 addition & 1 deletion source/src/BNFC/Backend/C.hs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ makeC opts cf = do
makefile :: String -> String -> String -> Doc
makefile name prefix basename = vcat
[ "CC = gcc -g"
, "CCFLAGS = --ansi -W -Wall -Wsign-conversion -Wno-unused-parameter -Wno-unused-function -Wno-unneeded-internal-declaration ${CC_OPTS}"
, "CCFLAGS = --ansi -W -Wall -Wsign-conversion -Wno-unused-parameter -Wno-unused-function ${CC_OPTS}"
-- The @#define _POSIX_C_SOURCE 200809L@ is now placed locally in
-- the generated lexer.
-- , "CCFLAGS = --ansi -W -Wall -Wno-unused-parameter -Wno-unused-function -Wno-unneeded-internal-declaration -D_POSIX_C_SOURCE=200809L ${CC_OPTS}"
Expand Down
Loading