Commit Graph

55 Commits

Author SHA1 Message Date
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 0970ca9572 Support to build on pwd != mruby source root 2013-02-23 19:03:59 +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
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 77a5ed7093 Removed gem libraries in mrbc 2013-01-11 02:33:39 +09:00
Yuichiro MASUI 33350251ae Added conf.bins for defining bulding binaries 2013-01-09 22:40:08 +09:00
MATSUMOTO Ryosuke 1cd7c9fac5 Fix mrbgem options 689#issuecomment-11911431 2013-01-05 17:20:01 +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
Yuichiro MASUI dcdd893bed Added LDFLAGS to Makefiles 2012-12-09 19:18:40 +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
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 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
Daniel Bovensiepen 83e5999d7e Make CFLAG choices in Makefiles more flexible 2012-06-18 11:22:05 +08:00
Jon 2fff59dc86 Check mrb_open return value for NULL 2012-06-03 11:11:35 -04:00
Jon 6f4eda7401 Simplify CMake mruby object library
Also removes an unnecessary build target from the CMake generated
build and project files.
2012-05-27 20:27:11 -04:00
Jon 3be28e0b73 Remove unnecessary mrb_init_ext definition 2012-05-27 14:44:13 -04:00
Jon 105c11b7f6 Clean and DRY up the basic Makefiles 2012-05-23 13:19:40 -04:00
Yukihiro "Matz" Matsumoto 9a64598121 Merge pull request #180 from mitchblank/master
call mrb_close() in tools and test programs
2012-05-22 11:01:29 -07:00
Jon 9f89da6eef Add native and cross compiling CMake build support 2012-05-22 10:50:28 -04:00
Beoran b5dcb7128d First cmake build system. Works on Linux. 2012-05-22 09:11:13 -04:00
Mitchell Blank Jr d1cd10421f change example code to do mrb_close()
I was hoping this would cause valgrind to complain less, but there is still
a lot of memory leaked (does mrb_close() actually free all of the managed
blocks?)  Anyway this helps somewhat and is good practice
2012-05-22 01:03:54 -07:00
Yukihiro Matsumoto f81ddf9025 terminate programs after showing version/copyright 2012-05-18 14:49:09 +09:00
Yukihiro Matsumoto f4bacab18b rename ruby_show_version to mrb_show_version 2012-05-18 14:45:05 +09:00
Yukihiro Matsumoto fb60a2191a revise version description 2012-05-18 14:41:00 +09:00
Yukihiro Matsumoto 219162117a move compile.h to mruby/compile.h 2012-05-18 12:54:23 +09:00
Yukihiro Matsumoto a18fb01b03 new API for parser 2012-05-18 11:03:43 +09:00
Yukihiro Matsumoto 434ed1ed7c compile error should contain line number 2012-05-17 23:46:55 +09:00
Yukihiro Matsumoto 3e3a8c18b9 avoid updating existing libmruby.a to avoid problems on low time resolution file systems; close #136 2012-05-17 12:13:24 +09:00
Yukihiro Matsumoto 1bc0c12096 Makefile: remove echo action from all target 2012-05-15 16:40:45 +09:00
Yukihiro Matsumoto 98953cdb8f include string.h instead of memory.h; close #108 2012-05-08 11:55:16 +09:00
Yukihiro Matsumoto f3599bb442 library file name renamed to libmruby.a on all platforms 2012-05-03 23:42:38 +09:00
Yukihiro Matsumoto 39cf53d028 rename ritevm.a to mruby.a 2012-05-02 10:11:56 +09:00
Yukihiro Matsumoto db999237bc build process restructured 2012-04-30 10:58:36 +09:00