Commit Graph

4991 Commits

Author SHA1 Message Date
Masaki Muranaka 74f04849c4 Rearrange SIZE_MAX. It is supported also VC++ since its version10. And there seems SIZE_MAX is defined in stdint.h. And it possibly (depends on the version of VC++) conflicts with SIZE_MAX in limits.h. This patch is no need if I did not support VC++. 2013-03-29 11:02:35 +09:00
Masaki Muranaka 2b5b161f8b Sort include files. Some redundant includes are removed. 2013-03-29 10:22:31 +09:00
Masaki Muranaka a01e968cdb Remove limits.h from numeric.h. Add limits.h to some C files. 2013-03-29 10:06:40 +09:00
Yuichiro MASUI 1e58b9c2bf Fixed wrong section size calculation 2013-03-29 01:35:30 +09:00
Yukihiro "Matz" Matsumoto 326aa3f98e Merge pull request #1095 from monaka/pr-add-arena-guard
Add arena guard. It will be exausted when the pool is huge.
2013-03-28 06:50:40 -07:00
Yukihiro "Matz" Matsumoto a6cca7c2c4 Merge branch 'pr-fix-mrb_format' of https://github.com/monaka/mruby into monaka-pr-fix-mrb_format 2013-03-28 22:46:51 +09:00
Yukihiro "Matz" Matsumoto 144613943d Merge pull request #1094 from monaka/pr-use-mrb_format
Use mrb_format() instead of s*printf().
2013-03-28 06:44:21 -07:00
Yukihiro "Matz" Matsumoto e8d98a3854 return value from fread(3) just cannot be ignored 2013-03-28 22:42:06 +09:00
Masaki Muranaka 31bb00b9c2 Add arena guard. It will be exausted when the pool is huge. 2013-03-28 17:57:52 +09:00
Masaki Muranaka fa23cb1021 Fix argunum_error() to use mrb_format(). 2013-03-28 17:43:24 +09:00
Masaki Muranaka 485111db6b Fix %s to %S. 2013-03-28 17:40:13 +09:00
Masaki Muranaka c0b5220418 Modify mrb_name_error() to use mrb_format(). 2013-03-28 17:35:04 +09:00
Daniel Bovensiepen e952d55ba0 Catch return values to silent compiler 2013-03-28 07:09:05 +00:00
Masaki Muranaka d329d1f421 Fix. In some cases, %S substitutions were failed. 2013-03-28 15:08:29 +09:00
Masaki Muranaka 9c831c9a9c Remove the escape backslash from the result string. 2013-03-28 15:07:34 +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 18b2683b97 use new mrb_format API from mrb_raisef; its only format specifier is "%S" (stringify) and takes mrb_value; close #1062 2013-03-27 23:41:23 +09:00
Yukihiro Matz Matsumoto 8ce842a5d9 implement mrb_format and mrb_vformat 2013-03-27 23:03:48 +09:00
Yuichiro MASUI f3ebb89392 Added debug infomation section into .mrb file 2013-03-27 18:21:04 +09:00
mattn 38789c4282 Remove unused variable 2013-03-27 11:58:48 +09:00
Yukihiro Matz Matsumoto 638c5a96d7 bug in fread(3) error check 2013-03-27 11:53:14 +09:00
Yukihiro Matz Matsumoto e03e697549 little cosmetic change (delete word Rite); bump dump file version number 2013-03-27 11:28:05 +09:00
Yukihiro Matz Matsumoto a0f6e4d58e resolve conflict from #964 2013-03-27 00:52:24 +09:00
kano4 50d3041d68 Use C99 flexible array in pool.c 2013-03-26 23:29:42 +09:00
Yukihiro Matz Matsumoto 66fa14a333 main.to_s should also return "main" 2013-03-26 22:25:58 +09:00
Yukihiro Matz Matsumoto b1bd62e047 remove all MRB_TT_MAIN from source 2013-03-26 21:25:00 +09:00
Yukihiro Matz Matsumoto 5c6be2e518 Merge branch 'selftopiv' of https://github.com/carsonmcdonald/mruby into carsonmcdonald-selftopiv 2013-03-26 21:07:20 +09:00
Yukihiro Matz Matsumoto 471ad60688 use C99 flexible array member instead of [1] 2013-03-26 17:11:55 +09:00
Yukihiro Matz Matsumoto 87d7fc6165 Merge branch 'master' of github.com:mruby/mruby 2013-03-26 16:48:26 +09:00
Yukihiro "Matz" Matsumoto 2d91803528 Merge pull request #1073 from kurodash/pr-builderr-on-vs2012
fix build error on VS2012 toolchains.
2013-03-26 00:48:15 -07:00
Yukihiro Matz Matsumoto a7842b6451 zero length array is GCC extension 2013-03-26 16:42:17 +09:00
kurodash e426243ea0 fixed build error on VS2012 toolchains. 2013-03-26 15:36:44 +09:00
Masaki Muranaka fd49ae0a84 Preprocessor # should be the top of line. 2013-03-26 15:14:01 +09:00
Masaki Muranaka eafd5f647a Remove unused macros. 2013-03-26 15:13:20 +09:00
Masaki Muranaka 6848ad6f30 Remove #if 0 ... #endif code. 2013-03-26 15:12:50 +09:00
crimsonwoods c2c95f09e5 remove unused functions 'mrb_strerrno' and 'mrb_bug_errno'. 2013-03-25 23:41:20 +09:00
Yukihiro "Matz" Matsumoto 9d550390e5 Merge pull request #1065 from monaka/pr-reduce-stdio-dependency
Reduce stdio dependency
2013-03-25 07:36:47 -07:00
Carson McDonald 930e4c71c0 Make mrb_top_self return a real instance. 2013-03-25 00:23:22 -04:00
Xuejie "Rafael" Xiao c4fb08ac86 Make topenv() static inlined 2013-03-24 22:21:18 -04:00
Masaki Muranaka 3401ed7bab Reduce using snprintf(). They can replace by mruby API. 2013-03-24 13:49:19 +09:00
Masaki Muranaka 29d84a1635 Separate FILE dependencies with ENABLE_STDIO. 2013-03-24 13:47:54 +09:00
MATSUMOTO Ryosuke 7328b68b9f Adjusted indent, space and tab 2013-03-24 11:35:42 +09:00
Yukihiro "Matz" Matsumoto fd66a4df7d Merge pull request #1059 from mattn/remove_needless_sprintf
Remove unused mrb_sprintf
2013-03-23 10:00:48 -07:00
mattn aec5ac493e Remove unused mrb_sprintf 2013-03-24 00:52:25 +09:00
Yukihiro "Matz" Matsumoto ccfc0fb708 Merge pull request #1058 from mattn/remove_mrb_f_sprintf
Remove needless prototype
2013-03-23 08:48:35 -07:00
Yukihiro Matz Matsumoto e69a13a20e resolve conflict 2013-03-24 00:44:28 +09:00
mattn a8abbaed1a Remove needless prototype 2013-03-24 00:34:10 +09:00
Yukihiro "Matz" Matsumoto 6954153fa0 Merge pull request #1057 from mattn/mruby-print
mruby-print gem
2013-03-23 08:30:03 -07:00
Yukihiro Matz Matsumoto f0ac204f21 Use size_t instead of int. This is for portability. 2013-03-24 00:20:35 +09:00
mattn e53fa35748 Remove __printstr__ 2013-03-24 00:18:39 +09:00