summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-05-15 08:58:21 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-05-15 08:58:21 +0900
commit157bebf43716336258e67a872e4ecf33ab151de8 (patch)
treedf27ea0f9cd07711979d96a4adaa34fd81c8c90c
parent6f6f50d5296656da9ff49169d2998a84ce28a0bf (diff)
parent688602eb811502fe4400ef84ae50f84dd04962e2 (diff)
downloadmruby-157bebf43716336258e67a872e4ecf33ab151de8.tar.gz
mruby-157bebf43716336258e67a872e4ecf33ab151de8.zip
Merge pull request #2255 from mitchblank/master
two trivial fixes
-rwxr-xr-xminirake4
-rw-r--r--src/codegen.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/minirake b/minirake
index 824e9b598..bdaef0b87 100755
--- a/minirake
+++ b/minirake
@@ -310,7 +310,7 @@ class RakeApp
['--nosearch', '-N', GetoptLong::NO_ARGUMENT,
"Do not search parent directories for the Rakefile."],
['--quiet', '-q', GetoptLong::NO_ARGUMENT,
- "Do not log messages to standard output."],
+ "Do not log messages to standard output (default)."],
['--rakefile', '-f', GetoptLong::REQUIRED_ARGUMENT,
"Use FILE as the rakefile."],
['--require', '-r', GetoptLong::REQUIRED_ARGUMENT,
@@ -324,7 +324,7 @@ class RakeApp
['--usage', '-h', GetoptLong::NO_ARGUMENT,
"Display usage."],
['--verbose', '-v', GetoptLong::NO_ARGUMENT,
- "Log message to standard output (default)."],
+ "Log message to standard output."],
['--directory', '-C', GetoptLong::REQUIRED_ARGUMENT,
"Change executing directory of rakefiles."]
]
diff --git a/src/codegen.c b/src/codegen.c
index 451b38129..a1564d955 100644
--- a/src/codegen.c
+++ b/src/codegen.c
@@ -2638,6 +2638,7 @@ loop_pop(codegen_scope *s, int val)
if (val) push();
}
+#ifdef ENABLE_STDIO
static int
print_r(mrb_state *mrb, mrb_irep *irep, size_t n, int pre)
{
@@ -2680,6 +2681,7 @@ print_lv(mrb_state *mrb, mrb_irep *irep, mrb_code c, int r)
}
printf("\n");
}
+#endif
static void
codedump(mrb_state *mrb, mrb_irep *irep)