Commit Graph

12932 Commits

Author SHA1 Message Date
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
Yukihiro "Matz" Matsumoto 67f7c0c5ec Merge pull request #990 from monaka/pr-use-suitable-types-in-sprintf.c-20130312
Use suitable types for variables.
2013-03-12 07:19:50 -07:00
Yukihiro "Matz" Matsumoto 83e70654b0 Merge pull request #988 from monaka/pr-use-suitable-types-20130312
Use suitable types for variables.
2013-03-12 07:18:28 -07:00
Yukihiro "Matz" Matsumoto d0fb6d00a2 Merge pull request #983 from monaka/pr-fix-indent-in-parse.y-20130312
Fix indents in parse.y.
2013-03-12 07:14:32 -07:00
Yukihiro "Matz" Matsumoto 9cfaa37810 Merge pull request #991 from kano4/add_static
Add static declaration
2013-03-12 07:12:51 -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
Masaki Muranaka 018db2daac Use suitable types for variables. 2013-03-12 21:12:05 +09:00
Masaki Muranaka e7fe4ed499 Use suitable types for variables. 2013-03-12 20:50:02 +09:00
Masaki Muranaka dd29e05f8e Use int. They are no need to use unsigned/signed long. Think about 16bit architectures. 2013-03-12 20:00:48 +09:00
Masaki Muranaka 2c54cf2e59 Add comments for paradnoid (a.k.a. mission critical) engineers. 2013-03-12 19:59:12 +09:00
Masaki Muranaka e1d2f50e47 Remove a meaningless type cast. 2013-03-12 19:55:18 +09:00
Masaki Muranaka 588f51508b Remove str_alloc(). Use mrb_obj_alloc_string instead. 2013-03-12 18:21:23 +09:00
Masaki Muranaka 3af128c742 Remove mrb_str_sublen() as it is not used. 2013-03-12 18:08:40 +09:00
Masaki Muranaka be506de3fc Remove mrb_str_new2(). Use mrb_str_new_cstr() instead.
Make mrb_str_new_cstr() accept NULL pointer. It generates 0byte strings by NULL pointer.
2013-03-12 17:54:40 +09:00
Masaki Muranaka d62f497bdd Fix indents. 2013-03-12 17:23:41 +09:00
Masaki Muranaka e2d31ba3f3 Rename STR_BUF_MIN_SIZE to MRB_STR_BUF_MIN_SIZE. Make it configurable. 2013-03-12 17:10:18 +09:00
Yukihiro "Matz" Matsumoto f63cd331da Merge pull request #981 from iij/pr-fix-inspect
fix inspect method
2013-03-12 00:32:10 -07:00
Akito Mochizuki b11b3f6e86 fix inspect method 2013-03-12 12:34:50 +09:00
Yukihiro "Matz" Matsumoto 46d8c51763 Merge pull request #976 from kano4/dev
Fix indent in string.c
2013-03-11 11:30:24 -07:00
Yukihiro "Matz" Matsumoto f927ab9815 Merge pull request #978 from carsonmcdonald/timetypofix
Fix typo
2013-03-11 11:29:49 -07:00
Yukihiro Matz Matsumoto 5e02ddfec0 Merge branch 'master' of github.com:mruby/mruby 2013-03-11 23:57:53 +09:00
Yukihiro Matz Matsumoto 577a88161e restore arena after mrb_define_method() 2013-03-11 23:57:30 +09:00
Yukihiro Matz Matsumoto 34fe9d0156 return value from mrb_gc_arena_save() is int 2013-03-11 23:55:41 +09:00
Carson McDonald c261fffa68 Fix typo 2013-03-11 09:12:33 -04:00
kano4 0751faf467 Fix indent in string.c 2013-03-11 21:16:33 +09:00
Yukihiro "Matz" Matsumoto d41e13e25d Merge pull request #974 from masuidrive/change_default_gem_path
Change default gem path.
2013-03-10 08:00:17 -07:00
Yuichiro MASUI ab8a5aa572 Change default gem path. 2013-03-10 14:51:59 +09:00
crimsonwoods 887ebb8c94 more CFLAGS and LDFLAGS are specified automatically. 2013-03-09 19:57:34 +09:00
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