Yukihiro "Matz" Matsumoto
c236d779cf
Merge pull request #2126 from kyab/fix_msvc_warning_error.c
...
Fix MSVC warnings for error.c
2014-04-26 01:31:51 +09:00
Yukihiro "Matz" Matsumoto
4f1bda2da1
Merge pull request #2124 from take-cheeze/eval_file_line
...
Support file name and line number argument in eval.
2014-04-26 01:30:41 +09:00
Yukihiro "Matz" Matsumoto
c15da653b2
Merge pull request #2118 from ksss/range-bool
...
RRange excl flag use mrb_bool insteard of int
2014-04-26 01:30:04 +09:00
kyab
1fdc072032
Fix MSVC warnings for error.c
2014-04-26 00:00:40 +09:00
take_cheeze
215f8fdd64
Fix lineno overwrite in parser_init_cxt.
...
By reordering parsing string with mrb_parser_parse won't always start with line 1.
2014-04-25 21:56:02 +09:00
mirichi
fa1a1e6db8
Refactoring OP_CALL
2014-04-25 21:49:29 +09:00
Yukihiro "Matz" Matsumoto
48f36d3f0e
better integer size assertion suggested by usak
2014-04-25 04:33:08 +09:00
Yukihiro "Matz" Matsumoto
83c1399af0
eliminate plain int except for a few cases like arena_index
2014-04-25 04:01:57 +09:00
Yukihiro "Matz" Matsumoto
8a04dd8493
Merge pull request #2117 from kyab/fix_msvc_warning_backtrace.c
...
Fix MSVC warning for backtrace.c
2014-04-25 02:33:50 +09:00
Yukihiro "Matz" Matsumoto
320f0711f0
remove -Wsign-compare warnings
2014-04-25 02:33:33 +09:00
ksss
aca3a1f3fb
range_init argument for exclude_end use mrb_bool
2014-04-24 13:25:59 +00:00
ksss
f1d85c2f97
mrb_range_new excl flag use mrb_bool insteard of int
2014-04-24 13:18:57 +00:00
kyab
4c8092fe00
Fix MSVC warning for backtrace.c
2014-04-24 22:10:19 +09:00
kyab
e248097a17
Fix MSVC warning for gc.c
2014-04-24 01:18:41 +09:00
mirichi
4ab801c045
fixed.
2014-04-23 19:39:14 +09:00
mirichi
e6c757b5c1
bug fixed
2014-04-22 23:10:40 +09:00
mirichi
8195224072
reduce the init size of stack
2014-04-22 22:02:03 +09:00
mirichi
b523018803
OP_SEND refactoring
2014-04-22 20:04:10 +09:00
cremno
bc23a5e9e5
remove mrb_str_buf_cat
...
It does the same as `mrb_str_cat`.
2014-04-21 21:28:06 +02:00
Nobuyoshi Nakada
ac6747a9c5
fix optional block arguments in rhs
...
define optional block arguments as argument variables in the rhs
default expressions, as same as mere assignment expressions.
Import ruby/ruby@01740f0c27
2014-04-21 14:55:06 +09:00
Nobuyoshi Nakada
28f6cfe424
adjust indent
2014-04-21 14:53:37 +09:00
Nobuyoshi Nakada
367118b1b6
fix optional arguments in rhs
...
define optional arguments as argument variables in the rhs default
expressions, as same as mere assignment expressions.
Import ruby/ruby@01740f0c27
2014-04-21 10:48:00 +09:00
Yukihiro "Matz" Matsumoto
4654db4fdc
Merge pull request #2096 from nobu/def_in_cmdarg
...
Def in cmdarg
2014-04-21 08:56:31 +09:00
Nobuyoshi Nakada
9eaddfab44
allow method definition in cmdarg
...
save cmdarg_stack and isolate command argument state from outer scope
to allow method definition in cmdarg
import from ruby/ruby@04bb9d6b75
2014-04-21 07:00:57 +09:00
Nobuyoshi Nakada
a3d6290d7b
use stack_type instead of raw unsigned int
2014-04-21 06:53:35 +09:00
Jun Hiroe
81308c0bf4
Use boolean macro in is_valid_c_symbol_name()
2014-04-21 01:49:27 +09:00
take_cheeze
1ed9394078
Use boolean macro instead of integer literal in is_debug_info_defined.
2014-04-19 23:25:48 +09:00
Nobuyoshi Nakada
b16697982e
Allow parenthesed do-block in cmdarg
...
Flush cmdarg flags inside left-paren in a command argument, to allow
parenthesed `do-block` as an argument without arguments parentheses.
`CMDARG_PUSH(0)` for tLPAREN_ARG is before `CMDARG_PUSH(1)` in
`command_args` due to look-ahead.
2014-04-19 18:46:07 +09:00
take_cheeze
699964a86e
Use mrb_regexp_p to check regexp.
2014-04-17 14:32:45 +09:00
take_cheeze
d4a510f751
Add mrb_regexp_p to check whether mrb_value is Regexp.
2014-04-17 14:32:45 +09:00
Yukihiro "Matz" Matsumoto
af5a32f4e5
Merge pull request #2069 from cremno/static
...
various functions should have internal linkage
2014-04-17 07:58:05 +09:00
Yukihiro "Matz" Matsumoto
f756a8a72f
Merge pull request #2068 from cremno/exc_inspect-convert-mesg-to-string
...
convert exception message to string
2014-04-17 07:54:34 +09:00
cremno
8271b4ba27
various functions should have internal linkage
2014-04-16 21:26:12 +02:00
cremno
36d3909e63
get classname and concatenate ": " only once
2014-04-16 20:48:39 +02:00
cremno
b4bb2a700a
convert exception message to string
...
fixes: mruby -e "p ArgumentError.new(1)"
2014-04-16 20:44:07 +02:00
take_cheeze
c0eaaf3559
Move src/re.h to include/mruby/re.h .
2014-04-16 22:39:57 +09:00
Yukihiro "Matz" Matsumoto
93c82514dc
Merge branch 'master' of github.com:mruby/mruby
2014-04-16 15:22:50 +09:00
Yukihiro "Matz" Matsumoto
3e00684faa
resolve conflict
2014-04-16 15:18:52 +09:00
Jun Hiroe
cdb49ab608
Refactor fix_to_f in numeric.c
2014-04-16 13:42:40 +09:00
Jun Hiroe
212b3409ae
Refactor lshift in numeric.c
2014-04-16 13:42:40 +09:00
Jun Hiroe
0823b23623
Refactor fix_shift_get_width in numeric.c
2014-04-16 13:42:40 +09:00
Yukihiro "Matz" Matsumoto
1c9ad8a580
fixed typo in opcode.h
2014-04-15 22:24:02 +09:00
mirichi
b796c503fa
OP_EQ系が速くなった
2014-04-15 19:30:42 +09:00
Yukihiro "Matz" Matsumoto
5138f62d6b
resolve conflict
2014-04-15 10:55:46 +09:00
Yukihiro "Matz" Matsumoto
4685a43dd6
should always initialize header flags for pooled strings
2014-04-14 16:55:28 +09:00
Yukihiro "Matz" Matsumoto
10db9e62b6
fixed wrong use of pointer reference found by @tsahara; ref #2059
2014-04-14 16:48:23 +09:00
Yukihiro "Matz" Matsumoto
2a76532fe8
Merge pull request #2060 from cremno/exc_inspect-dup-file
...
exc_inspect: dup file and check mesg only once
2014-04-14 12:22:18 +09:00
cremno
7a8ed0fa3a
exc_inspect: dup file and check mesg only once
2014-04-14 03:52:17 +02:00
cremno
649081661a
reduce RSTRING_PTR usage
2014-04-14 00:58:34 +02:00
Yukihiro "Matz" Matsumoto
8d95e5a0de
use kh_put2 in mrb_hash_set for performance improvement
2014-04-13 18:26:13 +09:00