Commit Graph

92 Commits

Author SHA1 Message Date
Masaki Muranaka 48aa61a5e2 Support $0 variable. 2013-04-07 11:55:02 +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
Yukihiro "Matz" Matsumoto 82991049be replace non formatting printf to (f)puts 2013-03-27 23:53:56 +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
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
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
Yuichiro MASUI 0970ca9572 Support to build on pwd != mruby source root 2013-02-23 19:03:59 +09:00
Yuichiro MASUI dd680b6e67 Add flags_after_libraries 2013-01-24 11:33:56 +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
Yuichiro MASUI ced80d2b4b Improved build scripts and config files 2013-01-20 22:48:42 +09:00
Yuichiro MASUI 33350251ae Added conf.bins for defining bulding binaries 2013-01-09 22:40:08 +09:00
MATSUMOTO Ryosuke f6bc6b7692 Add mruby_ldflags when tools/mruby and tools/mrbc link archive files 2013-01-05 15:12:42 +09:00
Yuichiro MASUI 7c469c0b9d Rebuild CRuby based building script without Makefile
Tested CRuby 1.8.6 and 1.9.3

You can see building configuration in build_config.rb
2013-01-03 02:24:15 +09:00
Yukihiro Matz Matsumoto bfd41bd6bf avoid printing backtrace line with unknown place info 2012-12-22 00:11:45 +09:00
Tomoyuki Sahara bf87a0f701 rebuild binaries when mrbgem archives are updated. 2012-12-14 13:39:19 +09:00
Yukihiro Matz Matsumoto fd12f87712 save lastpc on exception and use it in mruby stack trace 2012-12-12 18:23:20 +09:00
Yuichiro MASUI dcdd893bed Added LDFLAGS to Makefiles 2012-12-09 19:18:40 +09:00
Daniel Bovensiepen be99d87ca4 rename mrb_load_irep for mrbtest to be consistent to name change 2012-12-05 17:45:24 +08:00
Yukihiro Matz Matsumoto b8e5a57047 rename mrb_load_irep etc. for naming consistency 2012-12-05 02:48:29 +09:00
Daniel Bovensiepen 4f55a3e0b4 Deactivate / Activate GEMs Flag introduced into mruby 2012-11-22 19:01:02 +08:00
Daniel Bovensiepen ed92a86212 Include dynamically GEMs into mruby 2012-11-21 15:57:49 +08:00
Yukihiro Matsumoto 5987f67a8d ignore cfunc method in backtrace 2012-11-03 01:42:19 +09:00
Yukihiro Matsumoto e0aa96a682 avoid trigraph (???) in backtrace 2012-11-03 01:40:51 +09:00
Tomoyuki Sahara 43f4934e6d printf("%s", NULL) is not safe on some platforms. 2012-11-02 10:48:39 +09:00
Tomoyuki Sahara 650008bf9e fix compilation. 2012-11-02 10:37:52 +09:00
Tomoyuki Sahara 9622d65a6b show line numbers in backtrace. 2012-11-02 10:33:33 +09:00
Tomoyuki Sahara 80ed166e9f show all callinfo's. 2012-11-02 10:33:23 +09:00
Tomoyuki Sahara 075aa3eeaa don't print garbage entries. 2012-11-02 10:33:14 +09:00
Tomoyuki Sahara 5bae6459ff show backtrace. 2012-11-02 10:32:39 +09:00
Akira Yumiyama 38fb8b07c6 fix mruby exit status with mrb file. 2012-10-30 23:49:10 +09:00
Yukihiro Matsumoto 19cd9c6e2e print error message on mrb load error 2012-10-18 06:05:59 +09:00
Yukihiro Matsumoto cf2bd3469a preserve script file name 2012-10-05 10:55:29 +09:00
Yukihiro Matsumoto 70916d030c script file name should not be in ARGV 2012-10-04 14:56:24 +09:00
Yukihiro Matsumoto 0d9b91083b specify know capacity of an array 2012-10-04 14:39:44 +09:00
Yukihiro Matsumoto af8f039b90 mruby should exit with 0 on success 2012-09-30 08:41:36 +09:00
Daniel Bovensiepen f6a9846d0e Fix writing errors in Makefiles 2012-09-10 23:25:50 +08:00
Masaki Muranaka 75da995489 Fix not to use memset() in structure inizialization. 2012-09-05 02:55:25 +09:00
Masamitsu MURASE 213477df2d Modify argument of mrbc_filename. 2012-08-18 22:14:47 +09:00
Yukihiro Matsumoto 7bf4142c42 mruby should read from stdin if no argument given as cruby does 2012-08-15 09:31:59 +09:00
Yukihiro Matsumoto 5f11890d04 mruby should accept "-" as stdin 2012-08-15 09:31:13 +09:00
suzukaze d648970bc8 fixed showing no 'Usage'. 2012-08-14 23:50:39 +09:00
Max Anselm 50b9f54a65 Make void casts explicit.
(Forgot a couple files)
2012-07-29 20:11:08 -04:00
Yukihiro Matsumoto 42cfe5c9f3 make mruby work even when DISABLE_STDIO is set 2012-07-17 23:51:57 +09:00
Yukihiro Matsumoto c8700c4a21 remove Syntax OK if syntax isn't ok; close #368 2012-07-15 16:23:55 +09:00
Yukihiro Matsumoto 72f7c51bc0 mruby should print error properly 2012-07-14 15:39:53 +09:00
Yukihiro Matsumoto 83ccb715b2 mruby: print Syntax OK on -c 2012-07-14 07:45:24 +09:00
Yukihiro Matsumoto 8e1c842b7e simpify mruby/mrbc using context 2012-07-13 15:36:43 +09:00