diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-02-23 21:31:39 -0800 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-02-23 21:31:39 -0800 |
| commit | bbd50cca2f78c642517beaeccd26400798b1ec46 (patch) | |
| tree | b88d311529528952a989d9315b097ad40fec2dee /include | |
| parent | a6d7de5dab594b0ba85c80246f59eb43774a707d (diff) | |
| parent | dd6234974932382181ced7a813ad71d426d1e0ab (diff) | |
| download | mruby-bbd50cca2f78c642517beaeccd26400798b1ec46.tar.gz mruby-bbd50cca2f78c642517beaeccd26400798b1ec46.zip | |
Merge pull request #878 from monaka/pr-reduce-sprintf
Reduce sprintf() calls. Remove mrb_int_to_str() and MRB_INT_FORMAT.
Diffstat (limited to 'include')
| -rw-r--r-- | include/mrbconf.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/mrbconf.h b/include/mrbconf.h index ddd9592d8..472bd12cf 100644 --- a/include/mrbconf.h +++ b/include/mrbconf.h @@ -72,16 +72,12 @@ typedef int64_t mrb_int; # define MRB_INT_MIN INT64_MIN # define MRB_INT_MAX INT64_MAX -# define MRB_INT_FORMAT PRId64 -# define mrb_int_to_str(buf, i) sprintf(buf, "%" MRB_INT_FORMAT, i) # define str_to_mrb_int(buf) strtoll(buf, NULL, 10) # endif #else typedef int32_t mrb_int; # define MRB_INT_MIN INT32_MIN # define MRB_INT_MAX INT32_MAX -# define MRB_INT_FORMAT PRId32 -# define mrb_int_to_str(buf, i) sprintf(buf, "%" MRB_INT_FORMAT, i) # define str_to_mrb_int(buf) strtol(buf, NULL, 10) #endif typedef short mrb_sym; |
