summaryrefslogtreecommitdiffhomepage
path: root/src/compile.h
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-05-06 06:32:43 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2012-05-06 06:32:43 -0700
commitb666b7d112b0c558fcec14ec1d36ceae2efc0a9b (patch)
tree6af5dde92226760c69fbba1e9d44f6a7d5512fb9 /src/compile.h
parent4edfe3bc379ffd42ea56108582316a98bf142101 (diff)
parent11b6366e48d3358bf85e488fc78573336251910f (diff)
downloadmruby-b666b7d112b0c558fcec14ec1d36ceae2efc0a9b.tar.gz
mruby-b666b7d112b0c558fcec14ec1d36ceae2efc0a9b.zip
Merge pull request #102 from MobiRuby/add_const
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*);