Yukihiro "Matz" Matsumoto
90ba47ccfe
implement attr_reader and attr_writer in C; use cfunc closure to speed-up
2014-09-02 16:41:38 +09:00
Yukihiro "Matz" Matsumoto
6c7b0d88e8
refactor valid instance variable name check
2014-09-02 16:37:40 +09:00
Yukihiro "Matz" Matsumoto
471c43ff96
move mrb_proc_new_cfunc_with_env() to the core
2014-09-02 13:03:32 +09:00
Yukihiro "Matz" Matsumoto
7c49d56ce6
attr_reader and attr_writer should return nil
2014-09-01 16:58:04 +09:00
Yukihiro "Matz" Matsumoto
7ac68809d3
remove ci->nreg initialization from cipush()
2014-09-01 15:38:25 +09:00
Yukihiro "Matz" Matsumoto
296b0571be
remove unnecessary MRB_API from mrb_num_div(); close #2578
2014-08-30 16:15:31 +09:00
Yukihiro "Matz" Matsumoto
e91389f922
Merge pull request #2577 from cremno/remove-obsolete-macros
...
delete obsolete macros (mrb_basic + mrb_object)
2014-08-30 10:24:48 +09:00
Yukihiro "Matz" Matsumoto
5e9689c449
Merge pull request #2576 from cremno/correctly-validate-symbol-length
...
correctly validate symbol length
2014-08-30 10:24:14 +09:00
cremno
17b0d658fc
delete obsolete macros (mrb_basic + mrb_object)
...
Over a year ago is not "soon" anymore. See:
88483fad00
243669308d
2014-08-29 16:47:28 +02:00
cremno
c219c2a15e
use RITE_LV_NULL_MARK for better readability
...
The comment didn't say why the length is reserved.
Using RITE_LV_NULL_MARK makes things a bit clearer.
2014-08-29 15:53:52 +02:00
cremno
0e28f4b973
add sym_validate_len() to validate symbol length
...
This also fixes an off-by-one in mrb_check_intern().
2014-08-29 15:53:51 +02:00
Yukihiro "Matz" Matsumoto
607795ffdd
more OP_MOVE swap detection in peephole optimization
2014-08-29 16:24:12 +09:00
Yukihiro "Matz" Matsumoto
3c4cd5428a
allow no_optimize esp. for debugger
2014-08-29 15:09:14 +09:00
Yukihiro "Matz" Matsumoto
56384139a8
Merge pull request #2573 from cubicdaiya/issues/remove_unused_macro
...
Remove unused macro.
2014-08-29 11:56:05 +09:00
Tatsuhiko Kubo
6b8e06a5b9
Remove unused macro.
...
OutOfRange() is no longer used.
2014-08-29 02:22:55 +09:00
Yukihiro "Matz" Matsumoto
a3c34c165b
Merge pull request #2572 from cubicdaiya/issues/fprintf_error_handlings
...
Fix error handlings for fprintf() and fputs() to file.
2014-08-29 01:10:44 +09:00
Yukihiro "Matz" Matsumoto
9e4b012478
Merge pull request #2570 from cubicdaiya/issues/unify_duplicated_functions
...
Unify and rename duplicated functions (noregexp() and regexp_check()).
2014-08-29 01:09:33 +09:00
Yukihiro "Matz" Matsumoto
15b9771abc
git push origin masterMerge branch 'cubicdaiya-issues/declare_mrb_api'
2014-08-29 01:07:12 +09:00
Tatsuhiko Kubo
5fa30aeaea
Fix mismatches for MRB_API declarations.
2014-08-29 01:06:22 +09:00
Yukihiro "Matz" Matsumoto
abd7cad4fd
adjust node lineno of muiti line statements
2014-08-29 01:06:22 +09:00
Yukihiro "Matz" Matsumoto
4b546e2ca4
print lineno of dumping node
2014-08-29 01:06:22 +09:00
Yukihiro "Matz" Matsumoto
7477d0c18c
revert 6c1dfc9; ref #2525 #2565
2014-08-29 01:06:22 +09:00
Yukihiro "Matz" Matsumoto
4077240b81
adjust node lineno of muiti line statements
2014-08-29 00:53:02 +09:00
Yukihiro "Matz" Matsumoto
d4aee563f0
print lineno of dumping node
2014-08-29 00:53:02 +09:00
Tatsuhiko Kubo
db29a25ada
Rename functions for avoinding symbol confiliction.
...
Add prefix(mrb) to noregexp() and regexp_check().
2014-08-28 19:18:52 +09:00
Tatsuhiko Kubo
d958aa2cb1
Unify duplicated functions (noregexp() and regexp_check()).
2014-08-28 19:13:57 +09:00
Yukihiro "Matz" Matsumoto
c457aa2193
revert 6c1dfc9; ref #2525 #2565
2014-08-28 11:53:03 +09:00
Yukihiro "Matz" Matsumoto
1abbfecd9f
Merge pull request #2569 from dycoon/issue2525
...
add write barrier to env on pop call info poped. #2525
2014-08-28 11:39:52 +09:00
dycoon
77b2ec30ff
add write barrier to env on pop call info poped. #2525
2014-08-28 09:14:40 +09:00
Tatsuhiko Kubo
7d9b5132a5
Fix error handlings for fputs().
2014-08-28 05:29:25 +09:00
Tatsuhiko Kubo
921798be01
Fix error handlings for fprintf().
2014-08-28 05:19:09 +09:00
Yukihiro "Matz" Matsumoto
7a25b53301
Merge pull request #2567 from cubicdaiya/issues/space_after_comma2
...
Add a missing space after ",".
2014-08-27 23:48:34 +09:00
Yukihiro "Matz" Matsumoto
0d40047793
Merge pull request #2566 from cubicdaiya/issues/null_check
...
Remove discareded NULL checks and use mrb_malloc() instead of mrb_realloc().
2014-08-27 23:48:06 +09:00
cremno
89b27648dd
add symbol table overflow check
...
Since raising an error might intern a few new strings, some symbols need
to be reserved. 8 should be sufficient.
If the real limit has been reached, mrb_bug() is called.
2014-08-27 12:51:10 +02:00
Tatsuhiko Kubo
3202938099
Add a missing space after ",".
2014-08-27 19:13:40 +09:00
Tatsuhiko Kubo
cc22ec85b9
Use mrb_malloc() instead of mrb_realloc().
2014-08-27 18:58:26 +09:00
Tatsuhiko Kubo
bf173b320f
Remove discareded NULL checks.
2014-08-27 18:58:26 +09:00
Yukihiro "Matz" Matsumoto
ecda19f402
Merge pull request #2565 from cremno/remove-unused-msvc-strtoll-fallback
...
remove unused MSVC strtoll fallback
2014-08-26 09:16:46 +09:00
Yukihiro "Matz" Matsumoto
d0ced41f6e
Merge pull request #2563 from cremno/printf-cast-variables-to-expected-type
...
printf: cast variables to the expected type
2014-08-26 09:16:25 +09:00
Yukihiro "Matz" Matsumoto
3979dd0250
Merge pull request #2564 from cremno/use-mrb_stringize
...
use MRB_STRINGIZE
2014-08-26 09:15:50 +09:00
cremno
3ac4c24534
remove unused MSVC strtoll fallback
2014-08-26 00:52:31 +02:00
cremno
bdaa12de1d
use MRB_STRINGIZE
...
It's defined in mruby/version.h which gets included in mruby.h, so it's
safe to use.
2014-08-26 00:32:06 +02:00
cremno
bdf6ce34ce
printf: cast variables to the expected type
...
%x expects unsigned int and %p expects void *
GCC emits a diagnostic about %p/void* in pedantic mode:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26542
2014-08-26 00:30:33 +02:00
Yukihiro "Matz" Matsumoto
73a012c808
Merge pull request #2561 from cubicdaiya/issues/space_EOL
...
Remove spaces in end-of-line.
2014-08-26 02:25:05 +09:00
Yukihiro "Matz" Matsumoto
ecc77829ce
Merge pull request #2562 from cubicdaiya/issues/pow_flo
...
Fix and add test for Numeric#pow behavior.
2014-08-26 02:24:18 +09:00
Tatsuhiko Kubo
bd6dc0da77
Add test for Numeric#pow.
2014-08-25 17:18:24 +09:00
Tatsuhiko Kubo
0e9f98c430
Fix Numeric#pow behavior.
...
* Before
2 ** -1 #=> 0
* After
2 ** -1 #=> 0.5
2014-08-25 17:17:37 +09:00
Tatsuhiko Kubo
6961317fb3
Remove spaces in end-of-line.
2014-08-25 16:49:15 +09:00
Yukihiro "Matz" Matsumoto
b01b3c4472
Merge pull request #2555 from cubicdaiya/issues/reduce_strlen
...
Use sizeof() instead of strlen().
2014-08-22 20:42:47 +09:00
Tatsuhiko Kubo
6c7ba826dd
Use sizeof() instead of strlen().
2014-08-22 20:37:34 +09:00