take_cheeze
18718e065a
Add test of $0 value in bin/mruby related to #2103 .
2014-04-22 19:19:08 +09:00
iTitou
6676bd61a7
Also set $0 for binary files
2014-04-21 16:37:52 +02:00
take_cheeze
c73f8d4def
move summary of mrbgems in default gembox to its spec
2014-03-17 00:34:24 +09:00
Masaki Muranaka
40f57f7b42
Use mrb_str_new_cstr() instead of mrb_str_new() with strlen().
2014-03-09 16:45:29 +09:00
Tatsuya Matsumoto
43944a0d3a
fix mruby command returning EXIT_SUCCESS when program file can't be
...
opened.
2014-03-05 16:51:57 +09:00
Tatsuya Matsumoto
23cb0bb64b
mruby command should not execute program on "syntax only option(-c)".
2014-03-05 12:49:58 +09:00
take_cheeze
24e3e33cb6
use tempfile module
2014-03-03 17:01:47 +09:00
cubicdaiya
94c5a5ee73
use mrb_str_new_lit instead of mrb_str_new for C string literals
2014-02-26 02:23:50 +09:00
Yukihiro "Matz" Matsumoto
d7960bf2a9
resolve conflict in travis_config.rb
2014-02-10 09:50:32 +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
take_cheeze
df780ae5e9
add mrb_intern_lit for creating symbol from string literal
2013-12-01 10:38:59 +09:00
Yukihiro "Matz" Matsumoto
9c6398a444
rename mrb_intern2() to mrb_intern(); huge API incompatibility; close #1513
2013-11-29 08:47:28 +09:00
fleuria
995e0f89cf
add regression for #1572
2013-11-16 15:05:15 +08:00
fleuria
2d646a13f7
add regression for #1564
2013-11-16 14:32:43 +08:00
Yukihiro "Matz" Matsumoto
04a2c58e94
add new function mrb_load_irep_file_cxt() and simplifies mruby.c
2013-11-15 10:49:40 +09:00
Yukihiro "Matz" Matsumoto
d8f9a30ef3
fix irep memory leak
2013-11-15 10:35:45 +09:00
Yukihiro "Matz" Matsumoto
e92d4e2680
modified to use irep->reps to reference child ireps. preparation for
...
removing irep array from mrb_state. note that instructions OP_LAMBDA,
OP_EXEC and OP_EPUSH are incompatible, and dumped mrb format has changed.
2013-11-07 03:54:22 +09:00
fleuria
a511957ec8
refactor mrb_context_run()
2013-11-03 12:05:25 +08:00
fleuria
d75a907edf
introduce mrb_context_run()
...
currently there are two scnenario to call mrb_run(), the first is
calling a proc, in this case mrb should create a new environment,
discarding all the variables except args, reciever and block.
the second is calling the newly generated irep, like in mirb.
in this case, the variables should be kept after mrb_run().
so we introduce mrb_context_run() to handle this seperately.
2013-11-03 11:32:59 +08:00
Cremno
ba027d7806
don't use str{cpy,cat} in mruby and mrbc
...
The length of each string is known. It should be used.
2013-08-07 19:58:06 +02:00
Tomoyuki Sahara
116f75a8ce
"spec.author" is better for single-author gems.
...
"spec.author=" expects a String represents a single author.
"spec.authors=" expects an Array which is a list of multiple authors.
http://guides.rubygems.org/specification-reference/
2013-07-23 10:09:24 +09:00
Yukihiro "Matz" Matsumoto
6557ee938a
mruby error messages should be directed to stderr
2013-05-26 02:13:02 +09:00
Yukihiro "Matz" Matsumoto
7921fd545c
move mruby's showcallinfo into the core
2013-05-13 10:40:43 +09:00
Yukihiro "Matz" Matsumoto
c79172dfd5
put spaces after if/while
2013-04-20 23:11:43 +09:00
Yukihiro "Matz" Matsumoto
65fccc2899
rename mruby,mirb gems to mruby-bin-{mruby,mirb}
2013-04-11 18:43:03 +09:00