Tomoyuki Sahara
f77dc2e6cb
Merge branch 'mruby' into pr-typeerror-string-start-end-with
...
Conflicts:
mrbgems/mruby-string-ext/src/string.c
mrbgems/mruby-string-ext/test/string.rb
2013-08-26 23:20:22 +09:00
Yukihiro "Matz" Matsumoto
91b878e5df
Merge pull request #1485 from fjmilens3/string_end_with
...
Bug in String#end_with? resulting from incorrect length determination
2013-08-26 04:17:20 -07:00
Yukihiro "Matz" Matsumoto
b11ae3fddb
Merge pull request #1484 from fjmilens3/string_start_with
...
Bug in String#start_with? resulting from incorrect length determination
2013-08-26 04:16:50 -07:00
Yukihiro "Matz" Matsumoto
975d670ab7
Merge pull request #1490 from take-cheeze/cxx_extension
...
support file extension .cpp/.cxx in mrbgem and tool
2013-08-26 04:16:13 -07:00
take_cheeze
b6ab216f97
support file extension .cpp/.cxx in mrbgem and tool
2013-08-26 17:56:49 +09:00
Yukihiro "Matz" Matsumoto
26839b9c24
Merge pull request #1487 from h2so5/z-option-with-shared-string
...
Fix a problem of 'z' option and shared string
2013-08-26 00:41:14 -07:00
Yukihiro "Matz" Matsumoto
f3c8cf6735
do not use mrb_alloca() that keeps memory until mrb_state freed
2013-08-26 16:33:27 +09:00
Yukihiro "Matz" Matsumoto
f18837886c
add cast to void*
2013-08-26 16:10:42 +09:00
Yukihiro "Matz" Matsumoto
dd4b7ead7e
undef print_backtrace_i() unless ENABLE_STDIO
2013-08-26 16:00:37 +09:00
Yukihiro "Matz" Matsumoto
ee7f2c8cf7
Merge branch 'get-backtrace' of https://github.com/wanabe/mruby into wanabe-get-backtrace
2013-08-26 15:58:31 +09:00
wanabe
7007ce7ce0
add Exception#backtrace
2013-08-25 01:18:01 +09:00
h2so5
23df879a81
Fix a problem of 'z' option and shared string
2013-08-24 06:52:46 +09:00
Tomoyuki Sahara
0e8efd4a21
Check type of arguments for #start_with and #end_with.
2013-08-23 15:06:26 +09:00
Tomoyuki Sahara
53ff8172e5
add mrb_string_type().
2013-08-23 15:06:26 +09:00
Frederick John Milens III
2548569f60
Refactor of String#start_with? comparison logic.
2013-08-22 19:29:36 -05:00
Frederick John Milens III
d682be9d32
Refactor of String#end_with? comparison logic.
2013-08-22 19:23:53 -05:00
Frederick John Milens III
a0183b394a
Fix for string-length-related issue in String#end_with? logic.
2013-08-22 18:55:07 -05:00
Frederick John Milens III
d42427870b
Added test case for String#end_with? with string of length 2.
2013-08-22 18:41:23 -05:00
Frederick John Milens III
28211d6771
Fix for string-length-related issue in String#start_with? logic.
2013-08-22 16:44:00 -05:00
Frederick John Milens III
de5f5732fe
Added test case for String#start_with? with string of length 1.
2013-08-22 16:37:42 -05:00
Yukihiro "Matz" Matsumoto
e62f874bda
Merge branch 'master' of github.com:mruby/mruby
2013-08-19 17:16:30 +09:00
Yukihiro "Matz" Matsumoto
aa099f7f7d
Merge pull request #1481 from suichu/patch
...
add x86_64-darwin host platform.
2013-08-19 01:16:14 -07:00
taku toyama
7d22c89545
add x86_64-darwin host platform.
2013-08-19 14:30:19 +09:00
Yukihiro "Matz" Matsumoto
32d0dbc8bf
Merge branch 'master' of github.com:mruby/mruby
2013-08-19 11:07:26 +09:00
Yukihiro "Matz" Matsumoto
6dd9bb7c43
Merge pull request #1480 from wanabe/patch-1
...
android doesn't have log2
2013-08-18 19:07:03 -07:00
wanabe
c9ac35f3ba
android doesn't have log2
2013-08-19 01:34:07 +09:00
Yukihiro "Matz" Matsumoto
96ef9925e9
Merge pull request #1479 from chenyukang/remove_return
...
remove a unnecessary return
2013-08-18 07:02:27 -07:00
Yukang
31d10393da
remove unnecessary return
2013-08-18 20:21:48 +08:00
Yukihiro "Matz" Matsumoto
70132ea1df
Merge branch 'master' of github.com:mruby/mruby
2013-08-15 09:34:34 +09:00
Yukihiro "Matz" Matsumoto
a1bcadeb32
Merge pull request #1475 from carsonmcdonald/fixparseerror
...
Return when block argument error
2013-08-14 17:34:23 -07:00
Carson McDonald
7d41835ded
Fix return block argument error
2013-08-14 16:56:42 -04:00
Yukihiro "Matz" Matsumoto
65e802f769
remove Class#alloc method
2013-08-15 01:49:37 +09:00
Yukihiro "Matz" Matsumoto
d780c6683e
use newer DATA API
2013-08-15 01:39:05 +09:00
Yukihiro "Matz" Matsumoto
954c28504e
remove Ruby defined Class#new
2013-08-15 01:37:29 +09:00
Yukihiro "Matz" Matsumoto
b12d9a8700
remove alloc from Time class
2013-08-15 01:37:03 +09:00
Yukihiro "Matz" Matsumoto
b225e4cc82
redesign mruby/data.h API; use DATA_PTR() for raw data pointer, DATA_GET_PTR() to type safe retrieval (TypeError will be raised), DATA_CHECK_GET_PTR() to get nil if type mismatched
2013-08-15 01:33:36 +09:00
Yukihiro "Matz" Matsumoto
babc8d0086
implement Class.new in C again
2013-08-15 00:35:41 +09:00
Yukihiro "Matz" Matsumoto
6e978d5574
add compatibility macro mrb_class_new_instance()
2013-08-15 00:11:17 +09:00
Yukihiro "Matz" Matsumoto
379d668b84
Merge branch 'master' of github.com:mruby/mruby
2013-08-14 16:52:55 +09:00
Yukihiro "Matz" Matsumoto
f8454e53ba
check d->type before accessing d->type->dfree; #1474 #858
2013-08-14 16:51:50 +09:00
Yukihiro "Matz" Matsumoto
b7d6b4d0ce
define allocation method for Time class; close #1474
2013-08-14 16:50:52 +09:00
Yukihiro "Matz" Matsumoto
ab1c5c166c
Merge pull request #1473 from carsonmcdonald/fixclassnew
...
Fix Class#new call to inherited and add a couple Class tests
2013-08-14 00:34:47 -07:00
Yukihiro "Matz" Matsumoto
0dfda0c970
longjmp too far when exception raised from C function called from mrb_funcall()
2013-08-14 16:30:52 +09:00
Carson McDonald
d55eb947f9
Test for Class#inherited
2013-08-13 22:27:25 -04:00
Carson McDonald
dbd243487f
Fix inerited to inherited
2013-08-13 22:11:40 -04:00
Carson McDonald
e34bc72b89
Add test for Class.new(*args)
2013-08-13 22:11:14 -04:00
Yukihiro "Matz" Matsumoto
81903eb9bf
Merge pull request #1472 from JackDanger/jackdanger/add-line-numbers-to-irb
...
Adding line numbers to the output of mirb.
2013-08-13 17:48:10 -07:00
Yukihiro "Matz" Matsumoto
8fa02a2cc7
Merge pull request #1470 from carsonmcdonald/morefixfor1467
...
Tests and another fix for issue #1467
2013-08-13 17:44:22 -07:00
Yukihiro "Matz" Matsumoto
b50d6468e0
Merge pull request #1469 from carsonmcdonald/removedebug
...
Remove debug printf
2013-08-13 17:43:02 -07:00
Jack Danger Canty
2bf4952284
Adding line numbers to the output of mirb.
...
Before:
> "hi"
hi
> d
(mirb):1: undefined method 'd' for main (NoMethodError)
> d
(mirb):1: undefined method 'd' for main (NoMethodError)
> "hi"
hi
> "#{'}"
line 1: unterminated string meets end of file
After
> "hi"
hi
> d
(mirb):2: undefined method 'd' for main (NoMethodError)
> d
(mirb):3: undefined method 'd' for main (NoMethodError)
> "hi"
hi
> "#{'}"
line 5: unterminated string meets end of file
2013-08-13 09:53:52 -07:00