rename mrb_value_p() to mrb_ptr() since _p means predicate in mruby source

This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-08-07 17:39:28 +09:00
parent 81f1476a04
commit 40e6cdcb5c
11 changed files with 23 additions and 23 deletions
+2 -2
View File
@@ -25,8 +25,8 @@ struct RString {
char *ptr;
};
#define mrb_str_ptr(s) ((struct RString*)(mrb_value_p(s)))
#define RSTRING(s) ((struct RString*)(mrb_value_p(s)))
#define mrb_str_ptr(s) ((struct RString*)(mrb_ptr(s)))
#define RSTRING(s) ((struct RString*)(mrb_ptr(s)))
#define RSTRING_PTR(s) (RSTRING(s)->ptr)
#define RSTRING_LEN(s) (RSTRING(s)->len)
#define RSTRING_CAPA(s) (RSTRING(s)->aux.capa)