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
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
Yukihiro "Matz" Matsumoto
5c88c65a11
put MRB_ prefix before ARGS_XXX macros; ref #1206
2013-04-25 08:05:54 +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
Yukihiro "Matz" Matsumoto
4a311a4760
Merge pull request #1196 from monaka/pr-use-mrb_aspec
...
Cleanup around mrb_code, mrb_aspec.
2013-04-20 15:43:33 -07:00
Masaki Muranaka
b41c5cb5c3
Define mrb_code, mrb_aspec as uint32_t. They are always positive.
2013-04-21 01:59:43 +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
Carson McDonald
defee3c136
Fix "implementaion" to "implementation"
2013-04-14 09:58:47 -04: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
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
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
Masaki Muranaka
29879f9d58
Add out_of_memory field to mrb_state.
2013-04-01 08:35:53 +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
59c8d6c13a
Remove str_to_mrb_int(). There is some reasons.
...
It is not used in the core.
It does not have mrb_ prefix.
strtol() is slightly heavy and we have similar API.
2013-03-29 16:31:11 +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
Masaki Muranaka
2f8dc97e2d
Move TRUE/FALSE existence checks.
2013-03-29 10:41:28 +09:00
Masaki Muranaka
a01e968cdb
Remove limits.h from numeric.h. Add limits.h to some C files.
2013-03-29 10:06:40 +09:00
Masaki Muranaka
1074a3c0f4
Fix a type mismatch.
2013-03-28 23:44:50 +09:00
Yukihiro "Matz" Matsumoto
e265d7c7ef
Merge pull request #1082 from masuidrive/add_debug_info
...
Added debug infomation section into .mrb file
2013-03-27 08:34:12 -07: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
8ce842a5d9
implement mrb_format and mrb_vformat
2013-03-27 23:03:48 +09:00
kurodash
1c4820642d
Fix build error on VS2012 toolchain.
...
A local variables define beginning of a scope block.
VS2012 unacceptable ";;" in struct definition.
2013-03-27 18:24:40 +09:00
Yuichiro MASUI
f3ebb89392
Added debug infomation section into .mrb file
2013-03-27 18:21:04 +09:00
Yukihiro Matz Matsumoto
e03e697549
little cosmetic change (delete word Rite); bump dump file version number
2013-03-27 11:28:05 +09:00
Yukihiro Matz Matsumoto
a0f6e4d58e
resolve conflict from #964
2013-03-27 00:52:24 +09:00
Yukihiro Matz Matsumoto
b1bd62e047
remove all MRB_TT_MAIN from source
2013-03-26 21:25:00 +09:00
Yukihiro Matz Matsumoto
5c6be2e518
Merge branch 'selftopiv' of https://github.com/carsonmcdonald/mruby into carsonmcdonald-selftopiv
2013-03-26 21:07:20 +09:00
Yukihiro "Matz" Matsumoto
9d550390e5
Merge pull request #1065 from monaka/pr-reduce-stdio-dependency
...
Reduce stdio dependency
2013-03-25 07:36:47 -07:00
Carson McDonald
930e4c71c0
Make mrb_top_self return a real instance.
2013-03-25 00:23:22 -04:00
Masaki Muranaka
29d84a1635
Separate FILE dependencies with ENABLE_STDIO.
2013-03-24 13:47:54 +09:00
Masaki Muranaka
6eda7c28e9
Include stddef.h. It is required by size_t. In case you include stdio.h, stddef.h is included indirectly.
2013-03-24 13:42:25 +09:00
Artur K
6a6c26f530
Changed the RData type field to 'const'
...
Within the mruby source code the 'type' field is either initialized, or used in const manner.
IMHO changing the type after it has been created might cause hard to track errors.
2013-03-23 22:00:23 +01:00
Cremno
c09c098bc5
fixed NaN boxing compilation
...
Use MRB_SET_VALUE instead of directly accessing members of mrb_value
which are different if NaN boxing is enabled.
2013-03-23 16:55:56 +01:00
Yukihiro Matz Matsumoto
e69a13a20e
resolve conflict
2013-03-24 00:44:28 +09:00
Yukihiro Matz Matsumoto
f0ac204f21
Use size_t instead of int. This is for portability.
2013-03-24 00:20:35 +09:00
Yukihiro Matz Matsumoto
0425db66b6
Use mrb_bool instead of int. This is for portability; based on e767ebf but iv_foreach_func must return int
2013-03-24 00:07:13 +09:00