Jun Hiroe
de04d3f080
Add Kernel.String
2014-10-20 22:35:58 +09:00
Yukihiro "Matz" Matsumoto
69ba4f0ed5
instance_methods etc should not include undef'ed method names; based on a patch from @cremno; fix #2613
2014-10-20 11:11:26 +09:00
Yukihiro "Matz" Matsumoto
cee3dc58d6
Merge pull request #2612 from suzukaze/refactor-mrb_f_array
...
Refactor mrb_f_array func
2014-10-20 09:15:25 +09:00
Jun Hiroe
9b1d9a7901
Refactor mrb_f_array func
2014-10-19 20:06:27 +09:00
Yukihiro "Matz" Matsumoto
4fd28deff9
refactoring C part of #2611
2014-10-19 19:39:02 +09:00
Yukihiro "Matz" Matsumoto
c6669a328d
Merge pull request #2611 from suzukaze/add-kernel.Array
...
Add Kernel.Array
2014-10-19 19:33:39 +09:00
Jun Hiroe
b6edf24a01
Add Kernel.Array
2014-10-19 19:25:31 +09:00
Yukihiro "Matz" Matsumoto
3f06307317
need addtional type check to avoid SEGV; ref #2609
2014-10-18 11:26:30 +09:00
Yukihiro "Matz" Matsumoto
3ff5081650
context proc may be cfunc; fix #2609
2014-10-17 15:48:58 +09:00
Yukihiro "Matz" Matsumoto
c5a23e6a0d
remove header prototype of mrb_exc_print; close #2607
2014-10-15 21:21:58 +09:00
Yukihiro "Matz" Matsumoto
3a94255495
Merge pull request #2608 from mrbrdo/fix-typo
...
fix typo (i->idx)
2014-10-15 21:19:03 +09:00
Jan Berdajs
aff2be4b40
fix typo (i->idx)
2014-10-15 14:11:00 +02:00
Yukihiro "Matz" Matsumoto
b4cc962c3a
add similar range check for tm->usec as well
2014-10-03 14:58:59 +09:00
Yukihiro "Matz" Matsumoto
95b3a70291
always check range before casting time_t to mrb_int
2014-10-03 14:57:22 +09:00
Yukihiro "Matz" Matsumoto
88d14e03d0
time_t may overflow mrb_int when word boxing is used
2014-10-03 11:10:09 +09:00
Yukihiro "Matz" Matsumoto
2b3675bca1
word_boxing.h used int to represent symbols; use mrb_sym instead
2014-10-03 11:02:06 +09:00
Yukihiro "Matz" Matsumoto
f03c23572d
Merge pull request #2602 from Hiroyuki-Matsuzaki/fix_cygwin_gcc_warning
...
fixed. cygwin-gcc(ver4.8.3) warning in conv_digit()
2014-10-02 21:03:33 +09:00
Yukihiro "Matz" Matsumoto
c08321ef23
remove accidental check-in of mruby-thread gem
2014-10-02 20:43:04 +09:00
Hiroyuki Matsuzaki
e77ea4e5f2
fixed. cygwin-gcc(ver4.8.3) warning in conv_digit()
2014-10-02 19:50:58 +09:00
Yukihiro "Matz" Matsumoto
ff663075e4
Merge pull request #2601 from mimaki/mrblib_absolute_path
...
Change mrblib's source path to absolute path
2014-10-02 17:59:40 +09:00
Yukihiro "Matz" Matsumoto
83992ee163
cast MRB_ENV_STACK_LEN to (mrb_int); ref #2600
2014-10-02 17:59:01 +09:00
Yukihiro "Matz" Matsumoto
906b62d50f
Merge pull request #2600 from mimaki/fix_msvc_warnings
...
Pacify MSVC warnings for numeric.c, proc.c, and symbol.c
2014-10-02 17:50:27 +09:00
Hiroshi Mimaki
62c58d3dad
Change mrblib's source path to absolute path
2014-10-02 15:23:10 +09:00
Hiroshi Mimaki
ed15477c74
Pacify MSVC warnings for numeric.c, proc.c, and symbol.c
2014-10-02 13:37:49 +09:00
Yukihiro "Matz" Matsumoto
6b956f1c1b
use __init_array_start to determine readonly data section;
...
b72e94f used _etext and _edata to distinguish C string literals from heap allocated strings,
but using _edata, global char arrays may be considered as string literals. to avoid the issue,
we have to use __init_array_start, which might be less portable. you can still use _edata, by
using MRB_NO_INIT_ARRAY_START.
2014-10-02 09:27:39 +09:00
Yukihiro "Matz" Matsumoto
ae1403004b
load.c to use mrb_ro_data_p()
2014-10-01 00:01:36 +09:00
Yukihiro "Matz" Matsumoto
b72e94fa6b
mrbconf.h option MRB_USE_ETEXT_EDATA to reduce memory.
...
on platforms with _etext and _edata, mruby can distinguish string literals so that it avoids memory allocation to copy them.
for example, on my Linux box (x86 32bit), memory consumed by mrbtest decreased from 8,168,203 to 8,078,848 (reduced 88KB).
2014-09-30 23:48:57 +09:00
Yukihiro "Matz" Matsumoto
bbf24b8463
mrb_sym2name_len() should initialize lenp even when proper symbol does not exist
2014-09-30 22:46:19 +09:00
Yukihiro "Matz" Matsumoto
7a7dcd12e5
remove unnecessary trailing comma to remove pre C99 declaration error with -Wdeclaration-after-statement
2014-09-30 22:40:55 +09:00
Yukihiro "Matz" Matsumoto
4a55b42984
O(1) mrb_sym2name_len(); close #2591
...
instead of adding sym->name hash table, linear symbol table is added, and reduced name->sym hash table size.
2014-09-30 20:15:27 +09:00
Yukihiro "Matz" Matsumoto
3e3048ddd1
Merge pull request #2599 from SatoshiOdawara/fix_target_class_in_instance_eval
...
target_class should not be TT_ICLASS in instance_eval(string); ref #1152
2014-09-30 10:14:25 +09:00
Yukihiro "Matz" Matsumoto
d85cce9539
Merge pull request #2598 from SatoshiOdawara/fix_lv_scope_eval
...
fixed. closures scope in eval(string)
2014-09-30 10:13:58 +09:00
Satoshi Odawara
a10d36e0a2
target_class should not be TT_ICLASS in instance_eval(string); ref #1152
2014-09-29 17:53:08 +09:00
Satoshi Odawara
2551d14ff1
fixed. closures scope in eval(string)
2014-09-29 16:41:51 +09:00
Yukihiro "Matz" Matsumoto
b090f43251
Merge pull request #2597 from kou/remove-duplicated-declaration
...
Remove duplicated mrb_print_backtrace() declaration
2014-09-28 20:36:20 +09:00
Kouhei Sutou
55dca8337e
Remove duplicated mrb_print_backtrace() declaration
...
It is declared in mruby.h.
2014-09-27 23:53:25 +09:00
Yukihiro "Matz" Matsumoto
50e4df83cf
Merge pull request #2596 from take-cheeze/fix_args
...
Fix `mrb_get_args` arguments type error found by mruby-clang-plugin.
2014-09-21 23:30:39 +09:00
take_cheeze
524c9152d3
Fix mrb_get_args arguments types found by mruby-clang-plugin.
2014-09-21 22:43:13 +09:00
Yukihiro "Matz" Matsumoto
a12a9bfb8f
Merge pull request #2595 from drbrain/80_column_README
...
Wrap README, etc. to 80 columns
2014-09-21 12:00:00 +09:00
Eric Hodel
b7fc0f95e5
Wrap CONTRIBUTING.md to 80 columns
2014-09-21 11:07:36 +09:00
Eric Hodel
03a8d0c0ae
Wrap INSTALL to 80 columns
2014-09-21 11:04:40 +09:00
Eric Hodel
a12d8e32b1
Wrap README.md to 80 columns
2014-09-21 10:59:27 +09:00
Yukihiro "Matz" Matsumoto
5f7b0580b7
code reduce by using mrb_get_args("n")
2014-09-19 03:03:53 +09:00
Yukihiro "Matz" Matsumoto
147fbf1c12
Module#const_defined? to take second optional argument as CRuby; fix #2593
2014-09-19 03:02:07 +09:00
Yukihiro "Matz" Matsumoto
95c7f570e1
change class argument of mrb_const_defined_at from struct RClass* to mrb_value to make it consistent with mrb_const_defined; ref #2593
2014-09-19 02:51:52 +09:00
Yukihiro "Matz" Matsumoto
6b34166ba5
const_defined? to check superclasses; ref #2593
2014-09-19 02:41:20 +09:00
Yukihiro "Matz" Matsumoto
50f54529f2
to_hash/to_a check in Hash[] should only be done when only one argument is given; ref #2594
2014-09-19 01:14:50 +09:00
Yukihiro "Matz" Matsumoto
02b2ac8de2
Merge pull request #2594 from yasuyuki/hash
...
Implement Hash[]
2014-09-19 00:36:33 +09:00
INOUE Yasuyuki
5f16c41753
copy documentation comment from CRuby
2014-09-18 17:43:38 +09:00
INOUE Yasuyuki
d30aadf306
remove line number from raise message
2014-09-18 17:37:48 +09:00