summaryrefslogtreecommitdiffhomepage
path: root/include/mruby.h
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-05-31 22:49:38 +0900
committerYukihiro Matsumoto <[email protected]>2012-05-31 22:49:38 +0900
commitae9d9a07811c0becbf4f435dcaa2a57ff8cdb050 (patch)
tree6c6c500790b9888c16c510e5193665ee4931c6f0 /include/mruby.h
parenta61fe5456348c9c2f2ab57f2d0d4b48195287712 (diff)
downloadmruby-ae9d9a07811c0becbf4f435dcaa2a57ff8cdb050.tar.gz
mruby-ae9d9a07811c0becbf4f435dcaa2a57ff8cdb050.zip
correctly share string bodies
Diffstat (limited to 'include/mruby.h')
-rw-r--r--include/mruby.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mruby.h b/include/mruby.h
index c86c3b478..724f01d3e 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -341,8 +341,9 @@ void *mrb_realloc(mrb_state*, void*, size_t);
struct RBasic *mrb_obj_alloc(mrb_state*, enum mrb_vtype, struct RClass*);
void *mrb_free(mrb_state*, void*);
-mrb_value mrb_str_new(mrb_state *mrb, const char *p, size_t len); /* mrb_str_new */
+mrb_value mrb_str_new(mrb_state *mrb, const char *p, int len); /* mrb_str_new */
mrb_value mrb_str_new_cstr(mrb_state*, const char*);
+mrb_value mrb_str_new2(mrb_state *mrb, const char *p);
mrb_state* mrb_open(void);
mrb_state* mrb_open_allocf(mrb_allocf);