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
b67fb972f4
Merge branch 'master' into pr-systemcallerror
2013-03-13 09:56:02 +09:00
Tomoyuki Sahara
7103e03274
mrb_sys_fail raises SystemCallError if we have it.
2013-03-13 09:55:06 +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
e53628eb9d
Merge pull request #984 from monaka/pr-make-mrb_str_new2-obsolete
...
Remove mrb_str_new2().
2013-03-12 17:25:23 -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
Masaki Muranaka
3af128c742
Remove mrb_str_sublen() as it is not used.
2013-03-12 18:08:40 +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
Masaki Muranaka
e2d31ba3f3
Rename STR_BUF_MIN_SIZE to MRB_STR_BUF_MIN_SIZE. Make it configurable.
2013-03-12 17:10:18 +09:00
Cremno
f719b0e7ff
define and use print format macros for mrb_int
...
For portability: %ld can't be used to print a 64-bit mrb_int on
WIN(32|64) because long is 32-bit wide.
2013-03-08 18:20:54 +01:00
Masaki Muranaka
5bed51e584
Don't use int. It decreases portability. Use size_t as array index and length. It avoids overflow in the extreme situations.
2013-03-09 00:35:58 +09:00
Yuichiro MASUI
d1a4958bfc
Fixed to uint8_t
2013-03-08 21:46:48 +09:00
Yuichiro MASUI
814094230c
Change unsigned char to uint8_t
2013-03-08 18:55:15 +09:00
Yukihiro Matz Matsumoto
cdd41a33de
unify mrb_ary_new{,_elts,_from_values}; mrb_ary_from_values() is a winner
2013-03-08 05:18:33 +09:00
Yuichiro MASUI
2842583678
New mrb format. The detail is in https://github.com/mruby/mruby/issues/944
2013-03-08 03:14:21 +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
Masaki Muranaka
95c34a90ca
Remove RB_GC_GUARD(x) macro. See also mruby/mruby#948 .
2013-03-05 13:00:17 +09:00
Masaki Muranaka
5a025813b5
Include stdio.h in mrbconf.h instead of C extension sources.
2013-03-05 01:38:51 +09:00
Masaki Muranaka
97136825e2
Separate Kernel#sprintf support from mruby core. It's moved to mrbgems.
2013-03-04 23:04:39 +09:00
Yukihiro Matz Matsumoto
02dba48367
Merge branch 'heredoc' of https://github.com/FUKUZAWA-Tadashi/mruby into FUKUZAWA-Tadashi-heredoc
2013-03-04 09:49:16 +09:00
Yukihiro "Matz" Matsumoto
e13248bedf
Merge pull request #884 from monaka/pr-use-MRB_IREP_ARRY_INIT_SIZE-macro
...
Use MRB_IREP_ARRAY_INIT_SIZE macro.
2013-03-03 16:40:27 -08:00
Yukihiro Matz Matsumoto
7e910bd4c2
use mrb_int for RString len
2013-03-04 09:39:04 +09:00
Yukihiro "Matz" Matsumoto
aae50bfc48
Merge pull request #934 from monaka/pr-use-mrb_int-in-array.c
...
Define ARY_MAX_SIZE strictly. Use mrb_int instead of int.
2013-03-03 09:38:10 -08:00
Yukihiro "Matz" Matsumoto
4bb419483b
Merge pull request #932 from kaishuu0123/cleanup-mruby.h
...
cleanup: unused variable local_svar
2013-03-03 04:31:38 -08:00
Masaki Muranaka
4ac352df21
Remove bit-field.
2013-03-03 20:27:57 +09:00
FUKUZAWA-Tadashi
1af4110f7d
implement heredoc
2013-03-03 20:08:13 +09:00
Masaki Muranaka
f998691da8
Define ARY_MAX_SIZE strictly. Use mrb_int instead of int.
2013-03-03 11:43:56 +09:00
Masaki Muranaka
6cd7017ec1
Remove trailing whitespaces. This is just a cosmetic change.
2013-03-03 10:54:00 +09:00
Kouki Ooyatsu
28f1d27232
cleanup: unused variable local_svar
2013-03-03 03:51:55 +09:00
Yukihiro Matz Matsumoto
8d2880bbfe
Merge branch 'pluggable_struct' of https://github.com/mattn/mruby into mattn-pluggable_struct
2013-03-01 21:38:02 +09:00
Masaki Muranaka
e4231a0a33
Add typedef to structures that have mrb_ prefix. Use typedef-ed type instead of struct directly.
2013-03-01 14:28:22 +09:00
mattn
138ecf4723
Pluggable Struct
2013-03-01 13:37:46 +09:00
mattn
6bee2fd193
Pluggable Math
2013-02-28 17:52:18 +09:00
Yukihiro "Matz" Matsumoto
97287b7e3d
Merge pull request #889 from mattn/pluggable_time
...
Pluggable Time class
2013-02-27 15:20:05 -08:00
mattn
f2d62c7c9f
Fix build
2013-02-26 17:22:24 +09:00
Masaki Muranaka
cb7cf4e795
Simplify mrb_range_beg_len(). Don't use OTHER macro.
2013-02-26 15:43:19 +09:00
Masaki Muranaka
6dda588503
Use MRB_IREP_ARRAY_INIT_SIZE macro. It should be configurable since it is possible to reduce RAM size.
2013-02-25 13:59:20 +09:00
Yukihiro "Matz" Matsumoto
bbd50cca2f
Merge pull request #878 from monaka/pr-reduce-sprintf
...
Reduce sprintf() calls. Remove mrb_int_to_str() and MRB_INT_FORMAT.
2013-02-23 21:31:39 -08:00
Yukihiro "Matz" Matsumoto
a6d7de5dab
Merge pull request #875 from monaka/pr-enable-building-libmruby-with-DISABLE_STDIO-macro
...
Fix errors caused by stdio.h dependent code.
2013-02-23 21:26:37 -08:00
Masaki Muranaka
b833df3d37
Remove commented out code. Remove redundant function calls.
2013-02-24 00:11:48 +09:00
Masaki Muranaka
dd62349749
Reduce sprintf() calls. Remove mrb_int_to_str() and MRB_INT_FORMAT.
2013-02-23 21:21:15 +09:00
Masaki Muranaka
2bfb88825d
Fix errors caused by stdio.h dependent code.
2013-02-23 17:05:18 +09:00
Yukihiro Matz Matsumoto
a118c30861
better comment description for mrbconf.h configuration
2013-02-21 22:31:35 +09:00
Yukihiro Matz Matsumoto
9931f00863
remove unused HAVE_UNISTD_H altogether; ref #865
2013-02-21 22:28:32 +09:00
brainopia
483dce4b33
Clean up mrbconf.h
...
- undef for windows is not used by default so comment it
- casting to the same type is not needed
- parenthesis are not needed for macro attributes separated by commas
- change order of MRB_NAN_BOXING and MRB_INT64 to simplify logic
2013-02-21 16:54:44 +04:00
Yukihiro "Matz" Matsumoto
21822f4ee5
Merge pull request #851 from mattn/bye_bye_regexp
...
Remove DISABLE_REGEXP
2013-02-17 23:39:43 -08:00
Yuichiro MASUI
111cbca68c
Changed debugger hook to disable
2013-02-18 16:36:15 +09:00
mattn
7b5ec7126a
Remove DISABLE_REGEXP
2013-02-18 16:29:07 +09:00