take_cheeze
08ea324593
move src/error.h to include/mruby/error.h
2014-02-20 22:41:29 +09:00
Paolo Bosetti
0b603baa53
Added spaces in version.h macros for complying with C++11
2014-02-17 17:54:49 +01:00
Yukihiro "Matz" Matsumoto
4b981adc58
remove max_digit from mrb_flo_to_str()
2014-02-17 09:40:30 +09:00
Yukihiro "Matz" Matsumoto
69eaaa146c
Merge pull request #1705 from takahashim/version-number
...
MRUBY_VERSION should be only numbers separated by dot, like JRUBY_VERSION or Rubinius::VERSION
2014-02-14 01:27:05 +09:00
Yukihiro "Matz" Matsumoto
9ad55617c3
Merge pull request #1703 from cremno/parenthesize-mrbdump-errnos
...
dump.h: parenthesize negative errnos
2014-02-14 01:26:13 +09:00
takahashim
ac4443879a
MRUBY_VERSION should be only numbers separated by dot, like JRUBY_VERSION or Rubinius::VERSION
2014-02-13 22:19:42 +09:00
cremno
5a76288f3f
remove mrb_str_literal declaration
...
definition was removed in 677a2ac
2014-02-13 13:39:44 +01:00
cremno
e8945b8598
dump.h: parenthesize negative errnos
2014-02-13 13:39:22 +01:00
Tomoyuki Sahara
50ef284015
include mruby/version.h in mruby.h
2014-02-12 10:26:19 +09:00
cremno
7691b64963
array implementation: several small changes
...
src/array.c:
- make various functions without declaration in the mruby headers static
- removed all uncessary int casts and two useless comments
mrb_ary_new_from_values: move to similar functions
mrb_check_array_type: fix indentation
include/mruby/array.h:
mrb_shared_array: padding (default "mrbconf.h" on an usual 64-bit system)
sizeof(mrb_int)==sizeof(int)==4 && sizeof(mrb_value*)==8
both:
mrb_ary_aget: remove declaration in header and make static
nobody uses it which is not surprising since it has 1 req arg!
mrb_assoc_new: small optimization and move to similar functions
mrb_ary_len: re-implement as static inline function (it is used by mrbgems)
programmers should directly use RARRAY_LEN instead
2014-02-12 00:37:47 +01:00
Yukihiro "Matz" Matsumoto
27dbcd0f0d
add RUBY_ENGINE; ref #576
2014-02-11 15:37:03 +09:00
Yukihiro "Matz" Matsumoto
19a08b8455
Merge pull request #1674 from cremno/mrb_bool-FALSE-TRUE
...
use mrb_bool, FALSE and TRUE more
2014-02-09 18:35:20 +09:00
Yukihiro "Matz" Matsumoto
56b5356f6b
add MRUBY_RELEASE info in numbers
2014-02-07 16:57:17 +09:00
Yukihiro "Matz" Matsumoto
95e2be6508
forgot to add new files
2014-02-07 12:24:24 +09:00
cremno
4507985c3e
use mrb_bool, FALSE and TRUE more
...
It doesn't matter to me if one is using FALSE/TRUE instead of 1/0
but I prefer a type (alias) which emphasizes boolean vars to int.
I changed 1/0 to FALSE/TRUE anyway.
2014-01-31 18:00:36 +01:00
cremno
a2cfc9a9af
rework mruby-objectspace and gc.[ch]
...
- functions should have C linkage (for C++ code)
- add prefix to each_object_callback
- use more appropriate variable types / initialization
- ObjectSpace::count_objects has 1 opt. arg.
- prefer mrb_intern_lit to mrb_intern_cstr for str. lit.
- mruby/value.h is included by mruby.h
- adjust coding style
2014-01-31 17:42:05 +01:00
Yukihiro "Matz" Matsumoto
a68a517028
refactor parser lineno adjustment; ref #1667
2014-01-31 00:49:46 +09:00
h2so5
36e0925053
more accurate backtrace lineno
2014-01-30 10:08:04 +09:00
Yukihiro "Matz" Matsumoto
dc27c2be46
Merge pull request #1634 from cremno/use-mrb_fixnum_p
...
tiny word boxing optimization
2014-01-02 15:46:00 -08:00
cremno
09bb30870b
tiny word boxing optimization
2014-01-02 06:36:29 +01:00
cremno
16c5cf92b0
NaN boxing: use uintptr_t for bit manipulations
2014-01-02 06:19:20 +01:00
Yukihiro "Matz" Matsumoto
673d9183cf
avoid copying when the original string comes with MRB_STR_NOFREE
2013-12-25 10:30:48 +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
9ac386923d
float objects in pool are objects when MRB_WORD_BOXING is set
2013-11-27 17:29:28 +09:00
kyab
1a6244d99d
Fix build error for MRB_WORD_BOXING
2013-11-26 20:28:24 +09:00
Yukihiro "Matz" Matsumoto
ed0d9f0066
remove MRB_PARSER_BUF_SIZE configuration; close #1596
2013-11-25 09:48:31 +09:00
Yukihiro "Matz" Matsumoto
fb386011df
rename API mrb_str_dup_static() -> mrb_str_pool()
2013-11-20 08:37:16 +09:00
Miura Hideki
54c5b12fb7
irep->pool struct pool -> mrb_value
2013-11-19 20:38:02 +09:00
Yukihiro "Matz" Matsumoto
04a2c58e94
add new function mrb_load_irep_file_cxt() and simplifies mruby.c
2013-11-15 10:49:40 +09:00
Yukihiro "Matz" Matsumoto
71354b91cb
enum mrb_vtype varies on compile time configuration, namely MRB_NAN_BOXING
2013-11-15 02:45:52 +09:00
Yukihiro "Matz" Matsumoto
3bbf66f9f3
cancel #1565 since it breaks mirb; instead add special treatment to heredocs
2013-11-10 04:32:57 +09:00
Yukihiro "Matz" Matsumoto
29792d1725
Merge branch 'master' of github.com:mruby/mruby
2013-11-09 23:29:50 +09:00
Yukihiro "Matz" Matsumoto
ec0a94dae6
Merge pull request #1565 from Fleurer/fix1564
...
nextc(): always return an '\n' at end of input
2013-11-08 17:22:59 -08:00
Yukihiro "Matz" Matsumoto
de790bdc27
allow irep to be GCed
2013-11-08 20:39:50 +09:00
fleuria
fa71403bc5
nextc(): always return an '\n' at end of input
...
fix #1564
2013-11-08 11:40:26 +08:00
Yukihiro "Matz" Matsumoto
677a2ac226
irep->pool not to be GCed
2013-11-07 04:20:46 +09:00
Yukihiro "Matz" Matsumoto
e92d4e2680
modified to use irep->reps to reference child ireps. preparation for
...
removing irep array from mrb_state. note that instructions OP_LAMBDA,
OP_EXEC and OP_EPUSH are incompatible, and dumped mrb format has changed.
2013-11-07 03:54:22 +09:00
Yukihiro "Matz" Matsumoto
0be572df62
change return value from mrb_generate_code()
2013-11-02 23:20:04 +09:00
Yukihiro "Matz" Matsumoto
92825660ea
changed argument type of mrb_ary_modify(); ref #1554
2013-11-01 09:57:20 +09:00
Yukihiro "Matz" Matsumoto
af03812877
add mrb_ary_modify(mrb,a); you have to ensure mrb_value a to be an array; ref #1554
2013-10-31 23:34:08 +09:00
h2so5
88758e3630
Uniquify the results of Object#methods
2013-10-27 04:04:06 +09:00
Yukihiro "Matz" Matsumoto
400ccecf0a
add mrb_gv_remove(); untested
2013-10-10 12:12:29 +09:00
FUKUZAWA-Tadashi
8d34e00102
fix bugs on Heredocument
...
- heredoc in array literal
- heredoc in args
- heredoc in expression expand
2013-09-22 18:14:40 +09:00
Yukihiro "Matz" Matsumoto
3995e7ff8f
rename voidp to cptr
2013-09-21 17:28:47 +09:00
Yukihiro "Matz" Matsumoto
fdb58b4734
voidp should be an Object; close #1508
2013-09-21 17:18:56 +09:00
Yukihiro "Matz" Matsumoto
12183fa250
rename node->filename to node->filename_index
2013-09-20 06:09:41 +09:00
Thomas Schmidt
713e0019ca
remove executable bit from include/mruby/dump.h file
2013-09-16 13:12:04 +02:00
Cremno
501df71833
MSVC: compilation works again (+minor style fixes)
2013-09-03 21:15:14 +02:00