ksss
a481976056
fix bool number to macro
2014-03-16 21:06:08 +09:00
take_cheeze
7c4961234d
fix mrb_funcall calling
2014-03-12 10:18:38 +09:00
cremno
bfc522bcd5
use mrb_str_cat_lit for literals
2014-03-08 18:38:31 +01:00
ksss
54132e4364
make embed string when create literals
2014-03-06 13:47:51 +00:00
ksss
4070b5987a
embed small string
...
use flags 4 for *this object is embed*
use flags 8~64 for *embed string length*
2014-03-06 13:12:08 +00:00
cubicdaiya
67de10bfcb
use C style comments instead of C++ style comments
...
According to CONTRIBUTING.md,
Don't use C++ style comments
/* This is the prefered comment style */
Use C++ style comments only for temporary comment e.g. commenting out some code lines.
2014-03-01 03:31:45 +09:00
cubicdaiya
bd0244d067
use mrb_str_cat_lit() intead of mrb_str_cat
2014-02-27 22:42:25 +09:00
cremno
8bbc2c107b
mrb_str_cat2: deprecated since 0cedf8f
2014-02-13 13:45:28 +01:00
Yukihiro "Matz" Matsumoto
19a08b8455
Merge pull request #1674 from cremno/mrb_bool-FALSE-TRUE
...
use mrb_bool, FALSE and TRUE more
2014-02-09 18:35:20 +09:00
Yukihiro "Matz" Matsumoto
7ba4612956
use mrb_str_new_lit() more widely
2014-02-06 08:54:47 +09:00
cremno
4507985c3e
use mrb_bool, FALSE and TRUE more
...
It doesn't matter to me if one is using FALSE/TRUE instead of 1/0
but I prefer a type (alias) which emphasizes boolean vars to int.
I changed 1/0 to FALSE/TRUE anyway.
2014-01-31 18:00:36 +01:00
cremno
aa655b9ee1
remove superfluous includes
...
- reduce compile time by a little bit (full-core: ~0.7s for me)
- thanks to 'include-what-you-use' for some help
- include Standard C header files before any other (coding style)
2014-01-07 17:56:30 +01:00
cremno
09bb30870b
tiny word boxing optimization
2014-01-02 06:36:29 +01:00
h2so5
38a0a60412
fix TypeError message
2013-12-19 17:40:47 +09:00
Yukihiro "Matz" Matsumoto
51213bfc7d
mrb_Integer() should not convert strings to integers
2013-10-26 17:06:50 +09:00
Yukihiro "Matz" Matsumoto
3995e7ff8f
rename voidp to cptr
2013-09-21 17:28:47 +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
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
Jun Hiroe
8e42868600
Repalace int with mrb_bool because a return value is boolean.
2013-07-15 23:17:12 +09:00
Jun Hiroe
883c45b931
Replace mrb_intern() func with mrb_intern2() func or mrb_intern_cstr() func.
2013-07-12 01:00:50 +09:00
Jun Hiroe
948b1716a0
Refactor true_or() and false_and() in object.c.
2013-07-08 22:25:04 +09:00
Kazuki Tsujimoto
8ab83f763d
Change parameter type to suppress -Wsign-compare warnings
2013-07-07 14:18:37 +09:00
Jun Hiroe
2f62f74d0d
Fix indents in object.c.
2013-07-05 21:53:00 +09:00
Jun Hiroe
73d4491174
Refactor mrb_obj_eq() func in object.c.
2013-06-30 00:03:01 +09:00
Akira Yumiyama
36fc42e7db
add nil.to_a, nil.to_f, nil.to_i methods
2013-06-28 10:01:07 +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
30d580ecbc
rename every ARGS_XXX to MRB_ARGS_XXX; ref #1206
2013-04-25 09:47:36 +09:00
h2so5
9b798114bb
Use mrb_bool for the 'b' format specifier of mrb_get_args
2013-04-22 10:41:53 +09:00
Yukihiro "Matz" Matsumoto
78b0abcfaf
string interpolation (#{foo}) does stringify implicitly; no need to call #to_s
2013-04-11 23:11:43 +09:00
h2so5
1f571dd5fc
Fix TypeError messages
2013-04-11 19:47:35 +09:00
Yukihiro "Matz" Matsumoto
65bccbe7b9
mrb_any_to_s: add separator
2013-04-01 11:30:07 +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
2b5b161f8b
Sort include files. Some redundant includes are removed.
2013-03-29 10:22:31 +09:00
Masaki Muranaka
485111db6b
Fix %s to %S.
2013-03-28 17:40:13 +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
MATSUMOTO Ryosuke
7328b68b9f
Adjusted indent, space and tab
2013-03-24 11:35:42 +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
bdd8f7b4a7
Remove *printf() that have "%p" format as possible. Use tomrb_ptr_as_string() instead.
2013-03-23 20:11:33 +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
011c4c0e08
Use mrb_true_or_false_value() / in false_or().
2013-03-19 11:04:22 +09:00
Masaki Muranaka
82b156738f
Use mrb_true_or_false_value() / in false_xor().
2013-03-19 11:04:22 +09:00
Masaki Muranaka
cb8d9d46d0
Use mrb_true_or_false_value() / in true_xor().
2013-03-19 11:04:22 +09:00
Masaki Muranaka
88f97cb4e4
Use mrb_true_or_false_value() / in true_and().
2013-03-19 11:04:22 +09:00
Masaki Muranaka
a11e7f3c30
Remove unused string.h.
2013-03-16 18:08:18 +09:00
Masaki Muranaka
5a025813b5
Include stdio.h in mrbconf.h instead of C extension sources.
2013-03-05 01:38:51 +09:00
mattn
138ecf4723
Pluggable Struct
2013-03-01 13:37:46 +09:00
Yukihiro Matz Matsumoto
59a6d1b514
remove TT_REGEX and TT_MATCH
2013-02-18 16:18:19 +09:00
Cremno
11869a433b
rewrote mrb_any_to_s
...
use %p instead of %lx to prevent truncation and for consistency
2013-02-06 00:07:09 +01:00
Carson McDonald
8f83f6674c
Fixes a number of "comparison between signed and unsigned" warnings.
2013-01-27 09:44:47 -05:00
Cremno
0a22c59938
use the new specifier b instead of o
2013-01-15 09:15:10 +01:00