Commit Graph

4143 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto 4e2a9509dc Merge pull request #1669 from cremno/copyright-2014
update copyright year
2014-01-31 00:01:09 -08:00
Yukihiro "Matz" Matsumoto 210e7b668e Merge pull request #1668 from cremno/etc-c-cleanup
etc.c: small cleanup
2014-01-31 00:00:41 -08:00
Yukihiro "Matz" Matsumoto 4c9c466ba3 Merge pull request #1670 from cremno/remove-mrb_str_format-declaration
remove mrb_str_format declaration
2014-01-30 23:59:37 -08:00
cremno bb25d42d0d add missing declaration of mrb_str_format 2014-01-31 01:34:20 +01:00
cremno eaf445ea5c mruby.h: remove mrb_str_format declaration
The function mrb_str_format is only defined when the mrbgem mruby-sprintf was
activated. That might not always be the case (by default it currently is).
mrb_str_format still has external linkage, so from now on mrbgem authors
have to declare it in their source code if they want or need to call it.
2014-01-30 23:50:18 +01:00
cremno 3ee946dab4 Happy new year! (update copyright year)
Let's not wait until May this time
(f0a9b95af3)!
2014-01-30 23:17:24 +01:00
cremno d90f52f552 etc.c: small cleanup (delete unused functions)
mrb_data_object_alloc: unnecessary cast
mrb_lastline_get: mruby doesn't support $_, weird and unused code
mrb_exec_recursive: see 4e46abb869
mrb_block_proc: unused, doesn't really do anything (or needs to be
rewritten)
mrb_obj_to_sym: actually use id (and MSVC detected unreachable code)
2014-01-30 23:16:46 +01:00
Yukihiro "Matz" Matsumoto a68a517028 refactor parser lineno adjustment; ref #1667 2014-01-31 00:49:46 +09:00
Yukihiro "Matz" Matsumoto dd70ae0b6e add semicolon after the statements 2014-01-30 22:08:31 +09:00
Yukihiro "Matz" Matsumoto 5815ac4fed Merge pull request #1667 from h2so5/backtrace-lineno
more accurate backtrace lineno
2014-01-30 03:53:03 -08:00
Yukihiro "Matz" Matsumoto aa08158f67 Array#[]= is now range aware 2014-01-30 10:50:56 +09:00
Yukihiro "Matz" Matsumoto 0006278088 move Array#[] tests from mrbgems to test/t/array.rb 2014-01-30 10:33:47 +09:00
h2so5 36e0925053 more accurate backtrace lineno 2014-01-30 10:08:04 +09:00
Yukihiro "Matz" Matsumoto 5346bdd76b move range aware aget to array.c from mruby-array-ext gem 2014-01-29 14:53:38 +09:00
Yukihiro "Matz" Matsumoto b69bb896fc Merge pull request #1664 from h2so5/clone-class-module
clone Class/Module rightly
2014-01-25 04:55:07 -08:00
h2so5 25045345c9 clone Class/Module rightly 2014-01-25 07:47:15 +09:00
Yukihiro "Matz" Matsumoto e0e5aebc66 add callback invocation from OP_DEBUG 2014-01-23 15:08:38 +09:00
Yukihiro "Matz" Matsumoto 92570a96b0 add enable_debug to build_config.rb 2014-01-23 14:25:54 +09:00
Yukihiro "Matz" Matsumoto 68f33d220b Merge pull request #1663 from h2so5/fix-utf8-codepage
fix utf8 codepage
2014-01-22 19:22:36 -08:00
h2so5 1717666662 fix utf-8 codepage 2014-01-23 03:38:54 +09:00
Yukihiro "Matz" Matsumoto 33dc9615d4 Merge pull request #1662 from h2so5/fix-string-inspect
escape non-ascii characters correctly in String#inspect
2014-01-22 05:53:19 -08:00
h2so5 a030cab7d1 escape non-ascii characters correctly in String#inspect 2014-01-21 21:36:59 +09:00
Yukihiro "Matz" Matsumoto b3f8f8a5b0 describe call stack overwritten problem of mrb_get_backtrace; close #1661 2014-01-21 17:12:14 +09:00
Yukihiro "Matz" Matsumoto 4a12d351bb Merge pull request #1659 from carsonmcdonald/threestructtests
Increase test coverage of mruby-struct
2014-01-16 16:46:55 -08:00
Carson McDonald d3a057caed Increase test coverage of mruby-struct 2014-01-16 17:54:56 -05:00
Yukihiro "Matz" Matsumoto 38973f1566 Merge branch 'master' of github.com:mruby/mruby 2014-01-16 21:34:04 +09:00
Yukihiro "Matz" Matsumoto c7cff199dc hash value of enumerable should be obtained from its elements; close #1658 2014-01-16 21:33:48 +09:00
Yukihiro "Matz" Matsumoto 4de72f1870 hash value of enumerable should be obtained from its elements; close #1658 2014-01-16 21:32:08 +09:00
Yukihiro "Matz" Matsumoto e63c1e1d49 Merge pull request #1655 from pbosetti/master
Added rewrite of Array#[] to mruby-array-ext gem
1.0.0
2014-01-10 04:49:57 -08:00
Yukihiro "Matz" Matsumoto 3fff0e2025 Merge pull request #1656 from h2so5/string-length-utf8
String#length should be an alias of String#size
2014-01-10 04:44:13 -08:00
h2so5 61745a4727 String#length should be an alias of String#size 2014-01-10 20:01:04 +09:00
Paolo Bosetti 921e6e24f4 Added rewrite of Array#[] to mruby-array-ext gem, so that arrays can be sliced
with Ranges (as a[1..-2])
2014-01-10 11:13:47 +01:00
Yukihiro "Matz" Matsumoto ff9b41cc37 Merge pull request #1654 from iij/pr-not-match-operator
add operator "!~".
2014-01-09 22:04:01 -08:00
Yukihiro "Matz" Matsumoto a02eb4bddc Merge pull request #1653 from iij/pr-fix-iso-ref-string-match
fix ISO reference number of String#=~.
2014-01-09 22:03:29 -08:00
Tomoyuki Sahara 83413218a5 add operator "!~". 2014-01-10 13:41:41 +09:00
Tomoyuki Sahara 3b76aae4f0 fix ISO reference number of String#=~. 2014-01-10 12:01:24 +09:00
Yukihiro "Matz" Matsumoto 3046cc7bd8 Merge branch 'master' of github.com:mruby/mruby 2014-01-08 13:05:27 +09:00
Yukihiro "Matz" Matsumoto c150f115a1 adjust lineno after continuing script files using mrb_partial_hook; close #1652 2014-01-08 13:05:19 +09:00
Yukihiro "Matz" Matsumoto 2040347d26 Merge pull request #1650 from cremno/remove-str_mod_check
string.c: remove str_mod_check
2014-01-07 15:36:18 -08:00
Yukihiro "Matz" Matsumoto ee8875b1d5 Merge pull request #1651 from h2so5/string-reverse-utf8
add String#reverse, String#reverse! for UTF-8
2014-01-07 15:32:48 -08:00
Yukihiro "Matz" Matsumoto b147970bd2 Merge pull request #1649 from cremno/include-cleanup
remove superfluous includes
2014-01-07 15:32:12 -08:00
h2so5 7fc9264b0f add String#reverse, String#reverse! for UTF-8 2014-01-08 02:21:19 +09:00
cremno 84e9c4befe string.c: remove str_mod_check
Clang 3.4 emits '-Wunused-function' - and it's really unused!
But according to the description this seems to be a bug:

>Warn whenever a static function is declared but not defined or
>a non-inline static function is unused. This warning is enabled by
-Wall.

Source: <http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html>
2014-01-07 18:15:45 +01:00
cremno aa655b9ee1 remove superfluous includes
- reduce compile time by a little bit (full-core: ~0.7s for me)
- thanks to 'include-what-you-use' for some help
- include Standard C header files before any other (coding style)
2014-01-07 17:56:30 +01:00
Yukihiro "Matz" Matsumoto cff4ac6bb7 skip "trace:" header if no backtrace line exists 2014-01-08 00:49:23 +09:00
Yukihiro "Matz" Matsumoto 1cdf283899 Merge branch 'master' of github.com:mruby/mruby 2014-01-08 00:40:57 +09:00
Yukihiro "Matz" Matsumoto a1131361d5 dump.c: wrong filename table dump for multiple script files; close #1648 2014-01-08 00:40:45 +09:00
Yukihiro "Matz" Matsumoto 65d2073739 Merge pull request #1647 from mattn/remove_duplicate_test_for_mruby_string_utf8
Remove duplicate test for mruby-string-utf8
2014-01-07 00:37:38 -08:00
mattn 993095cb7c Remove duplicate test 2014-01-07 16:57:25 +09:00
Yukihiro "Matz" Matsumoto 78ab979ef9 mruby-string-utf8: redefine String#size for UTF-8 string; #1646 2014-01-07 16:24:09 +09:00