Commit Graph

10194 Commits

Author SHA1 Message Date
mattn 1d5e100e07 Add test for String#ord, String#split for mruby-string-utf8 2014-04-18 21:00:59 +09:00
Tomoyuki Sahara 7d7a549a4f remove io_open(). 2014-04-18 11:32:38 +09:00
Yukihiro "Matz" Matsumoto 4918e5ec65 Merge pull request #2075 from mattn/utf8-string-ord
Implement String#ord, String#split for mruby-string-utf8
2014-04-18 11:21:17 +09:00
Tomoyuki Sahara 36045ea96f IO#syswrite should raise an error if it's not opened for writing. 2014-04-18 11:20:55 +09:00
mattn d72b8c201d Implement String#ord, String#split for mruby-string-utf8 2014-04-18 02:26:17 +09:00
Yukihiro "Matz" Matsumoto 7c1b3f8a86 mruby-string-utf8: String#reverse! may leak memory when mrb_str_modify() raises exception 2014-04-18 00:56:50 +09:00
Yukihiro "Matz" Matsumoto 270659da5f Merge pull request #2074 from mattn/fix_string_utf8_index
Implement String#index, fixes #2073
2014-04-18 00:50:45 +09:00
mattn db88af83df Cosmetic change 2014-04-17 19:51:45 +09:00
mattn ba5a995c23 Handle utf-8 code in index/rindex 2014-04-17 19:47:01 +09:00
mattn 9d520ae739 Implement String#index, fixes #2073 2014-04-17 18:22:07 +09:00
Yukihiro "Matz" Matsumoto d000c72bc6 Merge pull request #2072 from take-cheeze/mrb_regexp_p
Add mrb_regexp_p.
2014-04-17 17:17:37 +09:00
Tomoyuki Sahara 1c4f46f324 remove standard header files from io.h. 2014-04-17 16:29:27 +09:00
Tomoyuki Sahara a11780f4f1 file.c depends on mruby/ext/io.h now. 2014-04-17 16:18:26 +09:00
Tomoyuki Sahara a3e1e535dc function declarations should be in a header file. 2014-04-17 16:13:18 +09:00
Tomoyuki Sahara 9f5ff9ddec remove unused constants. 2014-04-17 16:12:51 +09:00
Tomoyuki Sahara ba9cb1f757 "struct mrb_io_type" is not used at all. 2014-04-17 16:07:12 +09:00
Tomoyuki Sahara 10be4cbb2c file.c does not depend on mruby/ext/io.h. 2014-04-17 15:56:11 +09:00
Tomoyuki Sahara 87ce12dfe3 io.write("") -> 0 2014-04-17 15:53:51 +09:00
Tomoyuki Sahara 810e37b1c3 return value of syswrite may be less than length of given string. 2014-04-17 15:45:31 +09:00
take_cheeze 699964a86e Use mrb_regexp_p to check regexp. 2014-04-17 14:32:45 +09:00
take_cheeze d4a510f751 Add mrb_regexp_p to check whether mrb_value is Regexp. 2014-04-17 14:32:45 +09:00
Yukihiro "Matz" Matsumoto 1d51d1a0b5 Symbol#to_proc to support block call.
based on a patch from @ksss; close #2071
2014-04-17 13:28:54 +09:00
Yukihiro "Matz" Matsumoto dbe85f81dd raises an ArgumentError when calling #call
based on a patch from @ksss; close #2070
2014-04-17 09:37:40 +09:00
Yukihiro "Matz" Matsumoto af5a32f4e5 Merge pull request #2069 from cremno/static
various functions should have internal linkage
2014-04-17 07:58:05 +09:00
Yukihiro "Matz" Matsumoto f756a8a72f Merge pull request #2068 from cremno/exc_inspect-convert-mesg-to-string
convert exception message to string
2014-04-17 07:54:34 +09:00
Yukihiro "Matz" Matsumoto 26c0f8a772 Merge pull request #2067 from take-cheeze/move_re_h
Move src/re.h to include/mruby/re.h .
2014-04-17 07:53:02 +09:00
cremno 8271b4ba27 various functions should have internal linkage 2014-04-16 21:26:12 +02:00
cremno 36d3909e63 get classname and concatenate ": " only once 2014-04-16 20:48:39 +02:00
cremno b4bb2a700a convert exception message to string
fixes: mruby -e "p ArgumentError.new(1)"
2014-04-16 20:44:07 +02:00
take_cheeze b5824f3649 Use mruby/re.h instead of duplicate definition. 2014-04-16 22:41:22 +09:00
take_cheeze c0eaaf3559 Move src/re.h to include/mruby/re.h . 2014-04-16 22:39:57 +09:00
Yukihiro "Matz" Matsumoto 93c82514dc Merge branch 'master' of github.com:mruby/mruby 2014-04-16 15:22:50 +09:00
Yukihiro "Matz" Matsumoto 3e00684faa resolve conflict 2014-04-16 15:18:52 +09:00
Yukihiro "Matz" Matsumoto cb1659c191 Merge pull request #2066 from suzukaze/refactor-numeric2
Refactor numeric.c
2014-04-16 15:02:42 +09:00
Jun Hiroe cdb49ab608 Refactor fix_to_f in numeric.c 2014-04-16 13:42:40 +09:00
Jun Hiroe 212b3409ae Refactor lshift in numeric.c 2014-04-16 13:42:40 +09:00
Jun Hiroe 0823b23623 Refactor fix_shift_get_width in numeric.c 2014-04-16 13:42:40 +09:00
Yukihiro "Matz" Matsumoto c136d871b9 Merge pull request #2065 from take-cheeze/utf8_string_size_test
Add test for UTF-8 string String#size .
2014-04-15 23:50:34 +09:00
take_cheeze 96f40c9ec4 Add test for UTF-8 string String#size . 2014-04-15 22:39:52 +09:00
Yukihiro "Matz" Matsumoto 1c9ad8a580 fixed typo in opcode.h 2014-04-15 22:24:02 +09:00
Yukihiro "Matz" Matsumoto f301f36ec5 Merge pull request #2064 from mirichi/opt_jmp
OP_EQ系が速くなった
2014-04-15 20:08:15 +09:00
Yukihiro "Matz" Matsumoto 216b051756 Merge pull request #2063 from bovi/update_language_doc
Improve Language Documentation
2014-04-15 19:54:09 +09:00
mirichi b796c503fa OP_EQ系が速くなった 2014-04-15 19:30:42 +09:00
Daniel Bovensiepen c53846a22a merge @mattn's win-compatibility 2014-04-15 18:28:16 +08:00
Daniel Bovensiepen a182a0d38c Improve generator to output status 2014-04-15 13:17:23 +08:00
Daniel Bovensiepen 88951ddb7e Update language documentation without line number to reduce update interval in the future 2014-04-15 13:07:00 +08:00
Daniel Bovensiepen 1017868e78 Implement switch for line numbers 2014-04-15 13:05:40 +08:00
Daniel Bovensiepen d83c66c854 Update Language Documentation 2014-04-15 12:48:12 +08:00
Yukihiro "Matz" Matsumoto 5138f62d6b resolve conflict 2014-04-15 10:55:46 +09:00
Takeshi Watanabe 6e0c48d758 Fix and add test to Proc#inspect . 2014-04-14 22:01:52 +09:00