move IS_EVSTR macro that should be private to src/string.c

parent cc28f868
...@@ -11,8 +11,6 @@ ...@@ -11,8 +11,6 @@
extern "C" { extern "C" {
#endif #endif
#define IS_EVSTR(p,e) ((p) < (e) && (*(p) == '$' || *(p) == '@' || *(p) == '{'))
extern const char mrb_digitmap[]; extern const char mrb_digitmap[];
#define RSTRING_EMBED_LEN_MAX ((mrb_int)(sizeof(void*) * 3 - 1)) #define RSTRING_EMBED_LEN_MAX ((mrb_int)(sizeof(void*) * 3 - 1))
......
...@@ -2308,6 +2308,8 @@ mrb_str_upcase(mrb_state *mrb, mrb_value self) ...@@ -2308,6 +2308,8 @@ mrb_str_upcase(mrb_state *mrb, mrb_value self)
return str; return str;
} }
#define IS_EVSTR(p,e) ((p) < (e) && (*(p) == '$' || *(p) == '@' || *(p) == '{'))
/* /*
* call-seq: * call-seq:
* str.dump -> new_str * str.dump -> new_str
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment