summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-06-06 00:19:46 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-06-06 00:19:46 +0900
commitb1dd57efa1a1b292021bfe7ba7e4ac14e0b151b9 (patch)
tree4be23df168e7efcabdef6e2f34dcd3dffe37c170
parentcc28f868f157022a6c62129bf938a779a45f39cd (diff)
downloadmruby-b1dd57efa1a1b292021bfe7ba7e4ac14e0b151b9.tar.gz
mruby-b1dd57efa1a1b292021bfe7ba7e4ac14e0b151b9.zip
move IS_EVSTR macro that should be private to src/string.c
-rw-r--r--include/mruby/string.h2
-rw-r--r--src/string.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/mruby/string.h b/include/mruby/string.h
index dd73f5f1e..51556d177 100644
--- a/include/mruby/string.h
+++ b/include/mruby/string.h
@@ -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))
diff --git a/src/string.c b/src/string.c
index 1572cab14..755656f07 100644
--- a/src/string.c
+++ b/src/string.c
@@ -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