Commit Graph

126 Commits

Author SHA1 Message Date
Masaki Muranaka 16be58bafd Remove macro ANYARGS. It is not used in the core and bundled mrbgems. And it is possible to conflict an application's macro. 2013-04-26 11:34:45 +09:00
Yukihiro "Matz" Matsumoto e63b086f1e rename mrb_interned API functions 2013-04-26 10:57:08 +09:00
Yukihiro "Matz" Matsumoto c99b72b20d Merge branch 'suppress_intern' of https://github.com/crimsonwoods/mruby into crimsonwoods-suppress_intern 2013-04-26 09:18:39 +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 1b31cbfbc8 add new macro MRB_ARGS_ARG(n1,n2) to specify required and optional arugments at once 2013-04-25 11:53:36 +09:00
crimsonwoods bd1b925931 modify the type of return value (mrb_bool => mrb_value). 2013-04-25 09:51:20 +09:00
crimsonwoods 8682b06953 add new functions to check if symbols are interned without registration. 2013-04-25 09:27:00 +09:00
Yukihiro "Matz" Matsumoto 5c88c65a11 put MRB_ prefix before ARGS_XXX macros; ref #1206 2013-04-25 08:05:54 +09:00
Masaki Muranaka b41c5cb5c3 Define mrb_code, mrb_aspec as uint32_t. They are always positive. 2013-04-21 01:59:43 +09:00
Carson McDonald defee3c136 Fix "implementaion" to "implementation" 2013-04-14 09:58:47 -04:00
Yukihiro "Matz" Matsumoto e885e59d45 comment E_* macros to address concerns in #1143 2013-04-06 01:19:31 +09:00
Masaki Muranaka 2f829ea09a Move mrb_name_error() declaration to mruby.h As it is requred by struct mrbgem. 2013-04-04 16:24:43 +09:00
Masaki Muranaka 29879f9d58 Add out_of_memory field to mrb_state. 2013-04-01 08:35:53 +09:00
Yukihiro Matz Matsumoto 18b2683b97 use new mrb_format API from mrb_raisef; its only format specifier is "%S" (stringify) and takes mrb_value; close #1062 2013-03-27 23:41:23 +09:00
Yukihiro Matz Matsumoto b1bd62e047 remove all MRB_TT_MAIN from source 2013-03-26 21:25:00 +09:00
Carson McDonald 930e4c71c0 Make mrb_top_self return a real instance. 2013-03-25 00:23:22 -04:00
Masaki Muranaka fc63ef150b Add new API mrb_intern_cstr(). This is for naming orthogonality. mrb_intern is also left for backward compatibility. 2013-03-22 14:39:28 +09:00
Masaki Muranaka 37263e50e5 Remove mrb_checkstack() as unused. 2013-03-18 23:29:11 +09:00
crimsonwoods 52eba9fee7 fix the type of argument named 'aspec'.
'aspec' should be large at least 24 bit.
2013-03-18 16:04:10 +09:00
Masaki Muranaka 3aa3b4af90 Remove stdlib.h from mruby.h. It is for portability (care for freestanding environments).
This is a first step. It will be reduced stdlib.h in each files later.
2013-03-16 21:29:39 +09:00
Yukihiro Matz Matsumoto 88483fad00 rename mrb_basic to mrb_basic_ptr; close #1011 2013-03-15 23:21:13 +09:00
Yukihiro Matz Matsumoto 243669308d obsolete mrb_object; opposite of bc870ce 2013-03-15 23:16:20 +09:00
Yukihiro "Matz" Matsumoto ce1756b3b6 Merge pull request #997 from monaka/pr-add-type-mrb_bool_t
Define mrb_bool_t.
2013-03-14 04:51:14 -07:00
Yukihiro Matz Matsumoto 9d0bbdb7f8 use size_t for string length C API 2013-03-14 19:33:38 +09:00
Yukihiro Matz Matsumoto 93e9174c57 symbol length make size_t from mrb_int; cancel #993 monaka/pr-cleanup-symbol.c-20130312 2013-03-14 19:09:55 +09:00
Masaki Muranaka 1ffc9ba325 Define type mrb_bool. It is typedef-ed to _Bool on C99, unsigned int on MSVC.
It is safer than applying 1bit bit-fields to signed int.

For forward compatibility, you should substiture only 1 or 0 for the variable typed mrb_bool.
2013-03-14 15:13:12 +09:00
Tomoyuki Sahara 00cf5e32a2 Merge branch 'master' into pr-systemcallerror 2013-03-13 10:22:59 +09:00
Tomoyuki Sahara 7103e03274 mrb_sys_fail raises SystemCallError if we have it. 2013-03-13 09:55:06 +09:00
Masaki Muranaka be506de3fc Remove mrb_str_new2(). Use mrb_str_new_cstr() instead.
Make mrb_str_new_cstr() accept NULL pointer. It generates 0byte strings by NULL pointer.
2013-03-12 17:54:40 +09:00
Yukihiro Matz Matsumoto 2e95f638cd Cut off mrb_irep_free from mrb_close; based on a patch from @matsumoto-r; close #951 2013-03-06 15:22:46 +09:00
Kouki Ooyatsu 28f1d27232 cleanup: unused variable local_svar 2013-03-03 03:51:55 +09:00
Masaki Muranaka b833df3d37 Remove commented out code. Remove redundant function calls. 2013-02-24 00:11:48 +09:00
Yukihiro Matz Matsumoto eb14c15e99 rename hook and macro 2013-02-18 16:15:32 +09:00
Yuichiro MASUI bc44d06c73 Created hook at VM code fetch. It's for debugger 2013-02-17 00:13:42 +09:00
Yukihiro "Matz" Matsumoto d3626f6b7d Merge pull request #820 from cremno/unused-stuff
Remove declarations of undefined functions
2013-02-03 16:06:31 -08:00
Cremno feaff10c58 removed declarations of undefined functions 2013-02-03 19:48:41 +01:00
Masamitsu MURASE 54eb08e2fc Remove ";" suffix from function-type macros. 2013-02-02 00:24:30 +09:00
Cremno 6e583830d2 removed unused mrb_check_funcall 2013-01-30 19:27:04 +01:00
Cremno 3ca6c1176e removed unused mrb_funcargv_t 2013-01-30 19:26:30 +01:00
Yukihiro Matz Matsumoto b5830aed17 remove MRUBY_VERSION for the time being; close #700 2013-01-08 23:36:19 +09:00
Yukihiro "Matz" Matsumoto f1eb0a0537 Merge pull request #705 from authorNari/compact_flags
Compact flags for GC
2013-01-07 01:30:55 -08:00
Narihiro Nakamura 602959ec7f Compact flags for GC 2013-01-07 16:33:26 +09:00
Masaki Muranaka 83d91b935a Remove DEBUG macro definitions. 2013-01-07 15:07:44 +09:00
Narihiro Nakamura 5dfefb95df Add the generational gc 2013-01-07 01:47:21 +09:00
Yukihiro Matz Matsumoto f1ed143624 mange arena_idx smarter for smaller ARENA_SIZE; now default to 100 from 1024 2012-12-07 16:58:50 +09:00
Yukihiro Matz Matsumoto 3e22c939e6 remove NUM2CHR macro 2012-11-04 05:16:44 +09:00
Yukihiro Matz Matsumoto a354aca8b4 remove NUM2CHR macro 2012-11-04 05:15:58 +09:00
Yukihiro Matz Matsumoto e429905597 replace SYM2ID() by mrb_symbol() 2012-11-04 05:11:39 +09:00
Yukihiro Matz Matsumoto ca7c662be5 remove reference to ruby_verbose and ruby_debug 2012-11-04 05:07:44 +09:00
Masaki Muranaka 6069a33089 mrb_raisef(): new function. Same as previou version of mrb_raise().
mrb_raise(): API modified. It cannot treat variable arguments.
2012-10-23 09:42:22 +09:00