summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-07-03 14:28:19 +0900
committerYukihiro Matsumoto <[email protected]>2012-07-03 14:28:19 +0900
commit97b1c57600b243e086114179cd61e3503beaa1e6 (patch)
treeaed758eb43bdfd9b8a2e873d91a931d052f17824 /include
parent3be4e91376804c1815e38d4a591ab152fba9d3b3 (diff)
downloadmruby-97b1c57600b243e086114179cd61e3503beaa1e6.tar.gz
mruby-97b1c57600b243e086114179cd61e3503beaa1e6.zip
constify parser input strings
Diffstat (limited to 'include')
-rw-r--r--include/mruby/compile.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mruby/compile.h b/include/mruby/compile.h
index e549a2f5c..fa21d81a6 100644
--- a/include/mruby/compile.h
+++ b/include/mruby/compile.h
@@ -95,8 +95,8 @@ struct mrb_parser_state* mrb_parse_nstring(mrb_state*,const char*,int);
int mrb_generate_code(mrb_state*, mrb_ast_node*);
int mrb_compile_file(mrb_state*,FILE*);
-int mrb_compile_string(mrb_state*,char*);
-int mrb_compile_nstring(mrb_state*,char*,int);
+int mrb_compile_string(mrb_state*,const char*);
+int mrb_compile_nstring(mrb_state*,const char*,int);
#if defined(__cplusplus)
} /* extern "C" { */