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

This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-06-06 00:19:46 +09:00
parent cc28f868f1
commit b1dd57efa1
2 changed files with 2 additions and 2 deletions
-2
View File
@@ -11,8 +11,6 @@
extern "C" {
#endif
#define IS_EVSTR(p,e) ((p) < (e) && (*(p) == '$' || *(p) == '@' || *(p) == '{'))
extern const char mrb_digitmap[];
#define RSTRING_EMBED_LEN_MAX ((mrb_int)(sizeof(void*) * 3 - 1))
+2
View File
@@ -2308,6 +2308,8 @@ mrb_str_upcase(mrb_state *mrb, mrb_value self)
return str;
}
#define IS_EVSTR(p,e) ((p) < (e) && (*(p) == '$' || *(p) == '@' || *(p) == '{'))
/*
* call-seq:
* str.dump -> new_str