Yukihiro "Matz" Matsumoto
fcbb7ec49d
Fix crash if #inspect does not return a string value
2014-12-16 19:26:40 +09:00
Yukihiro "Matz" Matsumoto
05e6513fb4
Merge pull request #2669 from suzukaze/string.insert
...
Add String#insert
2014-12-13 15:40:37 +09:00
Jun Hiroe
45a442a9d7
Add String#insert
2014-12-13 15:31:22 +09:00
Yukihiro "Matz" Matsumoto
f1481105b7
Merge pull request #2668 from sdottaka/fix-crash-for-inspect
...
Fix crash if #inspect does not return a string value
2014-12-12 23:12:48 +09:00
sdottaka
fe01ce5b02
Fix crash if #inspect does not return a string value
...
case 1
~~~
class A; def inspect; 1; end; end
A.new.a
~~~
case 2
~~~
class A
def self.inspect
1
end
alias_method :a, :b
end
~~~
2014-12-12 23:05:22 +09:00
Yukihiro "Matz" Matsumoto
96d02b1268
Merge pull request #2667 from murasesyuka/usage_message_is_used_switches_instead_of_option
...
fix usage message
2014-12-12 22:13:06 +09:00
Yukihiro "Matz" Matsumoto
4078670bca
mrb_p() should print mrb_obj_as_string() if #inspect does not return a string value
2014-12-12 21:32:02 +09:00
Yukihiro "Matz" Matsumoto
9723d6e4ba
mirb dies if #inspect returns a non-string value; fix #2666
2014-12-12 13:14:56 +09:00
murase_syuka
77c6bfe287
fix usage message
2014-12-11 06:54:15 +09:00
Yukihiro "Matz" Matsumoto
44c29e88ae
block_given did not work with nested block invocation for some cases; fix #2665
2014-12-11 00:36:18 +09:00
Yukihiro "Matz" Matsumoto
4eff93632f
mrb_parser_dump() did not work with block arguments
2014-12-11 00:08:56 +09:00
Yukihiro "Matz" Matsumoto
b48514bdcb
Merge pull request #2663 from iij/pr-fix-string-utf8-aref
...
adding mruby-string-utf8 breaks String#[float]
2014-12-05 14:54:59 +09:00
Tomoyuki Sahara
5f68be7190
String#[] accepts float.
2014-12-05 13:42:58 +09:00
Yukihiro "Matz" Matsumoto
ea828944ef
Merge branch 'master' of github.com:mruby/mruby
2014-12-02 15:44:32 +09:00
Yukihiro "Matz" Matsumoto
64d1d10492
Merge pull request #2660 from cremno/fix-isblank-for-visual-studio-versions-older-than-2013
...
fix ISBLANK() for Visual Studio < 2013
2014-12-02 12:02:38 +09:00
cremno
f6d15cfc38
fix ISBLANK() for Visual Studio < 2013 (ref #2658 )
...
Visual Studio versions older than 2013 lack C99's isblank().
Since only ASCII characters are passed to it, implement it
directly without calling the locale-specific isblank().
2014-12-02 00:43:45 +01:00
Yukihiro "Matz" Matsumoto
4c70b5c644
should not pop register when value from multiple assignment required
2014-12-01 08:06:23 +09:00
Yukihiro "Matz" Matsumoto
260cad689a
Merge pull request #2656 from murasesyuka/bugfix/mruby-bin-debugger_enforce_the_c99
...
adhoc fix for pass build
2014-11-29 09:32:44 +09:00
murase_syuka
39b4caea81
closing to Local Scope
2014-11-29 01:02:40 +09:00
Yukihiro "Matz" Matsumoto
09c6ca936c
preserve ICLASS in ci->target_class; fix #2657 ; ensuring #1467 #1470 #1493 still works
2014-11-28 20:35:06 +09:00
Yukihiro "Matz" Matsumoto
bcf8ad87e6
add multiple assignment decomposition test
2014-11-27 16:21:48 +09:00
Yukihiro "Matz" Matsumoto
e4ca706530
wrong register adjustment
2014-11-27 16:21:15 +09:00
murase_syuka
1248e2ba8a
adhoc fix for pass build
2014-11-27 01:12:01 +09:00
Yukihiro "Matz" Matsumoto
dd14973697
Merge pull request #2655 from tmtm/fix-numeric-step
...
Fix: Numeric#step infinite loop.
2014-11-26 08:34:51 +09:00
TOMITA Masahiro
bbab89e730
Fix: Numeric#step infinite loop.
2014-11-26 01:34:07 +09:00
Yukihiro "Matz" Matsumoto
1365151dcb
Merge pull request #2652 from cremno/mrdb-add-missing-null-termination
...
mrdb: add missing null-termination
2014-11-26 01:05:04 +09:00
Yukihiro "Matz" Matsumoto
bf0875d2bb
Merge branch 'master' of github.com:mruby/mruby
2014-11-26 01:04:24 +09:00
Yukihiro "Matz" Matsumoto
e1a7fa925e
add "fall through" comment
2014-11-26 01:03:57 +09:00
Robert Mosolgo
0133d9ac70
fix(String) String#[] accepts float; close #2650 #2651
2014-11-26 01:03:38 +09:00
Yukihiro "Matz" Matsumoto
2de7c5073c
Merge branch 'master' of github.com:mruby/mruby
2014-11-26 00:50:37 +09:00
Yukihiro "Matz" Matsumoto
28bd33297a
wrong register number adjustment in multiple assignment; fix #2654
2014-11-26 00:43:39 +09:00
Yukihiro "Matz" Matsumoto
c424892c5e
OP_APOST local variable display was wrong
2014-11-26 00:43:39 +09:00
cremno
553b9df306
free memory used by breakpoints
2014-11-26 00:43:39 +09:00
cremno
1cc6eaca2a
free return value of dirname()
2014-11-26 00:43:39 +09:00
Hiroshi Mimaki
c5f480ebfd
Merge pull request #2646 from cremno/mrdb-fix-memory-leaks
...
mrdb: fix two memory leaks
2014-11-25 14:16:42 +09:00
Hiroshi Mimaki
251dbca8e2
Merge pull request #2644 from cremno/mrdb-minor-changes
...
mrdb: minor changes
2014-11-25 14:11:57 +09:00
Yukihiro "Matz" Matsumoto
0a8e8bd046
Merge pull request #2653 from cremno/remove-unnecessary-_win32-preprocessor-check
...
remove unnecessary _WIN32 preprocessor check
2014-11-25 12:09:39 +09:00
cremno
94f1ad6cc1
remove unnecessary _WIN32 preprocessor check
...
SIZE_MAX < UINT32_MAX is false on Win32 / Win64.
2014-11-25 02:04:30 +01:00
cremno
5f1e90fc58
add missing null-termination
2014-11-25 01:46:06 +01:00
Yukihiro "Matz" Matsumoto
87ce13f91d
Merge branch 'master' of github.com:mruby/mruby
2014-11-23 23:31:47 +09:00
Yukihiro "Matz" Matsumoto
6d00974a98
Merge pull request #2649 from tmtm/fix-string-slice
...
Fix String#slice! raise TypeError or return invalid value.
2014-11-23 23:31:36 +09:00
TOMITA Masahiro
0a0afa7c6a
Fix String#slice! raise TypeError or return invalid value.
2014-11-23 21:26:50 +09:00
Yukihiro "Matz" Matsumoto
9ec00ef182
align indent of local variable names in codedump()
2014-11-23 07:36:58 +09:00
Yukihiro "Matz" Matsumoto
2c04f4029f
Merge pull request #2648 from cubicdaiya/use_lit_for_mrdb
...
use mrb_str_xxx_lit for mrdb.
2014-11-22 17:39:56 +09:00
Yukihiro "Matz" Matsumoto
bce75e2746
should support recursive mlhs decomposition, e.g. (a,b),c = [1,2],3
2014-11-22 12:16:59 +09:00
Tatsuhiko Kubo
48a04ff1b4
use mrb_str_xxx_lit for mrdb.
2014-11-22 10:43:01 +09:00
Yukihiro "Matz" Matsumoto
b28ec1bc88
Merge pull request #2645 from cremno/mrdb-fix-heap-use-after-free
...
mrdb: fix heap-use-after-free
2014-11-20 12:46:07 +09:00
cremno
c9c0f9a79b
remove const type qualifier
...
clang 3.5.0 with -Wextra produces a -Wignored-qualifiers diagnostic.
2014-11-20 02:39:48 +01:00
cremno
c2bc44e131
don't convert function pointer to object pointer
2014-11-20 02:39:47 +01:00
cremno
337395c1ee
remove cast
...
C99+TC3, 7.19.7.1p2: [...] the fgetc function obtains that character as
an unsigned char converted to an int [...]
2014-11-20 02:39:46 +01:00