output: make reduce actions static inline
This commit is contained in:
parent
9154865ac3
commit
a4c2f94f8b
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ void output_t::emit_header() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void output_t::emit_reduction(unsigned rule_id, const std::string &action) {
|
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, "%s", action.c_str());
|
||||||
std::fprintf(source_file, "}\n\n");
|
std::fprintf(source_file, "}\n\n");
|
||||||
|
|
||||||
|
|
Reference in a new issue