Yukihiro "Matz" Matsumoto
873fae9f45
wrap function prototype by extern "C"
2014-03-02 00:59:49 +09:00
take_cheeze
78915f9601
support c++ exception
2014-03-01 20:05:29 +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
Yukihiro "Matz" Matsumoto
f57cdc3cd7
parser_dump() is not used in mrbc; close #1561
2013-11-19 18:59:53 +09:00
Yukihiro "Matz" Matsumoto
edd6c17c1e
load_exec() no longer return fixnum value for no_exec; should close #1569
2013-11-13 15:48:13 +09:00
Yukihiro "Matz" Matsumoto
08e6bd47a0
fclose input file
2013-11-13 14:44:02 +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
takahashim
77d2322a11
mrbc: add line break for -c option
2013-11-03 12:27:37 +09:00
take_cheeze
3d1fffbd6b
support multiple filename in irep
2013-09-02 00:48:06 +09: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
murase_syuka
fb9372b948
add mrbc -h option
2013-08-02 16:30:51 +09:00
Luis Lavena
0fc9064c59
mrbc: use binary mode on outfile
...
This solves the problem of incorrect bytecode generated by mrbc
for single files on Windows platform (which is by default text-mode)
2013-05-18 12:24:54 -03:00
Yukihiro "Matz" Matsumoto
36216ac6f7
Merge branch 'master' of github.com:mruby/mruby
2013-05-16 09:24:18 +09:00
Carson McDonald
439359324d
Fix compiler warning by exiting if wfp isn't set
2013-05-15 09:02:27 -04:00
Yukihiro "Matz" Matsumoto
103ab2e53d
avoid unnecessary copy of context->filename
2013-05-15 00:08:28 +09:00
Yukihiro "Matz" Matsumoto
95fb1fd809
mrbc to take multiple files, preserving debug information if -g given; close #1243
2013-05-14 23:39:56 +09:00
Yukihiro "Matz" Matsumoto
c79172dfd5
put spaces after if/while
2013-04-20 23:11:43 +09:00
Carson McDonald
204ff73fd2
Fix typo.
2013-04-17 05:19:53 -04:00
Carson McDonald
3d0bbd9f40
Minor code format changes.
2013-04-17 05:19:13 -04:00
h2so5
f44c99cd2d
Replace malloc with mrb_malloc in mrbc
2013-04-10 06:39:52 +09:00
Yukihiro "Matz" Matsumoto
f607fd68d9
Merge pull request #1163 from h2so5/show-version-once
...
Show version only once with '-v' option in mruby/mrbc
2013-04-09 09:46:34 -07:00
h2so5
337076f9ba
Add validation for C language symbol name
2013-04-09 16:21:51 +09:00
h2so5
6afe138412
Show version only once with '-v' option in mruby/mrbc
2013-04-09 14:57:46 +09:00
Yukihiro "Matz" Matsumoto
2ae47ddd09
parse_args should return either EXIT_SUCCESS or EXIT_FAILURE
2013-04-06 01:04:35 +09:00
Yukihiro "Matz" Matsumoto
e72ac2c61f
use EXIT_SUCCESS and EXIT_FAILURE for exit status; close #1142
2013-04-06 00:48:42 +09:00
Masaki Muranaka
2b5b161f8b
Sort include files. Some redundant includes are removed.
2013-03-29 10:22:31 +09:00
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
82991049be
replace non formatting printf to (f)puts
2013-03-27 23:53:56 +09:00
Yuichiro MASUI
f3ebb89392
Added debug infomation section into .mrb file
2013-03-27 18:21:04 +09:00
Yukihiro Matz Matsumoto
a0f6e4d58e
resolve conflict from #964
2013-03-27 00:52:24 +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
Cremno
245c095da7
mrbc: exit if outfile is specified multiple times
2013-03-07 19:45:57 +01: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
Yuichiro MASUI
cf81a88b04
Removed mrbc -C option what's C function dump. and TAB to space
2013-01-29 22:47:50 +09:00
Yuichiro MASUI
310b0dce8f
Added finalizer of mrbgems
2013-01-22 20:18:48 +09:00
Daniel Bovensiepen
82446cc747
Use only DISABLE_GEMS for feature request in include/mrbconf.h
2012-12-08 13:26:50 +08:00
Daniel Bovensiepen
4e2161c7ee
Deactivate / Activate GEMs Flag introduced into mrbc
2012-11-22 19:18:01 +08:00
Daniel Bovensiepen
cdb72a05a2
Merge remote-tracking branch 'upstream/master' into mrbgems
2012-11-01 16:12:57 +08:00
Yukihiro Matsumoto
52d39e6224
prevent resource leak (outfile)
2012-10-23 19:01:37 +09:00
Yukihiro Matsumoto
76f28241f1
"mrbc -" should take input from stdin; close #489
2012-10-16 20:54:06 +09:00
Daniel Bovensiepen
cd72971adc
make mrbc aware of the gem init
2012-09-13 22:23:51 +09:00
Masaki Muranaka
75da995489
Fix not to use memset() in structure inizialization.
2012-09-05 02:55:25 +09:00
Masamitsu MURASE
8720816c0f
Set filename in mrbc.c.
2012-08-26 19:21:44 +09:00
Yuichiro MASUI
ef993d7549
Added mrbc support output to stdout
2012-07-29 20:58:02 +09:00
Yukihiro Matsumoto
5938956171
mrbc: better cleanup before exit
2012-07-14 07:39:50 +09:00
Yukihiro Matsumoto
e380692224
mrb_load_xxx to return undef + mrb_undef_p
2012-07-14 07:38:43 +09:00
Yukihiro Matsumoto
8e1c842b7e
simpify mruby/mrbc using context
2012-07-13 15:36:43 +09:00
Yukihiro Matsumoto
bbec03bb7a
add missing (empty) default for swtch; close #364
2012-07-13 14:35:18 +09:00
Yukihiro Matsumoto
85a0cad905
use new function mrb_parser_free()
2012-07-03 21:54:08 +09:00
Yukihiro Matsumoto
65096c4c1b
add context to parser, that would hold local variable info, filename, and line number. mrbc_context argument has been added to mrb_parse_xxx() functions. Normally, you just to need to add NULL (or 0) to the last argument of the above functions.
2012-07-03 20:59:07 +09:00