Yukihiro "Matz" Matsumoto
dbd36128ad
forget to re-initialize target_class for top-level eval; close #1418
2013-07-30 01:33:02 +09:00
Yukihiro "Matz" Matsumoto
bc843ed927
Merge pull request #1382 from suzukaze/add-comments
...
Add comments in irep.h
2013-07-18 19:32:25 -07: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
f05580f1bc
Add comments.
2013-07-15 01:52:47 +09:00
Yukihiro "Matz" Matsumoto
b8a46227ee
put pointer tables before bitmap to avoid alignment issues; ref #1353
2013-07-10 13:14:40 +09:00
mirichi
cdb23edf31
It optimizes more.
2013-07-07 22:17:44 +09:00
mirichi
550905000c
kh_resize_##name bug fixed.
2013-07-07 09:23:50 +09:00
mirichi
00353a3c42
khash optimize
2013-07-06 09:10:42 +09:00
Cremno
bc91bcefcf
include inttypes.h if _MSC_VER is not defined
2013-06-27 12:30:25 +02:00
Cremno
8728837478
Visual Studio 2013 support + strtof + inline
...
- VC12 has better C99 library support due to C++11
- defined strtof for VC11 or older
- define "inline" only if the C compiler is used
2013-06-27 12:18:35 +02:00
Yukihiro "Matz" Matsumoto
4e877bc92f
restructure header files; move non config lines away from mrbconf.h
2013-06-10 14:40:32 +09:00
Yukihiro "Matz" Matsumoto
b172be47fa
small refactoring over word boxing
2013-05-29 00:05:57 +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
Ryan Scott
8161f0f6d7
Merge remote-tracking branch 'origin/master'
2013-05-18 11:05:09 +10:00
Ryan Scott
4acfadfee1
Fixed the each object callback to be more consistent with other callbacks.
2013-05-18 10:55:41 +10:00
Ryan Scott
40d63f7740
Changed the each_object callback so that a pointer is passed for the object, instead of the struct.
2013-05-17 08:02:24 +10:00
Ryan Scott
f62cc5b1ee
Changed the object_count so that it only iterates over the RBasic object, not the full RVALUE known by the GC
2013-05-17 07:41:13 +10:00
Ryan Scott
222918deae
First implementation of ObjectSpace moved outside of gc.c
2013-05-17 07:21:33 +10:00
Yukihiro "Matz" Matsumoto
95fb1fd809
mrbc to take multiple files, preserving debug information if -g given; close #1243
2013-05-14 23:39:56 +09:00
Ryan Scott
0d4227ac04
Implemented ObjectSpace.count_objects to count the number of allocated objects for each type
2013-05-12 18:42:21 +10:00
crimsonwoods
1dfe52e53d
fix typos.
2013-05-05 11:28:06 +09:00
Yukihiro "Matz" Matsumoto
ee14d37da4
use uint8_t for mrb_bool instead of unsigned int; close #1222
2013-04-29 11:46:16 +09:00
Yukihiro "Matz" Matsumoto
8890a992a6
always use unsigned int as mrb_bool even in C++
2013-04-29 09:23:43 +09:00
Yukihiro "Matz" Matsumoto
7a6f9c9f69
Merge pull request #1220 from arton/master
...
add extern funcs declaration and casts for cimpiling C++ compiler
2013-04-28 16:06:14 -07:00
Yukihiro "Matz" Matsumoto
443b2c2a2b
rename hash related gc functions
2013-04-29 07:48:33 +09:00
Yukihiro "Matz" Matsumoto
a1df3fdb0c
fix mrb_string_shared memory leaks
2013-04-29 07:47:12 +09:00
Yukihiro "Matz" Matsumoto
5077f9ec8b
move mrb_shared_string definition to src/string.c
2013-04-29 07:24:55 +09:00
arton
513bce35f6
add extern funcs declaration and casts for cimpiling C++ compiler
2013-04-28 15:31:50 +09:00
Yukihiro "Matz" Matsumoto
5c68195c88
mrb_str_new_static(): zero copy string creation
2013-04-28 02:47:22 +09:00
Yukihiro "Matz" Matsumoto
62ca4c1738
aspec bits should be packed in Ax; ref #1209
2013-04-25 12:04:29 +09:00
Yukihiro "Matz" Matsumoto
ec8fad0fed
remove too many paren; ref #1209
2013-04-25 11:57:51 +09:00
Yukihiro "Matz" Matsumoto
953eec60db
rename MRB_ARGS_XXX to MRB_ASPEC_XXX; ref #1206
2013-04-25 08:00:48 +09:00
Yukihiro "Matz" Matsumoto
4faaef437d
rename ARGS_GETXXX macros to avoid potential name conflict; close #1206
2013-04-25 07:50:01 +09:00
Masaki Muranaka
2613e5d955
Clean up variable types and type casts.
2013-04-21 01:17:17 +09:00
Masaki Muranaka
ff0cd6cabe
Remove useless comments.
2013-04-21 01:17:16 +09:00
h2so5
b9674c735e
Make str_modify public
2013-04-19 08:06:04 +09:00
kurodash
7b7bffd5a8
Fixed irep index overflows, when defining new closure.
...
Issue #1137 .
In the present implementation, when calling mrb_load_string continuously, irep is not released.
Therefore, a 16-bit index was overflowing.
2013-04-12 16:32:07 +09:00
Yukihiro "Matz" Matsumoto
d8c4f6a080
make Data_Make_Struct a statement to make it C99 compatible
2013-04-04 04:38:31 +09:00
Yukihiro "Matz" Matsumoto
75f5535c4f
rename DATA API: mrb_get_datatype -> mrb_data_get_ptr; mrb_check_datatype -> mrb_data_check_and_get
2013-04-04 04:30:39 +09:00
Yukihiro "Matz" Matsumoto
013be527e6
add Module#constants (15.2.2.4.24)
2013-04-02 01:23:41 +09:00
Artur K
642ea41abd
Fix the calc_crc_16_ccitt signature to match the source file
2013-03-30 18:11:09 +01:00
Yukihiro "Matz" Matsumoto
f475da9bf9
Merge pull request #871 from monaka/pr-remove-bit-field-in-mrb_value
...
Remove the bit-field by mrb_value.tt
2013-03-30 07:23:24 -07:00
Yukihiro "Matz" Matsumoto
cb5d690ece
cancel f4c27c6 since mruby.h is required for mrb_value etc. anyway
2013-03-30 20:52:51 +09:00
Masaki Muranaka
c260ef894e
Rename mrb_fix2str() to mrb_fixnum_to_str(). This is for naming consistency.
2013-03-29 22:19:26 +09:00
Masaki Muranaka
f4c27c6fb5
Include mrbconf.h as MRB_INT_MAX used here.
2013-03-29 22:19:26 +09:00
Masaki Muranaka
f82ae7653a
Change the second argument of mrb_flo_to_str().
...
Export mrb_flo_to_str() as API.
2013-03-29 22:19:26 +09:00
Masaki Muranaka
710f625254
Remove mrb_flt2big() as there is no bignum in the core.
...
Add new API mrb_flo_to_fixnum(). You can replace mrb_flt2big() to mrb_flo_to_fixnum() with few modifications.
2013-03-29 22:19:26 +09:00
Masaki Muranaka
05ad6902fd
Remove API mrb_string_value(). There have mrb_str_to_str() in the core. And mrb_string_value() is no merit to keep using.
2013-03-29 18:01:25 +09:00
Masaki Muranaka
2b6e9ee556
Modify the type of line-number to uint16_t. Type short is not portable. And it cannot be more than UINT16_MAX because of the mrbc binary format.
2013-03-29 16:26:00 +09:00