summaryrefslogtreecommitdiffhomepage
path: root/src/dump.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-01-26 10:57:07 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-01-26 10:57:07 +0900
commit17ecf145111f903d62952fb1b557ea60471d7408 (patch)
treeac93ecf059dc48934a41e020f29986ea28e5ba42 /src/dump.c
parent165f79c877901db790070b97250633c5c92bcfe7 (diff)
downloadmruby-17ecf145111f903d62952fb1b557ea60471d7408.tar.gz
mruby-17ecf145111f903d62952fb1b557ea60471d7408.zip
Revert "Minimize the changes in #5277"
This reverts commit dc51d89ac22acc60b9bfeed87115863565b74085.
Diffstat (limited to 'src/dump.c')
-rw-r--r--src/dump.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dump.c b/src/dump.c
index d18ffebdc..216701ba8 100644
--- a/src/dump.c
+++ b/src/dump.c
@@ -1216,7 +1216,10 @@ mrb_dump_irep_cstruct(mrb_state *mrb, const mrb_irep *irep, uint8_t flags, FILE
if (fp == NULL || initname == NULL || initname[0] == '\0') {
return MRB_DUMP_INVALID_ARGUMENT;
}
- if (fprintf(fp, "#include <mruby.h>\n" "#include <mruby/proc.h>\n\n") < 0) {
+ if (fprintf(fp, "#include <mruby.h>\n"
+ "#include <mruby/proc.h>\n"
+ "#include <mruby/presym.h>\n"
+ "\n") < 0) {
return MRB_DUMP_WRITE_FAULT;
}
fputs("#define mrb_BRACED(...) {__VA_ARGS__}\n", fp);