diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/output.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output.cpp b/src/output.cpp index 4af9a1c..d4f86a9 100644 --- a/src/output.cpp +++ b/src/output.cpp @@ -76,7 +76,7 @@ void output_t::emit_header() { } void output_t::emit_reduction(unsigned rule_id, const std::string &action) { - std::fprintf(source_file, "void %sreduce_%u(void) {", prefix(), rule_id); + std::fprintf(source_file, "static inline void %sreduce_%u(void) {", prefix(), rule_id); std::fprintf(source_file, "%s", action.c_str()); std::fprintf(source_file, "}\n\n"); |