Yukihiro "Matz" Matsumoto
2fe64f24f8
remove Exception#verbose_backtrace; #1495
2013-09-03 15:52:35 +09:00
take_cheeze
d606f9d33f
fix line number after first file
2013-09-03 00:29:49 +09:00
take_cheeze
968f5d2a27
improve checkings in debug.c
2013-09-03 00:00:07 +09:00
take_cheeze
3df8686259
don't use RArray in filename table generating
2013-09-02 22:46:57 +09:00
take_cheeze
8588c54452
declare variable outside for
2013-09-02 22:12:55 +09:00
take_cheeze
addb57f7e5
better line type selector
2013-09-02 00:48:08 +09:00
take_cheeze
bd5afe9eef
rename debug function name
2013-09-02 00:48:07 +09:00
take_cheeze
0b806ca17b
reduce node size
2013-09-02 00:48:07 +09:00
take_cheeze
8082a37748
use uint16_t for line type
2013-09-02 00:48:06 +09:00
take_cheeze
3d1fffbd6b
support multiple filename in irep
2013-09-02 00:48:06 +09:00
take_cheeze
bc131350d4
print singleton class name in verbose backtrace
2013-09-02 00:48:06 +09:00
take_cheeze
d12b6ab218
add verbose_backtrace
2013-09-02 00:48:06 +09:00
take_cheeze
d19d9bb047
fix crash in 2nd call to vsnprintf
2013-09-02 00:48:05 +09:00
Yukihiro "Matz" Matsumoto
ad5c408c7b
revert #1470 ; fix #1493
2013-08-31 14:19:15 +09:00
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
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
53ff8172e5
add mrb_string_type().
2013-08-23 15:06:26 +09:00
Yukihiro "Matz" Matsumoto
32d0dbc8bf
Merge branch 'master' of github.com:mruby/mruby
2013-08-19 11:07:26 +09: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
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
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
f8454e53ba
check d->type before accessing d->type->dfree; #1474 #858
2013-08-14 16:51:50 +09: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
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
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
Carson McDonald
7a2e0d6cf5
This check and class change is redundant because it is done in class.c#mrb_include_module
2013-08-13 11:38:27 -04:00
Carson McDonald
5a6a557f72
Remove debug printf
2013-08-13 11:30:51 -04:00
Yukihiro "Matz" Matsumoto
b822c0b35e
ci->target_class should point to ICLASS, not MODULE; close #1467
2013-08-14 00:13:32 +09:00
Yukihiro "Matz" Matsumoto
6b015ec775
define Class#new in ruby to call #initialize
2013-08-13 16:55:06 +09:00
fleuria
6dcf2ffb08
fix #1459
...
gen_vmassignment() missed a pop() in a conditional branch, but we have
to keep each conditional branch 's stack depth the same all the time
when it left execution.
2013-08-12 14:18:09 +08:00
Yukihiro "Matz" Matsumoto
4f1fe9a3ee
Merge pull request #1458 from suzukaze/fix-iso-no-in-string-class
...
I fix ISO no in String class in comparison with ISO_IEC_30170_2012(E)
2013-08-11 18:28:10 -07:00
Jun Hiroe
d4b2d0a912
I fix ISO No in String class in comparison with ISO_IEC_30170_2012(E)-Charactor_PDF_document.pdf
2013-08-11 21:15:01 +09:00
Yukihiro "Matz" Matsumoto
f6fa07235b
Merge pull request #1450 from Fleurer/cleanup-warninigs
...
clean up the warnings when GC_PROFILE is set
2013-08-09 07:59:09 -07:00
Yukihiro "Matz" Matsumoto
53f750dbed
def statement and define_method now return symbol a la Ruby2.1
2013-08-09 22:25:45 +09:00
fleuria
b3b4f2dbdb
clean up the warnings when GC_PROFILE is on
2013-08-09 17:38:09 +08:00
Yukihiro "Matz" Matsumoto
3d3ca985b0
remove duplicated incremental_gc_until() in generational GC; #1449
2013-08-09 18:11:16 +09:00
fleuria
7e7943322b
add comments for major GC
2013-08-09 15:43:06 +08:00
Cremno
08911d1c82
parse.y: fixed bison 3.0 warning
...
YACC src/parse.y -> build/host/src/y.tab.c
src/parse.y:936.1-12: warning: deprecated directive, use ‘%pure-parser’
[-Wdeprecated]
%pure_parser
2013-08-09 03:30:08 +02:00
Yukihiro "Matz" Matsumoto
30f86069de
finish half-baked GC cycle before starting full GC; #1447
2013-08-08 22:08:12 +09:00
Yukihiro "Matz" Matsumoto
1e87bf6d2f
allow turning off GC generational mode by default by MRB_GC_TURN_OFF_GENERATIONAL; #1447
2013-08-08 21:42:20 +09:00