diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-11-21 23:59:32 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-11-21 23:59:32 +0900 |
| commit | 049e749c8b12c79a7439ce0fdb402896807eb42b (patch) | |
| tree | f463c5ac01e1a32a6dea5b6868e2794f6b0479ef /mrbgems/mruby-pack | |
| parent | 544784effd251656f7b406bc94880e1ef75af7b5 (diff) | |
| parent | 3d056d084aedd2a1a3a36e33b1cef4e90d282813 (diff) | |
| download | mruby-049e749c8b12c79a7439ce0fdb402896807eb42b.tar.gz mruby-049e749c8b12c79a7439ce0fdb402896807eb42b.zip | |
Merge pull request #5166 from shuujii/rename-MRB_ENABLE-DISABLE_-to-MRB_USE-NO_
Rename `MRB_{ENABLE,DISABLE}_` to `MRB_{USE,NO}_`; close #5163
Diffstat (limited to 'mrbgems/mruby-pack')
| -rw-r--r-- | mrbgems/mruby-pack/src/pack.c | 16 |
1 files changed, 8 insertions, 8 deletions
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 |
