From 3d056d084aedd2a1a3a36e33b1cef4e90d282813 Mon Sep 17 00:00:00 2001 From: KOBAYASHI Shuji Date: Sat, 21 Nov 2020 21:14:40 +0900 Subject: Rename `MRB_{ENABLE,DISABLE}_` to `MRB_{USE,NO}_`; close #5163 | Previous Name | New Name | |------------------------------|-------------------------| | MRB_ENABLE_ALL_SYMBOLS | MRB_USE_ALL_SYMBOLS | | MRB_ENABLE_SYMBOLL_ALL | MRB_USE_ALL_SYMBOLS | | MRB_ENABLE_CXX_ABI | MRB_USE_CXX_ABI | | MRB_ENABLE_CXX_EXCEPTION | MRB_USE_CXX_EXCEPTION | | MRB_ENABLE_DEBUG_HOOK | MRB_USE_DEBUG_HOOK | | MRB_DISABLE_DIRECT_THREADING | MRB_NO_DIRECT_THREADING | | MRB_DISABLE_STDIO | MRB_NO_STDIO | | ENABLE_LINENOISE | MRB_USE_LINENOISE | | ENABLE_READLINE | MRB_USE_READLINE | | DISABLE_MIRB_UNDERSCORE | MRB_NO_MIRB_UNDERSCORE | | DISABLE_GEMS | MRB_NO_GEMS | * `MRB_ENABLE_SYMBOLL_ALL` seems to be a typo, so it is fixed. * `MRB_` prefix is added to those without. * The previous names can also be used for compatibility. --- mrbgems/mruby-pack/src/pack.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'mrbgems/mruby-pack') diff --git a/mrbgems/mruby-pack/src/pack.c b/mrbgems/mruby-pack/src/pack.c index 9250e966d..014679a5d 100644 --- a/mrbgems/mruby-pack/src/pack.c +++ b/mrbgems/mruby-pack/src/pack.c @@ -186,7 +186,7 @@ pack_l(mrb_state *mrb, mrb_value o, mrb_value str, mrb_int sidx, unsigned int fl static void u32tostr(char *buf, size_t len, uint32_t n) { -#ifdef MRB_DISABLE_STDIO +#ifdef MRB_NO_STDIO char *bufend = buf + len; char *p = bufend - 1; @@ -211,13 +211,13 @@ u32tostr(char *buf, size_t len, uint32_t n) memmove(buf, p, bufend - p); #else snprintf(buf, len, "%" PRIu32, n); -#endif /* MRB_DISABLE_STDIO */ +#endif /* MRB_NO_STDIO */ } static void i32tostr(char *buf, size_t len, int32_t n) { -#ifdef MRB_DISABLE_STDIO +#ifdef MRB_NO_STDIO if (len < 1) { return; } @@ -231,7 +231,7 @@ i32tostr(char *buf, size_t len, int32_t n) u32tostr(buf, len, (uint32_t)n); #else snprintf(buf, len, "%" PRId32, n); -#endif /* MRB_DISABLE_STDIO */ +#endif /* MRB_NO_STDIO */ } #endif /* MRB_INT64 */ @@ -309,7 +309,7 @@ pack_q(mrb_state *mrb, mrb_value o, mrb_value str, mrb_int sidx, unsigned int fl static void u64tostr(char *buf, size_t len, uint64_t n) { -#ifdef MRB_DISABLE_STDIO +#ifdef MRB_NO_STDIO char *bufend = buf + len; char *p = bufend - 1; @@ -334,13 +334,13 @@ u64tostr(char *buf, size_t len, uint64_t n) memmove(buf, p, bufend - p); #else snprintf(buf, len, "%" PRIu64, n); -#endif /* MRB_DISABLE_STDIO */ +#endif /* MRB_NO_STDIO */ } static void i64tostr(char *buf, size_t len, int64_t n) { -#ifdef MRB_DISABLE_STDIO +#ifdef MRB_NO_STDIO if (len < 1) { return; } @@ -354,7 +354,7 @@ i64tostr(char *buf, size_t len, int64_t n) u64tostr(buf, len, (uint64_t)n); #else snprintf(buf, len, "%" PRId64, n); -#endif /* MRB_DISABLE_STDIO */ +#endif /* MRB_NO_STDIO */ } static int -- cgit v1.2.3