diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-04-05 02:39:47 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-04-05 02:39:47 +0200 |
commit | a4c2f94f8b14db9489b202c8dff21880e9c1f739 (patch) | |
tree | 0a34f6ac8684aa06a009c24b0becd8625e3d72aa /src | |
parent | 9154865ac31c41895ce1ac0842cd8aad277cb08b (diff) | |
download | solar-a4c2f94f8b14db9489b202c8dff21880e9c1f739.tar solar-a4c2f94f8b14db9489b202c8dff21880e9c1f739.zip |
output: make reduce actions static inline
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"); |