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
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
9d550390e5
Merge pull request #1065 from monaka/pr-reduce-stdio-dependency
...
Reduce stdio dependency
2013-03-25 07:36:47 -07:00
Masaki Muranaka
29d84a1635
Separate FILE dependencies with ENABLE_STDIO.
2013-03-24 13:47:54 +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
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
Yukihiro Matz Matsumoto
0940e4d462
rename mrb_ptr_as_string() to mrb_ptr_to_str()
2013-03-23 21:57:33 +09:00
Masaki Muranaka
bbb367841a
Add new API mrb_ptr_as_string().
2013-03-23 20:00:04 +09:00
Masaki Muranaka
0cedf8fa02
Rename API mrb_str_cat2() to mrb_str_cat_cstr(). This is for naming orthogonality. mrb_str_cat2() is also left for backward compatibility.
2013-03-23 16:29:30 +09:00
Yukihiro Matz Matsumoto
04d9c5ea6b
resolve conflict regarding backtick
2013-03-23 11:08:18 +09:00
Masaki Muranaka
4656073b60
Add configuration macro MRB_PARSER_BUF_SIZE.
2013-03-22 16:46:56 +09:00
Masaki Muranaka
f8fa56d8c3
Use mrb_intern2() instead of mrb_intern(). This is for avoiding overhead by strlen().
2013-03-22 14:22:45 +09:00
mattn
1ab4dbcbf3
Backtick operation
2013-03-21 19:45:47 +09:00
Yukihiro Matz Matsumoto
dec4ec694b
Merge branch 'master' of github.com:mruby/mruby
2013-03-19 12:07:47 +09:00
Yukihiro Matz Matsumoto
7602574536
add new macro mrb_bool as a counterpart of mrb_bool_value
2013-03-19 12:06:53 +09:00
Yukihiro Matz Matsumoto
d0d920e909
rename mrb_true_or_false_value() to mrb_bool_value()
2013-03-19 12:03:54 +09:00
Masaki Muranaka
4f9503acd7
Add new API mrb_true_or_false_value().
2013-03-19 11:03:08 +09:00
FUKUZAWA-Tadashi
3bcaeb09b4
refactor heredoc identifier
2013-03-19 11:03:08 +09:00
FUKUZAWA-Tadashi
05e735595e
implement literal %W %w %s
...
refactor string parsing
2013-03-19 11:03:07 +09:00
FUKUZAWA-Tadashi
cdf8114e27
%I %i literal
2013-03-19 00:41:15 +09:00
Yukihiro "Matz" Matsumoto
138a3569a2
Merge pull request #1025 from FUKUZAWA-Tadashi/master
...
implement %W %w %s
2013-03-18 06:56:26 -07: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
crimsonwoods
3678d2545c
fix the type of bit field variable.
...
if 'int' type is 16bit integer, 'unsigned int flags: 21' is too large.
2013-03-18 00:16:13 +09:00
FUKUZAWA-Tadashi
aec3e1c4ff
refactor heredoc identifier
2013-03-17 21:27:38 +09:00
FUKUZAWA-Tadashi
44fbfc5184
implement literal %W %w %s
...
refactor string parsing
2013-03-17 21:27:37 +09:00
Yukihiro Matz Matsumoto
8ae0c58bb0
resolve conflict from #1017
2013-03-17 00:28:49 +09:00
Masaki Muranaka
4ad08caca0
Remove stdio.h as it is included in mrbconf.h.
2013-03-16 21:39:52 +09:00
Masaki Muranaka
6ba298ed54
Remove unnecessory stdint.h.
2013-03-16 21:06:32 +09:00
Masaki Muranaka
715270bec5
Include mruby.h. As KHASH_DEFAULT_SIZE might be defined in mrbconf.h.
2013-03-16 21:06:03 +09:00
Masaki Muranaka
7de2deab1e
Remove string.h in khash.h
2013-03-16 17:48:30 +09:00
Masaki Muranaka
1bb447a7d3
Avoid to call memset(). Use the new function kh_fill_flags() instead. This is for compatibility.
2013-03-16 17:00:44 +09:00
Masaki Muranaka
591dbbf13f
Change the place of the close parenthesis. Even though it probably cause no bugs for current code.
2013-03-16 16:58:14 +09:00
Yukihiro "Matz" Matsumoto
618d7339f1
Merge pull request #1010 from monaka/pr-remove-meaningless-bitfields-in-irep
...
Remove bit-fields. They doesn't reduce memory on major environments.
2013-03-15 07:25:09 -07:00
Yukihiro Matz Matsumoto
8d98b84543
removed compatibility macros mrb_ary_new_elts() and mrb_ary_new4()
2013-03-15 23:23:45 +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
Masaki Muranaka
5f992f8712
Remove bit-fields. They doesn't reduce memory on major environments.
2013-03-15 15:56:23 +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
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
Yukihiro "Matz" Matsumoto
3f4c2d451d
Merge pull request #985 from monaka/pr-remove-unused-code-20130312
...
Remove mrb_str_sublen() as it is not used.
2013-03-12 17:26:04 -07:00
Yukihiro "Matz" Matsumoto
7ba309600a
Merge pull request #982 from monaka/pr-make-MRB_STR_BUF_MIN_SIZE-configurable
...
Rename STR_BUF_MIN_SIZE to MRB_STR_BUF_MIN_SIZE. Make it configurable.
2013-03-12 17:24:02 -07:00
Masaki Muranaka
e7fe4ed499
Use suitable types for variables.
2013-03-12 20:50:02 +09:00