summaryrefslogtreecommitdiffhomepage
path: root/src/compile.h
diff options
context:
space:
mode:
authorYuichiro MASUI <[email protected]>2012-05-06 20:04:33 +0900
committerYuichiro MASUI <[email protected]>2012-05-06 20:04:33 +0900
commit11b6366e48d3358bf85e488fc78573336251910f (patch)
tree4fe6e224b7afdc5b3a25c5a3e9d44d96c002b44a /src/compile.h
parent4f9a7e90adf0bdd77e7971d5066834c68eac33b0 (diff)
downloadmruby-11b6366e48d3358bf85e488fc78573336251910f.tar.gz
mruby-11b6366e48d3358bf85e488fc78573336251910f.zip
add const to char*
Diffstat (limited to 'src/compile.h')
-rw-r--r--src/compile.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compile.h b/src/compile.h
index 9d58acaa0..19894f3aa 100644
--- a/src/compile.h
+++ b/src/compile.h
@@ -41,7 +41,7 @@ struct mrb_parser_state {
mrb_state *mrb;
struct mrb_pool *pool;
mrb_ast_node *cells;
- char *s, *send;
+ const char *s, *send;
FILE *f;
int lineno;
int column;
@@ -78,9 +78,9 @@ struct mrb_parser_state {
};
struct mrb_parser_state* mrb_parse_file(mrb_state*,FILE*);
-struct mrb_parser_state* mrb_parse_string(mrb_state*,char*);
-struct mrb_parser_state* mrb_parse_nstring(mrb_state*,char*,size_t);
-struct mrb_parser_state* mrb_parse_nstring_ext(mrb_state*,char*,size_t);
+struct mrb_parser_state* mrb_parse_string(mrb_state*,const char*);
+struct mrb_parser_state* mrb_parse_nstring(mrb_state*,const char*,size_t);
+struct mrb_parser_state* mrb_parse_nstring_ext(mrb_state*,const char*,size_t);
int mrb_generate_code(mrb_state*, mrb_ast_node*);
int mrb_compile_file(mrb_state*,FILE*);