Commit Graph

2887 Commits

Author SHA1 Message Date
Artur K 642ea41abd Fix the calc_crc_16_ccitt signature to match the source file 2013-03-30 18:11:09 +01: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 f475da9bf9 Merge pull request #871 from monaka/pr-remove-bit-field-in-mrb_value
Remove the bit-field by mrb_value.tt
2013-03-30 07:23:24 -07: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 cb5d690ece cancel f4c27c6 since mruby.h is required for mrb_value etc. anyway 2013-03-30 20:52:51 +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
Yukihiro "Matz" Matsumoto 99af3183aa Merge pull request #1115 from monaka/pr-add-null-char-to-each-symbol-name
Add null char terminate to each symbol name.
2013-03-29 22:29:41 -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 f4c27c6fb5 Include mrbconf.h as MRB_INT_MAX used here. 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
Yukihiro "Matz" Matsumoto 6818ec0b38 Merge pull request #1107 from masuidrive/fixed_testrb_path
Fixed testrb load path
2013-03-29 02:36:28 -07:00
Yuichiro MASUI 32d1edb764 Fixed testrb load path 2013-03-29 18:31:24 +09:00
Yukihiro "Matz" Matsumoto eb4e0f8176 Merge pull request #1106 from monaka/pr-remove-mrb_string_value
Remove API mrb_string_value().
2013-03-29 02:18:25 -07: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
Yukihiro "Matz" Matsumoto e2303b6070 Merge pull request #1105 from monaka/pr-display-more-information-in-verbose-mode
Display the command line when mrbc is kicked in the verbose mode.
2013-03-29 01:57:23 -07:00
Yukihiro "Matz" Matsumoto 6b67f08361 Merge pull request #1104 from monaka/pr-simplify-dump-load
Simplify dump/load
2013-03-29 01:55:58 -07:00
Masaki Muranaka 79ebdb5fbe Display the command line when mrbc is kicked in the verbose mode. 2013-03-29 16:48:47 +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 59c8d6c13a 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.
2013-03-29 16:31:11 +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 2f8dc97e2d Move TRUE/FALSE existence checks. 2013-03-29 10:41:28 +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
Yukihiro "Matz" Matsumoto 5fb12a990d Merge pull request #1100 from masuidrive/fixed_debug_args
Fixed wrong section size calculation
2013-03-28 17:29:13 -07:00
Yukihiro "Matz" Matsumoto 8326b0ab70 Merge pull request #1098 from monaka/pr-fix-type-in-dump.h
Fix a type mismatch.
2013-03-28 16:58:48 -07:00
Yuichiro MASUI 1e58b9c2bf Fixed wrong section size calculation 2013-03-29 01:35:30 +09:00
Masaki Muranaka 1074a3c0f4 Fix a type mismatch. 2013-03-28 23:44:50 +09:00
Yukihiro "Matz" Matsumoto d5021172ee Merge pull request #1089 from bovi/gen-legal
LEGAL File Generator for Builds
2013-03-28 06:56:36 -07: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 3a2f4c3235 Merge branch 'master' of github.com:mruby/mruby 2013-03-28 22:42:49 +09:00
Yukihiro "Matz" Matsumoto e8d98a3854 return value from fread(3) just cannot be ignored 2013-03-28 22:42:06 +09:00
Yukihiro "Matz" Matsumoto 5a089aa4d6 Merge pull request #1091 from monaka/pr-fix-raisef-format-in-struct.c
Fix raisef() format strings in struct.c.
2013-03-28 06:37:47 -07:00
Yukihiro "Matz" Matsumoto 1fe51fb83a Merge pull request #1097 from monaka/pr-fix-raisef-format-in-sprintf.c
Fix format for new mrb_raisef().
2013-03-28 06:36:41 -07:00
Masaki Muranaka 384db0d809 Fix format for new mrb_raisef(). 2013-03-28 21:35:56 +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