Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions source/src/BNFC/Backend/CPP/PrettyPrinter.hs
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ mkHFile useStl inPackage cf groups = unlines
" /* The following are simple heuristics for rendering terminals */",
" /* You may wish to change them */",
" void render(Char c);",
" void render(String s);",
if useStl then "void render(char *s);" else "",
if useStl then " void render(String s);" else "",
"void render(const char *s);",
" void indent(void);",
" void backup(void);",
" public:",
Expand Down Expand Up @@ -711,7 +711,7 @@ prRender useStl = unlines
[ "bufAppend(s);"
, "bufAppend(' ');" ] ]
in if useStl then render renderString else "",
"void PrintAbsyn::render(char *s)",
"void PrintAbsyn::render(const char *s)",
"{",
" if(strlen(s) > 0)",
" {",
Expand Down