Commit Graph

15065 Commits

Author SHA1 Message Date
crimsonwoods e63425a8f9 add a new feature to select the target Android platform. 2013-03-09 19:34:22 +09:00
crimsonwoods 572acc0bea add a new feature to select the target architecture. 2013-03-09 18:55:51 +09:00
Cremno f719b0e7ff define and use print format macros for mrb_int
For portability: %ld can't be used to print a 64-bit mrb_int on
WIN(32|64) because long is 32-bit wide.
2013-03-08 18:20:54 +01:00
Yuichiro MASUI 974febd315 Merge pull request #1 from monaka/pr-new-mrb_format
Patches to new_mrb_format
2013-03-08 07:55:54 -08:00
Yukihiro Matz Matsumoto b783311ec4 Merge branch 'master' of github.com:mruby/mruby 2013-03-09 00:39:45 +09:00
Yukihiro Matz Matsumoto 318ad9c802 OP_ARRAY may overflow ARG_C 2013-03-09 00:39:08 +09:00
Masaki Muranaka 065494887d Fix warnings. 2013-03-09 00:38:10 +09:00
Masaki Muranaka 5bed51e584 Don't use int. It decreases portability. Use size_t as array index and length. It avoids overflow in the extreme situations. 2013-03-09 00:35:58 +09:00
Masaki Muranaka 8a7f5360cf Sanity check. As there are implicaton SIZE_MAX >= UINT32_MAX in this code. This assumption may break on some targets which have 16bit memory space. 2013-03-09 00:30:06 +09:00
Masaki Muranaka 51de2ba1d9 Clean up code. 2013-03-09 00:24:17 +09:00
Masaki Muranaka 6ff50568e1 Store to *bin_size if bin_size != NULL. 2013-03-09 00:23:08 +09:00
Masaki Muranaka 07017a4188 Use type cast not void* but char*. Don't substiture void pointers. 2013-03-09 00:12:19 +09:00
Masaki Muranaka faa1e5670a Remove unused substitutions and calculations. 2013-03-08 23:03:40 +09:00
Masaki Muranaka 9324c2168a Don't initialize variables that store result as MRB_DUMP_OK. It possibly causes bugs on modifications in the future. 2013-03-08 22:48:32 +09:00
Yukihiro "Matz" Matsumoto 3c5bf780e4 Merge pull request #970 from masuidrive/fix_building_script
Fixed #969
2013-03-08 05:43:49 -08:00
Yukihiro "Matz" Matsumoto cec28739ae Merge pull request #968 from kouki-o-iij/pr-mrbgem-numeric-ext
add mrbgems/ext/mruby-numeric, and method: Integer#chr
2013-03-08 05:43:07 -08:00
Yukihiro "Matz" Matsumoto c881a6a264 Merge pull request #967 from iij/pr-string-strip
add "strip" family methods of String to mruby-string-ext
2013-03-08 05:41:03 -08:00
Yuichiro MASUI d1a4958bfc Fixed to uint8_t 2013-03-08 21:46:48 +09:00
Yuichiro MASUI d1359e7a6f Fixed #969 2013-03-08 21:37:27 +09:00
Yuichiro MASUI 814094230c Change unsigned char to uint8_t 2013-03-08 18:55:15 +09:00
Kouki Ooyatsu d3ff90f5fc fix comment 2013-03-08 10:42:28 +09:00
Kouki Ooyatsu 6dfc276230 add Integer#chr test case: multibyte (raise RangeError) 2013-03-08 10:42:18 +09:00
Kouki Ooyatsu 6c066302e2 add mrbgems/ext/mruby-numeric, and method: Integer#chr 2013-03-08 10:05:41 +09:00
Tomoyuki Sahara 11edea3880 add "strip" family to String. 2013-03-08 09:45:04 +09:00
Yukihiro "Matz" Matsumoto aa73a1068f Merge pull request #966 from monaka/pr-add-dump-method-to-String-class
Add String#dump method.
2013-03-07 15:25:57 -08:00
Yukihiro "Matz" Matsumoto f9fd5d9d1b Merge pull request #965 from cremno/mrbc-multiple-outfiles-mem-leak
mrbc: exit if "-o" is specified multiple times
2013-03-07 15:25:11 -08:00
Masaki Muranaka 63a56ddd31 Add String#dump method. 2013-03-08 06:30:42 +09:00
Yukihiro Matz Matsumoto cdd41a33de unify mrb_ary_new{,_elts,_from_values}; mrb_ary_from_values() is a winner 2013-03-08 05:18:33 +09:00
Cremno 245c095da7 mrbc: exit if outfile is specified multiple times 2013-03-07 19:45:57 +01:00
crimsonwoods fe4f45d2b6 refactoring 2013-03-08 03:21:56 +09:00
crimsonwoods 80edeaa81a bug fix: add new option '-mandroid' into CFLAGS and same options are applied into LDFLAGS. 2013-03-08 03:19:31 +09: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
crimsonwoods 51b8c8d5a8 bug fix: the argument of '--sysroot' option should be followed '=' character. 2013-03-08 02:55:13 +09:00
Yukihiro "Matz" Matsumoto 7d47096434 Merge pull request #962 from masahino/fix_branch_option
fix handling of :branch option of gem.conf
2013-03-07 06:49:02 -08:00
Yukihiro "Matz" Matsumoto 7ce2d26364 Merge pull request #963 from skandhas/pr-add-mrbgems-mruby-string-ext
add mrbgems/mruby-string-ext, and method: String#getbyte
2013-03-07 06:21:52 -08:00
Yukihiro "Matz" Matsumoto 9736d44d5c Merge pull request #961 from monaka/pr-support-user-defined-loadable-build
Add Support to build loadable modules defined in mrbgems.
2013-03-07 06:20:24 -08:00
skandhas 7cd583ef27 add mrbgems/mruby-string-ext, and method: String#getbyte 2013-03-07 21:47:00 +08:00
masahino f210480652 fix handling of :branch option of gem.conf 2013-03-07 22:43:50 +09:00
Masaki Muranaka a0102317b4 Apply @masuidrive's review point. @bins should be Array. 2013-03-07 16:02:20 +09:00
Masaki Muranaka cb2ad2c439 Add Support to build loadable modules defined in mrbgems. 2013-03-07 14:23:26 +09:00
Yukihiro Matz Matsumoto 2e95f638cd Cut off mrb_irep_free from mrb_close; based on a patch from @matsumoto-r; close #951 2013-03-06 15:22:46 +09:00
Yukihiro "Matz" Matsumoto 9e8f254fb0 Merge pull request #957 from mattn/no_ambiguous
Remove warning for regexp
2013-03-05 22:01:35 -08:00
Yukihiro "Matz" Matsumoto 6b2b6b15b2 Merge pull request #954 from carsonmcdonald/arrcrashfix
Add null check after mrb_realloc for array
2013-03-05 21:59:43 -08:00
mattn 1d42e8caa8 Remove warning for regexp 2013-03-06 14:40:39 +09:00
Akira Yumiyama 5e296b24f3 remove Makefile 2013-03-06 12:59:19 +09:00
Akira Yumiyama 221296cb55 update README.md 2013-03-06 12:59:03 +09:00
Akira Yumiyama 1cde1f24ce fix with mruby/mruby support. 2013-03-06 12:51:04 +09:00
Carson McDonald f792552a5e Add null check after mrb_realloc for array 2013-03-05 15:22:10 -05:00
Yukihiro "Matz" Matsumoto 6d0e2519dd Merge pull request #952 from kano4/master
Add include guard in node.h and Replace tabs with spaces
2013-03-05 06:22:43 -08:00
kano4 4bc4380335 Add include guard in node.h 2013-03-05 23:09:34 +09:00