Commit Graph

5038 Commits

Author SHA1 Message Date
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
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
Yukihiro "Matz" Matsumoto 4685a43dd6 should always initialize header flags for pooled strings 2014-04-14 16:55:28 +09:00
Yukihiro "Matz" Matsumoto 10db9e62b6 fixed wrong use of pointer reference found by @tsahara; ref #2059 2014-04-14 16:48:23 +09:00
Yukihiro "Matz" Matsumoto 2a76532fe8 Merge pull request #2060 from cremno/exc_inspect-dup-file
exc_inspect: dup file and check mesg only once
2014-04-14 12:22:18 +09:00
Yukihiro "Matz" Matsumoto 636addd645 Merge pull request #2059 from cremno/reduce-rstring_ptr-usage
reduce RSTRING_PTR usage
2014-04-14 12:20:18 +09:00
cremno 7a8ed0fa3a exc_inspect: dup file and check mesg only once 2014-04-14 03:52:17 +02:00
cremno 649081661a reduce RSTRING_PTR usage 2014-04-14 00:58:34 +02:00
Yukihiro "Matz" Matsumoto 65678f11b4 Merge pull request #2058 from cremno/mruby-time-more-portable
mruby-time: two small changes for portability
2014-04-14 07:10:39 +09:00
cremno 06a946abb2 mruby-time: fix check of mktime's return value
>If the calendar time cannot be represented, the function returns the
value (time_t)(-1).
http://www.iso-9899.info/n1256.html#7.23.2.3p3
2014-04-13 16:43:13 +02:00
cremno 8b5cbe2f33 mruby-time: remove unnecessary tzset call
The gem doesn't use the global variables and:
>Local timezone information is used as though localtime() calls tzset().
http://pubs.opengroup.org/onlinepubs/9699919799/functions/localtime.html
2014-04-13 16:39:16 +02:00
Yukihiro "Matz" Matsumoto 382aed8a12 disable fragile bintest on travis-ci 2014-04-13 18:46:45 +09:00
Yukihiro "Matz" Matsumoto ac5091e211 use quadratic probing in khash.h 2014-04-13 18:30:22 +09:00
Yukihiro "Matz" Matsumoto 8d95e5a0de use kh_put2 in mrb_hash_set for performance improvement 2014-04-13 18:26:13 +09:00
Yukihiro "Matz" Matsumoto 6d6ae570cb add kh_push2() to check if entry is added 2014-04-13 18:20:37 +09:00
Yukihiro "Matz" Matsumoto 6c02935eb1 Merge branch 'master' of github.com:mruby/mruby 2014-04-13 17:34:27 +09:00
Yukihiro "Matz" Matsumoto b631e0f8d5 avoid function style parens after "return"; ref #2055 2014-04-13 17:34:06 +09:00