Commit Graph

3080 Commits

Author SHA1 Message Date
Masaki Muranaka 682d52b786 Add error checks for small environments which pointer is less than 32bit. These code will be removed by optimizer if the target runs on 32bit or above. 2013-04-25 16:56:12 +09:00
Masaki Muranaka 1e5f151c46 More strict NULL checks. 2013-04-25 16:41:15 +09:00
Masaki Muranaka 9479e4e287 Fix underlying memory leaks. When realloc is failed, memories are leaked. 2013-04-25 16:38:31 +09:00
Yukihiro "Matz" Matsumoto 8464cac63c remove calling sprintf(); ref #1210 2013-04-25 15:00:09 +09:00
Yukihiro "Matz" Matsumoto f0bea86437 Merge pull request #1211 from skandhas/pr-fix-Module-ancestors
fix the behavior of Module#ancestors
2013-04-24 21:56:03 -07:00
Yukihiro "Matz" Matsumoto e70b2721a6 Merge pull request #1210 from iij/pr-inspect-many-non-printables
String#inspec & String#dump may raise an "arena overflow" error
2013-04-24 21:55:11 -07:00
skandhas 8d778d9860 fix Module#ancestors and update test 2013-04-25 11:17:34 +08:00
Tomoyuki Sahara b1114489ef a string may have a lot of non-printable chars. 2013-04-25 12:14:18 +09:00
Yukihiro "Matz" Matsumoto 62ca4c1738 aspec bits should be packed in Ax; ref #1209 2013-04-25 12:04:29 +09:00
Yukihiro "Matz" Matsumoto ec8fad0fed remove too many paren; ref #1209 2013-04-25 11:57:51 +09:00
Yukihiro "Matz" Matsumoto 1b31cbfbc8 add new macro MRB_ARGS_ARG(n1,n2) to specify required and optional arugments at once 2013-04-25 11:53:36 +09:00
Yukihiro "Matz" Matsumoto 30d580ecbc rename every ARGS_XXX to MRB_ARGS_XXX; ref #1206 2013-04-25 09:47:36 +09:00
Yukihiro "Matz" Matsumoto 5c88c65a11 put MRB_ prefix before ARGS_XXX macros; ref #1206 2013-04-25 08:05:54 +09:00
Yukihiro "Matz" Matsumoto 953eec60db rename MRB_ARGS_XXX to MRB_ASPEC_XXX; ref #1206 2013-04-25 08:00:48 +09:00
Yukihiro "Matz" Matsumoto 4faaef437d rename ARGS_GETXXX macros to avoid potential name conflict; close #1206 2013-04-25 07:50:01 +09:00
Yukihiro "Matz" Matsumoto 3083322088 Merge pull request #1207 from h2so5/set-env-before-loading-rakefile
Set ENV before loading Rakefile in minirake
2013-04-24 07:42:43 -07:00
Yukihiro "Matz" Matsumoto 25c1ba3e35 Merge pull request #1204 from monaka/pr-fix-segfault-on-loading-binary-mrb
Fix segfault on loading binary RITE files.
2013-04-24 07:14:38 -07:00
Yukihiro "Matz" Matsumoto 5ef557c7a0 Merge pull request #1208 from tomykaira/fix_wrong_symbol_comment
Fix wrong comment
2013-04-24 07:14:09 -07:00
tomykaira 4f529b588e Fix wrong comment 2013-04-24 14:28:28 +09:00
h2so5 713615e948 Set ENV before loading Rakefile in minirake 2013-04-24 12:21:27 +09:00
Masaki Muranaka 92e43746e0 Fix segfault on loading binary RITE files. 2013-04-24 11:31:48 +09:00
Yukihiro "Matz" Matsumoto 3465bff916 Merge pull request #1202 from masahino/fix_load.c
fix unnecessary irep_free on load.c
2013-04-23 18:54:49 -07:00
Yukihiro "Matz" Matsumoto a1c77c9675 Merge pull request #1203 from xxuejie/pass_verbose_to_gem
Pass verbose flag to each gem test
2013-04-23 14:13:48 -07:00
Xuejie "Rafael" Xiao 5a8abf85d7 Pass verbose flag to each gem test 2013-04-23 14:15:14 -04:00
masahino a283003d1c fix unnecessary irep_free 2013-04-23 23:22:58 +09:00
Yukihiro "Matz" Matsumoto 12cc55fcfa Merge pull request #1201 from monaka/pr-simplify-load.c
Simplify load.c.
2013-04-22 06:00:32 -07:00
Masaki Muranaka 5801773f64 Simplify load.c. Remove code clones. Suppress return paths. 2013-04-22 17:36:49 +09:00
Yukihiro "Matz" Matsumoto c2f3a494ea ensure clause should be executed only once; close #1185 2013-04-22 16:32:46 +09:00
Yukihiro "Matz" Matsumoto 446b790ee3 Merge branch 'master' of github.com:mruby/mruby 2013-04-22 16:11:02 +09:00
Yukihiro "Matz" Matsumoto 5b206d6907 Merge pull request #1200 from h2so5/get-args-format-boolean
Use mrb_bool for the 'b' format specifier of mrb_get_args
2013-04-22 00:10:35 -07:00
Yukihiro "Matz" Matsumoto c633f32b41 should call ensure before popping callinfo; cancel 8ce1ea84 2013-04-22 11:49:10 +09:00
h2so5 9b798114bb Use mrb_bool for the 'b' format specifier of mrb_get_args 2013-04-22 10:41:53 +09:00
Yukihiro "Matz" Matsumoto e889cddf78 Merge pull request #1197 from h2so5/mruby-symbol-ext
Add Symbol#to_proc, Symbol.all_symbols
2013-04-21 06:28:11 -07:00
Yukihiro "Matz" Matsumoto 44c4aa9dfb Merge pull request #1199 from carsonmcdonald/misccleanup
Minor cleanup
2013-04-21 06:22:36 -07:00
Carson McDonald 35f42c264e Remove unused variable 2013-04-21 08:22:40 -04:00
Carson McDonald 1acaeaf18d Remove things that look done. 2013-04-21 08:21:32 -04:00
h2so5 2fa8bf4683 Add Symbol#to_proc, Symbol.all_symbols 2013-04-21 18:01:09 +09:00
Yukihiro "Matz" Matsumoto 4a311a4760 Merge pull request #1196 from monaka/pr-use-mrb_aspec
Cleanup around mrb_code, mrb_aspec.
2013-04-20 15:43:33 -07:00
Yukihiro "Matz" Matsumoto d9d404e3b0 Merge pull request #1195 from monaka/pr-cleanup-string.c-20130421
Cleanup string.c 20130421
2013-04-20 15:42:28 -07:00
Masaki Muranaka ec4892c7ea Use mrb_aspec instead of int32_t. As it will clarify what is doing. 2013-04-21 02:06:16 +09:00
Masaki Muranaka b41c5cb5c3 Define mrb_code, mrb_aspec as uint32_t. They are always positive. 2013-04-21 01:59:43 +09:00
Masaki Muranaka 49d945bb59 Use memcmp instead of strcmp if it is possible. 2013-04-21 01:17:17 +09:00
Masaki Muranaka bd7cf9ba0d Remove a comment. 2013-04-21 01:17:17 +09:00
Masaki Muranaka 2613e5d955 Clean up variable types and type casts. 2013-04-21 01:17:17 +09:00
Masaki Muranaka ff0cd6cabe Remove useless comments. 2013-04-21 01:17:16 +09:00
Yukihiro "Matz" Matsumoto c79172dfd5 put spaces after if/while 2013-04-20 23:11:43 +09:00
Yukihiro "Matz" Matsumoto 2acf724554 wrong type cast 2013-04-20 23:11:01 +09:00
Yukihiro "Matz" Matsumoto e861ecf514 small consmetic fix 2013-04-20 23:01:31 +09:00
Yukihiro "Matz" Matsumoto 58b877c4a7 fix test to check class variables in superclasses 2013-04-20 22:59:35 +09:00
Yukihiro "Matz" Matsumoto 2529f1edba Module#class_variables should check superclasses 2013-04-20 22:58:52 +09:00