Commit 59c8d6c1 authored by Masaki Muranaka's avatar Masaki Muranaka

Remove str_to_mrb_int(). There is some reasons.

 It is not used in the core.
 It does not have mrb_ prefix.
 strtol() is slightly heavy and we have similar API.
parent 9074983b
...@@ -83,13 +83,11 @@ ...@@ -83,13 +83,11 @@
# define PRIoMRB_INT PRIo64 # define PRIoMRB_INT PRIo64
# define PRIxMRB_INT PRIx64 # define PRIxMRB_INT PRIx64
# define PRIXMRB_INT PRIX64 # define PRIXMRB_INT PRIX64
# define str_to_mrb_int(buf) strtoll(buf, NULL, 10)
# endif # endif
#elif defined(MRB_INT16) #elif defined(MRB_INT16)
typedef int16_t mrb_int; typedef int16_t mrb_int;
# define MRB_INT_MIN INT16_MIN # define MRB_INT_MIN INT16_MIN
# define MRB_INT_MAX INT16_MAX # define MRB_INT_MAX INT16_MAX
# define str_to_mrb_int(buf) strtol(buf, NULL, 10)
#else #else
typedef int32_t mrb_int; typedef int32_t mrb_int;
# define MRB_INT_MIN INT32_MIN # define MRB_INT_MIN INT32_MIN
...@@ -99,7 +97,6 @@ ...@@ -99,7 +97,6 @@
# define PRIoMRB_INT PRIo32 # define PRIoMRB_INT PRIo32
# define PRIxMRB_INT PRIx32 # define PRIxMRB_INT PRIx32
# define PRIXMRB_INT PRIX32 # define PRIXMRB_INT PRIX32
# define str_to_mrb_int(buf) strtol(buf, NULL, 10)
#endif #endif
typedef short mrb_sym; typedef short mrb_sym;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment