cremno
6ed64e2367
rewrite printstr() to get rid of code duplication
2015-06-23 12:44:28 +02:00
cremno
5e8d2a4b84
refactor code to call mrb_inspect() instead
...
mrb_inspect() also calls mrb_obj_as_string() after #inspect to ensure
the mrb_value is a string.
2015-06-13 14:59:57 +02:00
Yukihiro "Matz" Matsumoto
4078670bca
mrb_p() should print mrb_obj_as_string() if #inspect does not return a string value
2014-12-12 21:32:02 +09:00
Yukihiro "Matz" Matsumoto
206f89e209
add MRB_API modifiers to mruby API functions
2014-08-04 00:47:08 +09:00
Nobuyoshi Nakada
ab67c57f65
remove trailing spaces
2014-04-30 09:50:14 +09: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
Yukihiro "Matz" Matsumoto
3ff9aad22f
move version info from gems to core; ref #576 #1684
2014-02-07 12:18:55 +09:00
Yukihiro "Matz" Matsumoto
7ba4612956
use mrb_str_new_lit() more widely
2014-02-06 08:54:47 +09:00
Yukihiro "Matz" Matsumoto
ed1bf9aa80
introduce mrb_str_new_lit() to create strings from C string litrals
2014-02-06 07:50:34 +09:00
MATSUMOTO Ryosuke
dadf06f72b
Add global constant MRUBY_COPYRIGHT
2014-02-05 23:54:15 +09:00
MATSUMOTO Ryosuke
456a765e53
replace Kernel.show_version with MRUBY_DESCRIPTION
2014-02-05 22:17:44 +09:00
MATSUMOTO Ryosuke
e0c10d03da
Add pluggable versioning by mruby-version
2014-02-05 18:45:09 +09:00
cremno
3ee946dab4
Happy new year! (update copyright year)
...
Let's not wait until May this time
(f0a9b95af3 )!
2014-01-30 23:17:24 +01:00
Yukihiro "Matz" Matsumoto
6557ee938a
mruby error messages should be directed to stderr
2013-05-26 02:13:02 +09:00
mattn
e53fa35748
Remove __printstr__
2013-03-24 00:18:39 +09:00
Masaki Muranaka
6ae3a1b83e
Modify API configuration.
...
C API mrb_p() is always callable.
- But it will do nothing when ENABLE_STDIO is not defined.
Kernel#__printstr__ is always callable.
- But it will do nothing when ENABLE_STDIO is not defined.
2013-03-05 01:38:51 +09:00
Masaki Muranaka
5a025813b5
Include stdio.h in mrbconf.h instead of C extension sources.
2013-03-05 01:38:51 +09:00
Yukihiro Matz Matsumoto
90cdb90e67
change 2012 to 2013
2013-01-14 02:15:26 +09:00
Yukihiro Matz Matsumoto
d2d2e9f5f9
add new predicates mrb_string_p(),mrb_array_p(),mrb_hash_p()
2012-11-04 05:02:39 +09:00
Yukihiro Matsumoto
1cffba6ae1
use fwrite() instead of loop putc
2012-07-17 23:50:19 +09:00
Yukihiro Matsumoto
36664174cb
change return type of mrb_p() to void
2012-07-17 23:48:55 +09:00
Yukihiro Matsumoto
cb8fe4400f
mrb_p() should return the argument
2012-07-17 23:41:02 +09:00
Yukihiro Matsumoto
87daf837d6
prepare empty mrb_p() to make like work
2012-07-17 23:40:05 +09:00
Yukihiro Matsumoto
3705bfb020
DIABLE_STDIO to disable __printstr__
2012-07-15 17:30:15 +09:00
Yukihiro Matsumoto
e3d17e54f8
mruby/string.h: rename buf to ptr
2012-06-05 23:17:09 +09:00
Yukihiro Matsumoto
12d75223d6
make shared string to reference-counted C structure to reduce GC pressure
2012-06-03 07:55:39 +09:00
Yukihiro Matsumoto
2728f30297
implement Kernel#p in Ruby
2012-05-18 15:01:45 +09:00
Yukihiro Matsumoto
fb60a2191a
revise version description
2012-05-18 14:41:00 +09:00
roco
4ec6d41f16
rm whitespace
2012-04-30 14:29:19 -07:00
mattn
0803a2e2f3
Avoid to crash when "mruby -e p"
2012-04-27 19:08:32 +09:00
mimaki
835443614d
add file header
2012-04-23 11:46:16 +09:00
mimaki
e0d6430f63
add mruby sources
2012-04-20 09:39:03 +09:00