Commit Graph

300 Commits

Author SHA1 Message Date
Cremno 501df71833 MSVC: compilation works again (+minor style fixes) 2013-09-03 21:15:14 +02:00
take_cheeze 61e3598893 support c++ in mruby/debug.h 2013-09-02 00:48:08 +09:00
take_cheeze bd5afe9eef rename debug function name 2013-09-02 00:48:07 +09:00
take_cheeze 0b806ca17b reduce node size 2013-09-02 00:48:07 +09:00
take_cheeze 8082a37748 use uint16_t for line type 2013-09-02 00:48:06 +09:00
take_cheeze 3d1fffbd6b support multiple filename in irep 2013-09-02 00:48:06 +09:00
Yukihiro "Matz" Matsumoto b6cbaaa7f1 Merge pull request #1491 from dmajkic/master
Remove function delarations not implemented in code
2013-08-27 19:41:15 -07:00
Dusan D. Majkic e2bdd8cd47 Remove function delarations not implemented in code 2013-08-27 14:57:36 +02:00
Tomoyuki Sahara 53ff8172e5 add mrb_string_type(). 2013-08-23 15:06:26 +09:00
Yukihiro "Matz" Matsumoto d780c6683e use newer DATA API 2013-08-15 01:39:05 +09:00
Yukihiro "Matz" Matsumoto b225e4cc82 redesign mruby/data.h API; use DATA_PTR() for raw data pointer, DATA_GET_PTR() to type safe retrieval (TypeError will be raised), DATA_CHECK_GET_PTR() to get nil if type mismatched 2013-08-15 01:33:36 +09:00
Yukihiro "Matz" Matsumoto 578589141f use CHAR_BIT instead of bare 8 2013-08-12 09:52:16 +09:00
Yukihiro "Matz" Matsumoto 3a27e9189a move (void) cast after declarations 2013-08-12 09:37:21 +09:00
Jonas Kulla 9b01bf6035 Silence 'unused parameter' warnings 2013-08-10 09:29:42 +02:00
Yukihiro "Matz" Matsumoto 1f5c91d68d use intptr_t instead of int64_t for 32bit platforms 2013-08-07 23:02:08 +09:00
Yukihiro "Matz" Matsumoto 40e6cdcb5c rename mrb_value_p() to mrb_ptr() since _p means predicate in mruby source 2013-08-07 17:39:28 +09:00
Yuichi Nishiwaki 7389ae4b7d fix bugs in comment 2013-08-04 04:28:51 -07:00
Yuichi Nishiwaki dd2ea59d61 add commentary to value representation 2013-08-04 01:08:11 -07:00
Yuichi Nishiwaki 94a6d8380f bugfix: the bit mask was smaller than the size it should be 2013-08-04 01:07:30 -07:00
Yuichi Nishiwaki 8854ecb629 revert one of the API changes: MRB_SET_VALUE_P no longer used 2013-08-04 00:40:41 -07:00
Yuichi Nishiwaki 07fefb585e cosmetic changes 2013-08-04 00:18:03 -07:00
Yuichi Nishiwaki 831e16cdf5 implement 64bit nan-boxing 2013-08-04 00:12:22 -07:00
Yuichi Nishiwaki 8dc2fa3bc8 add read barrier to value.p
API changes:
- value.p must be accessed via mrb_value_p macro
- value.p must be mutated via MRB_SET_VALUE_P macro
2013-08-03 14:03:44 -07:00
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