Commit Graph

1668 Commits

Author SHA1 Message Date
Masaki Muranaka c9edc5b02e Remove mrb_hash_lookup() as no one uses it. Use mrb_hash_get instead. 2013-05-08 13:33:23 +09:00
Masaki Muranaka 82c891acee Move comments from hash.c to hash.rb. 2013-05-08 13:22:35 +09:00
Masaki Muranaka a46eacb213 Move Hash#values_at to mruby-hash-ext gem. 2013-05-08 13:22:35 +09:00
crimsonwoods 1dfe52e53d fix typos. 2013-05-05 11:28:06 +09:00
Yukihiro "Matz" Matsumoto 3d149f6350 Merge branch 'master' of github.com:mruby/mruby 2013-05-02 10:12:07 +09:00
h2so5 1e5b00e772 Remove mrb_class_obj_get 2013-05-01 21:10:17 +09:00
Yukihiro "Matz" Matsumoto a092e41020 the receiver should be included in ancestors even when it's a singleton class 2013-04-30 00:51:31 +09:00
Yukihiro "Matz" Matsumoto 02f843d8dc rename mrb_to_id to mrb_obj_to_sym since symbol is nothing to do with identifier in mruby 2013-04-29 15:35:30 +09:00
Yukihiro "Matz" Matsumoto bdb11e3101 remove our own prototype for sprintf(); ref #1223 2013-04-29 15:26:33 +09:00
Yukihiro "Matz" Matsumoto fa2fb6de36 Merge pull request #1221 from monaka/pr-revert-file-access-mode
Revert file access mode to 0644.
2013-04-28 19:14:16 -07:00
Masaki Muranaka f139320635 Revert file access mode to 0644. 2013-04-29 09:25:54 +09:00
Yukihiro "Matz" Matsumoto 8890a992a6 always use unsigned int as mrb_bool even in C++ 2013-04-29 09:23:43 +09:00
Yukihiro "Matz" Matsumoto b6fc3f831d change return value of mrb_free from void* to void 2013-04-29 09:12:44 +09:00
Yukihiro "Matz" Matsumoto 7a6f9c9f69 Merge pull request #1220 from arton/master
add extern funcs declaration and casts for cimpiling C++ compiler
2013-04-28 16:06:14 -07:00
Yukihiro "Matz" Matsumoto 443b2c2a2b rename hash related gc functions 2013-04-29 07:48:33 +09:00
Yukihiro "Matz" Matsumoto a1df3fdb0c fix mrb_string_shared memory leaks 2013-04-29 07:47:12 +09:00
Yukihiro "Matz" Matsumoto 5077f9ec8b move mrb_shared_string definition to src/string.c 2013-04-29 07:24:55 +09:00
arton 513bce35f6 add extern funcs declaration and casts for cimpiling C++ compiler 2013-04-28 15:31:50 +09:00
Yukihiro "Matz" Matsumoto 5c68195c88 mrb_str_new_static(): zero copy string creation 2013-04-28 02:47:22 +09:00
skandhas 96e247a4ad detect cyclic-include in Module#include 2013-04-27 16:39:58 +08:00
Masaki Muranaka 2109a99e5b Add void to function parameters. This is for compatibility with C++ 2013-04-26 11:33:06 +09:00
Yukihiro "Matz" Matsumoto 5c5101809b Merge branch 'master' of github.com:mruby/mruby 2013-04-26 11:00:48 +09:00
Yukihiro "Matz" Matsumoto bcf1204940 small cosmetic refactoring 2013-04-26 10:59:37 +09:00
Yukihiro "Matz" Matsumoto e63b086f1e rename mrb_interned API functions 2013-04-26 10:57:08 +09:00
Yukihiro "Matz" Matsumoto c99b72b20d Merge branch 'suppress_intern' of https://github.com/crimsonwoods/mruby into crimsonwoods-suppress_intern 2013-04-26 09:18:39 +09:00
Yukihiro "Matz" Matsumoto 0c55eac011 Merge pull request #1214 from monaka/pr-cleanup-load.c
Clean up load.c
2013-04-25 17:17:35 -07:00
Yukihiro "Matz" Matsumoto fa0e41a84d remove unnecessary local variable 2013-04-25 18:25:06 +09:00
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