Commit Graph

4991 Commits

Author SHA1 Message Date
Masaki Muranaka 4a6da05808 Remove redundant whitespaces. Just cosmetic. 2013-04-25 16:57:52 +09:00
Masaki Muranaka e3a9e9b7d6 Add comments why there is no need to put the SIZE_ERROR check. It is for reviews in the future. 2013-04-25 16:57:19 +09:00
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
crimsonwoods 09dad05a72 suppress intern inside of 'respond_to?'. 2013-04-25 15:56:53 +09:00
Masaki Muranaka 6684b7d1cf Remove sprintf(). 2013-04-25 15:36:19 +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
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
crimsonwoods a517a7f314 modify functions to suppress symbol registration into intern pool. 2013-04-25 10:36:32 +09:00
crimsonwoods bd1b925931 modify the type of return value (mrb_bool => mrb_value). 2013-04-25 09:51:20 +09:00
Yukihiro "Matz" Matsumoto 30d580ecbc rename every ARGS_XXX to MRB_ARGS_XXX; ref #1206 2013-04-25 09:47:36 +09:00
crimsonwoods 8682b06953 add new functions to check if symbols are interned without registration. 2013-04-25 09:27:00 +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 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
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 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 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
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 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
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 2529f1edba Module#class_variables should check superclasses 2013-04-20 22:58:52 +09:00
Carson McDonald 93b23357fe Add implementation for respond_to_missing? 2013-04-20 07:48:26 -04:00
Yukihiro "Matz" Matsumoto cc512dd8d0 Merge pull request #1191 from h2so5/refactor-kernel-and-class
Refactor kernel.c and class.c
2013-04-19 19:42:33 -07:00
h2so5 359b5ee7af Refactor kernel.c and class.c 2013-04-20 01:25:15 +09:00
Daehyub Kim c5712bcb3f use ISXDIGIT instead isxdigit on parser.y:3485 2013-04-20 00:07:37 +09:00
h2so5 b9674c735e Make str_modify public 2013-04-19 08:06:04 +09:00
Tomoyuki Sahara 0f8969041a rollback stack before executing ensure clause. 2013-04-17 13:08:54 +09:00
h2so5 b1ffb3b3b8 Add Proc#arity 2013-04-16 16:03:36 +09:00
Yukihiro "Matz" Matsumoto 09eae5ceb2 move no block check to mrb_yield_internal 2013-04-13 10:03:34 +09:00
Yukihiro "Matz" Matsumoto c3b79e11f3 add no block check; based on patch from h2so5; close #1174 2013-04-13 01:16:37 +09:00
Yukihiro "Matz" Matsumoto 78b0abcfaf string interpolation (#{foo}) does stringify implicitly; no need to call #to_s 2013-04-11 23:11:43 +09:00
h2so5 1f571dd5fc Fix TypeError messages 2013-04-11 19:47:35 +09:00
h2so5 a4d59b4ceb Refactor mrb_str_dump 2013-04-10 23:32:51 +09:00
Yukihiro "Matz" Matsumoto c5c3fa1939 Merge pull request #1164 from h2so5/add-validation-for-c-symbol
Add validation for C language symbol name
2013-04-09 09:45:56 -07:00
h2so5 337076f9ba Add validation for C language symbol name 2013-04-09 16:21:51 +09:00