summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-04-05 02:39:47 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-04-05 02:39:47 +0200
commita4c2f94f8b14db9489b202c8dff21880e9c1f739 (patch)
tree0a34f6ac8684aa06a009c24b0becd8625e3d72aa /src
parent9154865ac31c41895ce1ac0842cd8aad277cb08b (diff)
downloadsolar-a4c2f94f8b14db9489b202c8dff21880e9c1f739.tar
solar-a4c2f94f8b14db9489b202c8dff21880e9c1f739.zip
output: make reduce actions static inline
Diffstat (limited to 'src')
-rw-r--r--src/output.cpp2
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");