rename ruby_digitmap to mrb_digitmap

This commit is contained in:
Yukihiro Matsumoto
2012-05-30 21:19:04 +09:00
parent 1ac22054bc
commit 0e5958d404
4 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -24,9 +24,8 @@ extern "C" {
#define mrb_str_new4 mrb_str_new_frozen
#define STR_BUF_MIN_SIZE 128
//#define RSTRING_EMBED_LEN_MAX STR_BUF_MIN_SIZE
extern const char ruby_digitmap[];
extern const char mrb_digitmap[];
struct RString {
MRUBY_OBJECT_HEADER;
+1 -1
View File
@@ -1140,7 +1140,7 @@ mrb_fix2str(mrb_state *mrb, mrb_value x, int base)
}
*--b = '\0';
do {
*--b = ruby_digitmap[(int)(val % base)];
*--b = mrb_digitmap[(int)(val % base)];
} while (val /= base);
if (neg) {
*--b = '-';
+1 -1
View File
@@ -90,7 +90,7 @@ mrb_fix2binstr(mrb_state *mrb, mrb_value x, int base)
}
*--b = '\0';
do {
*--b = ruby_digitmap[(int)(val % base)];
*--b = mrb_digitmap[(int)(val % base)];
} while (val /= base);
if (mrb_fixnum(x) < 0) {
+1 -1
View File
@@ -33,7 +33,7 @@
#define TRUE 1
#endif
const char ruby_digitmap[] = "0123456789abcdefghijklmnopqrstuvwxyz";
const char mrb_digitmap[] = "0123456789abcdefghijklmnopqrstuvwxyz";
#ifdef INCLUDE_REGEXP
static mrb_value get_pat(mrb_state *mrb, mrb_value pat, mrb_int quote);