Commit Graph

1562 Commits

Author SHA1 Message Date
Masaki Muranaka 580f1e922b Integer.round have no arg. 2013-03-31 23:05:23 +09:00
Masaki Muranaka 1d82d07cac Remove unused functions. 2013-03-31 23:05:03 +09:00
Masaki Muranaka cbe7a87c68 Move Integer.{floor,ceil,round,truncate} to mrblib/. For maintainability. 2013-03-31 23:04:45 +09:00
Yukihiro "Matz" Matsumoto dd56b93639 should have rewinded stack on exceptions; close #1113 2013-03-31 00:44:56 +09:00
Yukihiro "Matz" Matsumoto 8a2ecba0e4 revive #to_int 2013-03-31 00:06:31 +09:00
Yukihiro "Matz" Matsumoto 918d199efa move to_i from fixnum to integer; remove reference of to_int which is not in ISO 2013-03-30 23:11:30 +09:00
Yukihiro "Matz" Matsumoto 5cc6832626 undef Integer#new; ref #1111 2013-03-30 23:02:15 +09:00
Yukihiro "Matz" Matsumoto e0ba717d2c Merge pull request #1108 from monaka/pr-cleanup-numeric.c-20130329
Cleanup numeric.c
2013-03-30 04:50:21 -07:00
Masaki Muranaka a9f2473377 Add null char terminate to each symbol name. 2013-03-30 13:17:29 +09:00
Masaki Muranaka c260ef894e Rename mrb_fix2str() to mrb_fixnum_to_str(). This is for naming consistency. 2013-03-29 22:19:26 +09:00
Masaki Muranaka f82ae7653a Change the second argument of mrb_flo_to_str().
Export mrb_flo_to_str() as API.
2013-03-29 22:19:26 +09:00
Masaki Muranaka 710f625254 Remove mrb_flt2big() as there is no bignum in the core.
Add new API mrb_flo_to_fixnum(). You can replace mrb_flt2big() to mrb_flo_to_fixnum() with few modifications.
2013-03-29 22:19:26 +09:00
Masaki Muranaka 05ad6902fd Remove API mrb_string_value(). There have mrb_str_to_str() in the core. And mrb_string_value() is no merit to keep using. 2013-03-29 18:01:25 +09:00
Masaki Muranaka 24eb120148 Add CHAR_BIT check. There are uint8_t to char conversions. 2013-03-29 16:32:15 +09:00
Masaki Muranaka 9074983b22 Reduce temporary memory allocations. They are redundant. 2013-03-29 16:28:13 +09:00
Masaki Muranaka 2b6e9ee556 Modify the type of line-number to uint16_t. Type short is not portable. And it cannot be more than UINT16_MAX because of the mrbc binary format. 2013-03-29 16:26:00 +09:00
Masaki Muranaka c67aec25b6 Reduce temporary memory allocations. They are redundant. 2013-03-29 16:23:10 +09:00
Masaki Muranaka 8742313079 Remove RiteFile as no used. 2013-03-29 16:21:12 +09:00
Yukihiro "Matz" Matsumoto cb946da787 Merge pull request #1102 from carsonmcdonald/gvarunderscorefix
Allow globals that start with $_
2013-03-28 19:35:52 -07:00
Yukihiro "Matz" Matsumoto b29b421817 Merge pull request #1101 from monaka/pr-cleanup-includes
Cleanup includes
2013-03-28 19:34:15 -07:00
Carson McDonald 06d7bd69a3 Allow globals that start with $_ 2013-03-28 22:21:37 -04:00
Masaki Muranaka 74f04849c4 Rearrange SIZE_MAX. It is supported also VC++ since its version10. And there seems SIZE_MAX is defined in stdint.h. And it possibly (depends on the version of VC++) conflicts with SIZE_MAX in limits.h. This patch is no need if I did not support VC++. 2013-03-29 11:02:35 +09:00
Masaki Muranaka 2b5b161f8b Sort include files. Some redundant includes are removed. 2013-03-29 10:22:31 +09:00
Masaki Muranaka a01e968cdb Remove limits.h from numeric.h. Add limits.h to some C files. 2013-03-29 10:06:40 +09:00
Yuichiro MASUI 1e58b9c2bf Fixed wrong section size calculation 2013-03-29 01:35:30 +09:00
Yukihiro "Matz" Matsumoto 326aa3f98e Merge pull request #1095 from monaka/pr-add-arena-guard
Add arena guard. It will be exausted when the pool is huge.
2013-03-28 06:50:40 -07:00
Yukihiro "Matz" Matsumoto a6cca7c2c4 Merge branch 'pr-fix-mrb_format' of https://github.com/monaka/mruby into monaka-pr-fix-mrb_format 2013-03-28 22:46:51 +09:00
Yukihiro "Matz" Matsumoto 144613943d Merge pull request #1094 from monaka/pr-use-mrb_format
Use mrb_format() instead of s*printf().
2013-03-28 06:44:21 -07:00
Yukihiro "Matz" Matsumoto e8d98a3854 return value from fread(3) just cannot be ignored 2013-03-28 22:42:06 +09:00
Masaki Muranaka 31bb00b9c2 Add arena guard. It will be exausted when the pool is huge. 2013-03-28 17:57:52 +09:00
Masaki Muranaka fa23cb1021 Fix argunum_error() to use mrb_format(). 2013-03-28 17:43:24 +09:00
Masaki Muranaka 485111db6b Fix %s to %S. 2013-03-28 17:40:13 +09:00
Masaki Muranaka c0b5220418 Modify mrb_name_error() to use mrb_format(). 2013-03-28 17:35:04 +09:00
Daniel Bovensiepen e952d55ba0 Catch return values to silent compiler 2013-03-28 07:09:05 +00:00
Masaki Muranaka d329d1f421 Fix. In some cases, %S substitutions were failed. 2013-03-28 15:08:29 +09:00
Masaki Muranaka 9c831c9a9c Remove the escape backslash from the result string. 2013-03-28 15:07:34 +09:00
Yukihiro "Matz" Matsumoto e265d7c7ef Merge pull request #1082 from masuidrive/add_debug_info
Added debug infomation section into .mrb file
2013-03-27 08:34:12 -07:00
Yukihiro Matz Matsumoto 18b2683b97 use new mrb_format API from mrb_raisef; its only format specifier is "%S" (stringify) and takes mrb_value; close #1062 2013-03-27 23:41:23 +09:00
Yukihiro Matz Matsumoto 8ce842a5d9 implement mrb_format and mrb_vformat 2013-03-27 23:03:48 +09:00
Yuichiro MASUI f3ebb89392 Added debug infomation section into .mrb file 2013-03-27 18:21:04 +09:00
mattn 38789c4282 Remove unused variable 2013-03-27 11:58:48 +09:00
Yukihiro Matz Matsumoto 638c5a96d7 bug in fread(3) error check 2013-03-27 11:53:14 +09:00
Yukihiro Matz Matsumoto e03e697549 little cosmetic change (delete word Rite); bump dump file version number 2013-03-27 11:28:05 +09:00
Yukihiro Matz Matsumoto a0f6e4d58e resolve conflict from #964 2013-03-27 00:52:24 +09:00
kano4 50d3041d68 Use C99 flexible array in pool.c 2013-03-26 23:29:42 +09:00
Yukihiro Matz Matsumoto 66fa14a333 main.to_s should also return "main" 2013-03-26 22:25:58 +09:00
Yukihiro Matz Matsumoto b1bd62e047 remove all MRB_TT_MAIN from source 2013-03-26 21:25:00 +09:00
Yukihiro Matz Matsumoto 5c6be2e518 Merge branch 'selftopiv' of https://github.com/carsonmcdonald/mruby into carsonmcdonald-selftopiv 2013-03-26 21:07:20 +09:00
Yukihiro Matz Matsumoto 471ad60688 use C99 flexible array member instead of [1] 2013-03-26 17:11:55 +09:00
Yukihiro Matz Matsumoto 87d7fc6165 Merge branch 'master' of github.com:mruby/mruby 2013-03-26 16:48:26 +09:00