Commit Graph

5983 Commits

Author SHA1 Message Date
mattn 34f40b0a01 Fix String#succ. "-".succ should be "." 2014-08-11 14:01:10 +09:00
Yukihiro "Matz" Matsumoto 2b74fa54de Merge pull request #2503 from cremno/dont-always-generate-gem-functions
don't always generate gem functions
2014-08-09 23:34:38 +09:00
Yukihiro "Matz" Matsumoto f3f54cb619 Merge pull request #2522 from dycoon/debug_timer
timer on windows bug fixed.
2014-08-09 22:09:48 +09:00
dycoon e7249e4590 timer on windows bug fixed. 2014-08-09 21:40:52 +09:00
Yukihiro "Matz" Matsumoto 67153b0f17 Merge pull request #2521 from kou/fix-class-variable-and-singleton-class-method
Fix a bug that class variable can't be referenced from class method
2014-08-09 15:52:41 +09:00
Kouhei Sutou e75e2083fd Fix a bug that class variable can't be referenced from class method
Class method defined in singleton class should be evaluated in class
context not singleton class context.

fix #2515
2014-08-09 15:06:17 +09:00
Yukihiro "Matz" Matsumoto 39488f0baf git push origin masterMerge branch 'mattn-string-succ' 2014-08-08 23:16:30 +09:00
Yukihiro "Matz" Matsumoto 7a5d3c19c6 remove test for succ on Unicode (non-ASCII) char; #2520 2014-08-08 23:16:12 +09:00
Yukihiro "Matz" Matsumoto 0381de3ee6 Merge branch 'string-succ' of https://github.com/mattn/mruby into mattn-string-succ 2014-08-08 23:15:14 +09:00
mattn dc0c354658 Add String#succ, String#succ!, String#next, String#next! 2014-08-08 17:58:07 +09:00
Yukihiro "Matz" Matsumoto b54682bb8e Merge pull request #2519 from SatoshiOdawara/fix_context_of_eval
fixed evaluation context of eval(string) and instance_eval(string)
2014-08-08 17:13:27 +09:00
Satoshi Odawara 432e8e9ea9 fixed evaluation context of eval(string) and instance_eval(string) 2014-08-08 16:59:40 +09:00
Yukihiro "Matz" Matsumoto 569c7dec5f move StopIteration to core; close #2518 2014-08-08 16:08:53 +09:00
Yukihiro "Matz" Matsumoto 0e45aa0066 Merge pull request #2517 from kkkkkt/remove_nonneed_space
removed non-need space
2014-08-08 12:11:40 +09:00
Yukihiro "Matz" Matsumoto b609054f75 Merge pull request #2516 from suzukaze/fix-typo-gc
Fix typo in gc.c
2014-08-08 12:11:03 +09:00
go kikuta 513f24e908 removed non-need space 2014-08-07 23:11:10 +09:00
Jun Hiroe 33ace171c4 Fix typo in gc.c 2014-08-07 21:16:32 +09:00
Yukihiro "Matz" Matsumoto 918d4dc85c Merge pull request #2512 from suzukaze/gc-state-root
Rename GC_STATE_NONE GC_STATE_ROOT
2014-08-07 00:01:31 +09:00
Yukihiro "Matz" Matsumoto f42e6287b8 Merge pull request #2513 from suzukaze/refactor-gc
Refactor incremental_sweep_phase() in gc.c
2014-08-07 00:00:31 +09:00
Jun Hiroe 5eb3a8caa6 Refactor incremental_sweep_phase() in gc.c 2014-08-06 23:22:05 +09:00
Yukihiro "Matz" Matsumoto 62776e8940 Merge pull request #2511 from bggd/patch-5
Fix a typo in etc.c
2014-08-06 23:11:27 +09:00
Jun Hiroe 21f583783d Rename GC_STATE_NONE GC_STATE_ROOT 2014-08-06 22:59:48 +09:00
bggd d95f77c1cb Fix a typo in etc.c 2014-08-06 21:36:36 +09:00
Yukihiro "Matz" Matsumoto 8dbf7787d5 Merge pull request #2510 from cremno/mruby-strip-use-mrb_open_core
mruby-strip doesn't need mrbgems
2014-08-06 11:48:10 +09:00
Yukihiro "Matz" Matsumoto 1ff32cfb3a Merge pull request #2509 from suzukaze/refactor-gc
Refactor obj_free() in gc.c
2014-08-06 11:47:28 +09:00
Jun Hiroe 3569723ab3 Refactor obj_free() in gc.c 2014-08-05 23:16:01 +09:00
Yukihiro "Matz" Matsumoto fce644df59 Merge pull request #2508 from iij/pr-mrb-str-to-cstr-returns-mutable
revert accidental constify.
2014-08-05 16:32:52 +09:00
Tomoyuki Sahara 412b9eb827 revert accidental constify. 2014-08-05 15:02:27 +09:00
Yukihiro "Matz" Matsumoto e41fd5c0d6 Merge pull request #2507 from kkkkkt/add_cos_tan_testcase
added Math.cos and Math.tan test case
2014-08-05 14:30:19 +09:00
Yukihiro "Matz" Matsumoto 0786d86bfe git push origin masterMerge branch 'suzukaze-add-gc-docs' 2014-08-05 11:29:16 +09:00
Yukihiro "Matz" Matsumoto 58cb1a2e8b write barrier doc update 2014-08-05 11:29:08 +09:00
kkkkkt 9c78fc8443 added Math.cos and Math.tan test case 2014-08-05 11:27:50 +09:00
Yukihiro "Matz" Matsumoto 920ce88b50 Merge branch 'add-gc-docs' of https://github.com/suzukaze/mruby into suzukaze-add-gc-docs 2014-08-05 11:21:45 +09:00
Jun Hiroe b20121f9e6 Add write_barrier docs 2014-08-05 02:10:02 +09:00
Yukihiro "Matz" Matsumoto 53687a849b Merge branch 'master' of github.com:mruby/mruby 2014-08-04 22:36:09 +09:00
Yukihiro "Matz" Matsumoto a18c575614 Merge pull request #2502 from cremno/fix-range_beg_len-linkage
fix linkage of range_beg_len and mrb_range_beg_len
2014-08-04 22:35:41 +09:00
cremno cc4c22c5f5 mruby-strip doesn't need mrbgems
Reduces executable size by more than 50% (409->171 KB).
2014-08-04 12:26:36 +02:00
Yukihiro "Matz" Matsumoto ea80e82852 Merge branch 'master' of github.com:mruby/mruby 2014-08-04 16:28:02 +09:00
cremno 3bf244e67c fix linkage of range_beg_len and mrb_range_beg_len 2014-08-04 05:52:09 +02:00
cremno 6526bb10f0 don't always generate gem functions
If the src and mrblib directories of a mrbgem don't exist or don't
include "usable" files (for tools like mirb), then functions for gem
initialization and finalization don't have to be generated.
2014-08-04 05:50:05 +02:00
Yukihiro "Matz" Matsumoto 0fa3668e91 Merge pull request #2498 from cremno/msvc-snprintf
MSVC: add simple (v)snprintf implementation
2014-08-04 10:51:32 +09:00
Yukihiro "Matz" Matsumoto 29bfbac86d Merge pull request #2501 from cremno/static-mrb_str_size
change linkage of mrb_str_size to internal
2014-08-04 10:48:11 +09:00
Yukihiro "Matz" Matsumoto 50a6b48d53 Merge pull request #2497 from cremno/fix-conversion-warnings
fix conversion warnings (in gc.c)
2014-08-04 10:44:44 +09:00
Yukihiro "Matz" Matsumoto 37a75b096e Merge pull request #2496 from cremno/remove-unnecessary-char_bit-check
remove unnecessary CHAR_BIT != 8 check
2014-08-04 10:44:05 +09:00
cremno 7dabb33cf0 change linkage of mrb_str_size to internal
Use RSTRING_LEN to get the length.
2014-08-04 01:14:23 +02:00
cremno b6e27218ad MSVC: add simple (v)snprintf implementation
_snprintf is not C99's snprintf!

This simple implementation, unlike _snprintf,
always null-terminates and returns the expected
return value (in most cases).
Other C99 behaviors (like format specifiers) require
adding a complete snprintf implementation.
Do we want or need that?

The same applies to vsnprintf (aka _vsnprintf).
2014-08-03 21:15:48 +02:00
cremno a70413c4ea fix conversion warnings
Those warnings are not enabled by default,
but getting rid of them doesn't hurt.
2014-08-03 19:54:31 +02:00
Yukihiro "Matz" Matsumoto db7b01c0b3 turn string obsolete functions into macros 2014-08-04 00:53:58 +09:00
Yukihiro "Matz" Matsumoto 6aa6e75f75 rename obsolete mrb_special_const_p to mrb_immediate_p 2014-08-04 00:50:03 +09:00
Yukihiro "Matz" Matsumoto 206f89e209 add MRB_API modifiers to mruby API functions 2014-08-04 00:47:08 +09:00