take_cheeze
08ea324593
move src/error.h to include/mruby/error.h
2014-02-20 22:41:29 +09:00
Miura Hideki
5df82e357c
Store raw stack address in callinfo instead of offset from stbas
2014-02-09 16:42:25 +09:00
h2so5
b53d91e6e2
fix NODE_SPLAT codegen
2014-02-01 12:22:28 +09:00
cremno
f2a62a74ed
clean up external symbols
...
remove unused and unneeded:
- sysexit_status
- type (a global variable)
add mrb_ prefix to:
- codedump_all
- class_instance_method_list
- parser_dump
make various functions static, incl.:
- yyparse
- make_exception
2014-01-31 01:30:18 +01:00
h2so5
25045345c9
clone Class/Module rightly
2014-01-25 07:47:15 +09:00
crimsonwoods
370ad6fade
Remove 'mrb_state' field from 'kh_xxx_t' structure.
...
'kh_xxx_t' requires 'mrb_state' to allocate, free, and compute hash value.
But 'mrb_state' should not be held by 'kh_xxx_t' and 'mrb_state' should be
supplied from outside.
2013-12-23 00:33:07 -08:00
take_cheeze
df780ae5e9
add mrb_intern_lit for creating symbol from string literal
2013-12-01 10:38:59 +09:00
Yukihiro "Matz" Matsumoto
9c6398a444
rename mrb_intern2() to mrb_intern(); huge API incompatibility; close #1513
2013-11-29 08:47:28 +09:00
Yukihiro "Matz" Matsumoto
888ddf1c84
type check class/module in mrb_get_args(); close #1477
2013-10-30 13:24:55 +09:00
h2so5
88758e3630
Uniquify the results of Object#methods
2013-10-27 04:04:06 +09:00
Yukihiro "Matz" Matsumoto
3995e7ff8f
rename voidp to cptr
2013-09-21 17:28:47 +09:00
fleuria
620e323d15
replace assert with mrb_assert
2013-07-25 03:00:03 +08:00
fleuria
4a8e89db2b
suppress the warnings from get_valid_iv_sym()
...
The parameter iv_name SHOULD be string or symbol, but there is no
garantee on it.
2013-07-24 19:13:43 +08:00
Yukihiro "Matz" Matsumoto
2daf39ddc8
change else formatting
2013-07-22 09:52:06 +09:00
Ryan Scott
3ebd8167e1
Slight cleanup of code
2013-07-21 18:05:45 +10:00
Ryan Scott
75f8aab247
First round of trying to improve the performance of attr_reader and attr_writer. From ~24sec to ~15sec
2013-07-18 07:54:16 +10:00
Jun Hiroe
8e42868600
Repalace int with mrb_bool because a return value is boolean.
2013-07-15 23:17:12 +09:00
Jun Hiroe
b8f4e47676
2.Replace mrb_intern() func with mrb_intern2() func or mrb_intern_cstr() func.
2013-07-12 01:32:49 +09:00
kimu_shu
e720782f81
Add MRB_WORD_BOXING mode (represent mrb_value as a word)
2013-05-26 10:09:17 +09:00
Yukihiro "Matz" Matsumoto
5c0b9b703c
primary mruby fiber implementation
2013-05-20 17:54:07 +09:00
Yukihiro "Matz" Matsumoto
bcf1204940
small cosmetic refactoring
2013-04-26 10:59:37 +09:00
Yukihiro "Matz" Matsumoto
e63b086f1e
rename mrb_interned API functions
2013-04-26 10:57:08 +09:00
Yukihiro "Matz" Matsumoto
c99b72b20d
Merge branch 'suppress_intern' of https://github.com/crimsonwoods/mruby into crimsonwoods-suppress_intern
2013-04-26 09:18:39 +09:00
crimsonwoods
09dad05a72
suppress intern inside of 'respond_to?'.
2013-04-25 15:56:53 +09:00
Yukihiro "Matz" Matsumoto
30d580ecbc
rename every ARGS_XXX to MRB_ARGS_XXX; ref #1206
2013-04-25 09:47:36 +09:00
h2so5
9b798114bb
Use mrb_bool for the 'b' format specifier of mrb_get_args
2013-04-22 10:41:53 +09:00
Yukihiro "Matz" Matsumoto
e861ecf514
small consmetic fix
2013-04-20 23:01:31 +09:00
Carson McDonald
93b23357fe
Add implementation for respond_to_missing?
2013-04-20 07:48:26 -04:00
h2so5
359b5ee7af
Refactor kernel.c and class.c
2013-04-20 01:25:15 +09:00
Yukihiro "Matz" Matsumoto
09eae5ceb2
move no block check to mrb_yield_internal
2013-04-13 10:03:34 +09:00
Yukihiro "Matz" Matsumoto
c3b79e11f3
add no block check; based on patch from h2so5; close #1174
2013-04-13 01:16:37 +09:00
Kouki Ooyatsu
7e163c0567
bugfix: Kernel#!=, and add #!= testcase.
2013-04-01 12:18:19 +09:00
Masaki Muranaka
2b5b161f8b
Sort include files. Some redundant includes are removed.
2013-03-29 10:22:31 +09:00
Masaki Muranaka
c0b5220418
Modify mrb_name_error() to use mrb_format().
2013-03-28 17:35:04 +09:00
Yukihiro Matz Matsumoto
18b2683b97
use new mrb_format API from mrb_raisef; its only format specifier is "%S" (stringify) and takes mrb_value; close #1062
2013-03-27 23:41:23 +09:00
Yukihiro Matz Matsumoto
b1bd62e047
remove all MRB_TT_MAIN from source
2013-03-26 21:25:00 +09:00
Carson McDonald
930e4c71c0
Make mrb_top_self return a real instance.
2013-03-25 00:23:22 -04:00
mattn
a8abbaed1a
Remove needless prototype
2013-03-24 00:34:10 +09:00
Masaki Muranaka
f8fa56d8c3
Use mrb_intern2() instead of mrb_intern(). This is for avoiding overhead by strlen().
2013-03-22 14:22:45 +09:00
Yukihiro Matz Matsumoto
d0d920e909
rename mrb_true_or_false_value() to mrb_bool_value()
2013-03-19 12:03:54 +09:00
Masaki Muranaka
872536a800
Use mrb_true_or_false_value() / in obj_respond_to().
2013-03-19 11:04:21 +09:00
Masaki Muranaka
447f110e86
Use mrb_true_or_false_value() / in mrb_obj_is_kind_of_m().
2013-03-19 11:04:21 +09:00
Masaki Muranaka
739338b86f
Use mrb_true_or_false_value() / in mrb_obj_ivar_defined().
2013-03-19 11:04:21 +09:00
Masaki Muranaka
af1ead1ef9
Use mrb_true_or_false_value() / in obj_is_instance_of().
2013-03-19 11:04:21 +09:00
Masaki Muranaka
57e345c767
Use mrb_true_or_false_value() / in mrb_f_block_given_p_m().
2013-03-19 11:04:21 +09:00
Masaki Muranaka
70baae2573
Use mrb_true_or_false_value() / in mrb_equal_m().
2013-03-19 11:04:21 +09:00
Masaki Muranaka
713c4f9c75
Use mrb_true_or_false_value() / in mrb_obj_not_equal_m().
2013-03-19 11:04:21 +09:00
Masaki Muranaka
7a840e321a
Use mrb_true_or_false_value() / in mrb_obj_equal_m().
2013-03-19 11:04:21 +09:00
Yukihiro Matz Matsumoto
88483fad00
rename mrb_basic to mrb_basic_ptr; close #1011
2013-03-15 23:21:13 +09:00
kano4
60df77788b
Add break to default case in switch statement
2013-03-14 23:18:12 +09:00