Commit Graph

188 Commits

Author SHA1 Message Date
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
Masaki Muranaka 9d8143f930 Move mirb and mruby to mrbgems. 2013-04-11 15:22:07 +09: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
Yukihiro "Matz" Matsumoto c5c3fa1939 Merge pull request #1164 from h2so5/add-validation-for-c-symbol
Add validation for C language symbol name
2013-04-09 09:45:56 -07:00
Akito Mochizuki b379f6e94f Fix mirb to use readline 2013-04-09 16:58:39 +09: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 1b40c057f5 Merge pull request #1157 from monaka/pr-add-ARGV-to-mirb
Add ARGV constant. It is not required by ISO. Compatibility with CRuby.
2013-04-08 12:10:04 -07:00
h2so5 22f50fe32e Fix a memory leak in mirb 2013-04-08 23:38:01 +09:00
h2so5 531daa0a9d Fix checking for heredoc in mirb 2013-04-07 18:05:23 +09:00
Masaki Muranaka 2c0f2eb9f8 Add ARGV constant. It is not required by ISO. Compatibility with CRuby. 2013-04-07 12:51:13 +09:00
Masaki Muranaka 48aa61a5e2 Support $0 variable. 2013-04-07 11:55:02 +09:00
h2so5 a258d5752a Improve checking for unterminated string in mirb 2013-04-06 20:32:48 +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
kano4 5a22c6daf7 Add simple usage message for mirb 2013-03-27 20:32:09 +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
kano4 201669d8a1 Fix indentation in mirb.c 2013-03-25 20:31:09 +09:00
FUKUZAWA-Tadashi 44fbfc5184 implement literal %W %w %s
refactor string parsing
2013-03-17 21:27:37 +09:00
Masaki Muranaka 3aa3b4af90 Remove stdlib.h from mruby.h. It is for portability (care for freestanding environments).
This is a first step. It will be reduced stdlib.h in each files later.
2013-03-16 21:29:39 +09:00
takkaw 839d801c7a display BasicObject information in mirb 2013-03-16 00:16:35 +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
Yukihiro "Matz" Matsumoto 2134d6b427 Merge pull request #992 from kano4/unused
Remove unused return value in mruby.c
2013-03-12 07:21:35 -07:00
kano4 f05c3bce30 Remove unused return value in mruby.c 2013-03-12 23:09:38 +09:00
kano4 3bad7857c3 Replace tabs with spaces 2013-03-12 23:08:37 +09:00
kano4 d25af7ccf9 Add static declaration 2013-03-12 22:59:39 +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
FUKUZAWA-Tadashi 1af4110f7d implement heredoc 2013-03-03 20:08:13 +09:00
Yuichiro MASUI 0970ca9572 Support to build on pwd != mruby source root 2013-02-23 19:03:59 +09:00
Carson McDonald fb5e83a69b Fix crash when exiting mirb using ctrl-d when compiled with readline
support.
2013-02-17 07:23:32 -05: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 dd680b6e67 Add flags_after_libraries 2013-01-24 11:33:56 +09:00
Yuichiro MASUI b1623b9e58 merge master 2013-01-24 11:21:39 +09:00
Yuichiro MASUI 310b0dce8f Added finalizer of mrbgems 2013-01-22 20:18:48 +09:00
Yuichiro MASUI a1c4992905 Added flags_before_libraries to linker 2013-01-21 22:15:15 +09:00
Yuichiro MASUI 0defb59053 build_config gets more flexibility 2013-01-21 12:46:17 +09:00