Commit Graph

15065 Commits

Author SHA1 Message Date
Kazuki Tsujimoto 8ce5893e1a Use mrb_get_args instead of direct stack access 2012-04-28 09:45:56 +09:00
Yukihiro "Matz" Matsumoto 2b6be16308 Merge pull request #61 from pbhogan/fix-warnings
Fix various warnings
2012-04-27 08:56:39 -07:00
Yukihiro Matsumoto fdd4920ffd accessing out of region; fix #68 2012-04-28 00:45:33 +09:00
Yukihiro Matsumoto 21a23c07f0 Merge branch 'master' of github.com:mruby/mruby 2012-04-28 00:32:48 +09:00
Yukihiro Matsumoto 32db0e5d8c struct RString member should not be mrb_value 2012-04-28 00:32:34 +09:00
Yukihiro "Matz" Matsumoto 3afb248a3a Merge pull request #67 from mattn/fix_null_deref
Avoid to crash when "mruby -e p"
2012-04-27 03:17:46 -07:00
Yukihiro Matsumoto 9e45eb185b object iv table can be NULL; close #66 2012-04-27 19:15:19 +09:00
mattn 0803a2e2f3 Avoid to crash when "mruby -e p" 2012-04-27 19:08:32 +09:00
Yukihiro Matsumoto ee30c5a4a4 allow float/double switch 2012-04-27 18:31:45 +09:00
Yukihiro Matsumoto c8f8f8396c initialize ARGV when program is specified by -e 2012-04-27 18:31:02 +09:00
Yukihiro "Matz" Matsumoto b9a806f757 Merge pull request #64 from mattn/argv
add ARGV.
2012-04-27 02:14:07 -07:00
mattn 6d02f784ac add ARGV. 2012-04-27 15:06:38 +09:00
Yukihiro "Matz" Matsumoto 65710ef669 Merge pull request #62 from javier/patch-1
Adding a prerequisites section
2012-04-26 20:47:25 -07:00
Yukihiro "Matz" Matsumoto 549cb6bb8b Merge pull request #59 from mattn/fix_issue56
fix #56
2012-04-26 09:03:38 -07:00
javier ramírez a7288fdf54 Adding a prerequisites section to avoid the "bison: command not found" error 2012-04-26 17:11:11 +03:00
Yukihiro "Matz" Matsumoto cdf2a28b33 Merge pull request #58 from mattn/use_mrb_free
use mrb_free().
2012-04-26 06:47:42 -07:00
Patrick Hogan f9647592ef Remove unused variable in khash
Signed-off-by: Patrick Hogan <pbhogan@gmail.com>
2012-04-26 08:36:32 -05:00
Patrick Hogan 27cfbbe43a size_t is unsigned and can never be < 0
Removed to silence warning.

Signed-off-by: Patrick Hogan <pbhogan@gmail.com>
2012-04-26 08:36:32 -05:00
Patrick Hogan 4b8515184d mrb_read_irep should take const char *
Signed-off-by: Patrick Hogan <pbhogan@gmail.com>
2012-04-26 08:36:32 -05:00
Patrick Hogan ec27c18dae Fix a few casting warnings.
Signed-off-by: Patrick Hogan <pbhogan@gmail.com>
2012-04-26 08:36:32 -05:00
Patrick Hogan a408ba2dd6 Remove unused ret argument from kh_put.
It doesn't appear to serve any purpose and allows removing warning about various unused variables littered around.

Signed-off-by: Patrick Hogan <pbhogan@gmail.com>
2012-04-26 08:36:32 -05:00
Patrick Hogan a4c9853813 More switch statement cleanup.
Signed-off-by: Patrick Hogan <pbhogan@gmail.com>
2012-04-26 08:36:32 -05:00
Patrick Hogan 132dd25528 Remove a bunch of unused variables.
Removed or commented out to stop compiler whining about them.

Signed-off-by: Patrick Hogan <pbhogan@gmail.com>
2012-04-26 08:36:32 -05:00
Patrick Hogan 4b99def2ae Clean up switch statements.
Some formatting and add default label to silence warning about unhanded cases.

Signed-off-by: Patrick Hogan <pbhogan@gmail.com>
2012-04-26 08:36:32 -05:00
Patrick Hogan db20b5142b mrb_ary_dup is only used by mrb_ary_sort which is removed by #if 0
Signed-off-by: Patrick Hogan <pbhogan@gmail.com>
2012-04-26 08:36:32 -05:00
mattn 45b36954df fix #56 2012-04-26 11:29:30 +09:00
mattn de7a596a2a use mrb_free(). 2012-04-26 11:14:19 +09:00
Yukihiro Matsumoto 7b3d628c86 use mrb_float instead of double 2012-04-26 11:13:45 +09:00
Yukihiro Matsumoto 5aa1c95710 parse.y: skip() should not ignore end-of-file; fix #55 2012-04-26 09:05:02 +09:00
Yukihiro Matsumoto 0486c48b1a do not use strdup(3) that use malloc(3) inside; should use mrb_malloc() 2012-04-26 08:43:05 +09:00
Yukihiro Matsumoto c6f5f637e2 supeclass type check prohibits class definition without superclass specified 2012-04-26 06:07:41 +09:00
Yukihiro Matsumoto e26bf08e39 tools/mruby: multiple -e should concatenate command line args 2012-04-25 22:57:12 +09:00
Yukihiro Matsumoto 140b9cad8b Merge branch 'master' of github.com:mruby/mruby 2012-04-25 11:50:21 +09:00
Yukihiro Matsumoto 86946043c3 disclose mrb_top_self() and use it in mruby.c 2012-04-25 11:50:03 +09:00
Yukihiro "Matz" Matsumoto 68b76fcdec Merge pull request #50 from mattn/e_flag
add -e flag.
2012-04-24 19:39:59 -07:00
Yukihiro "Matz" Matsumoto 0a0bc729ba Merge pull request #49 from mattn/exit_code
return 0 if code is generated.
2012-04-24 19:38:35 -07:00
mattn bc41445714 add -e flag. 2012-04-25 10:16:38 +09:00
mattn 2c64c712db return 0 if code is generated. 2012-04-25 09:43:10 +09:00
Yukihiro "Matz" Matsumoto 7edd7762b0 Merge pull request #48 from pbhogan/call-dfree-on-rdata-at-gc
Call dfree member on RData / MRB_TT_DATA when collected
2012-04-24 06:48:29 -07:00
Patrick Hogan f41aae73fd Call dfree member on RData/MRB_TT_DATA when collected
Signed-off-by: Patrick Hogan <pbhogan@gmail.com>
2012-04-24 08:39:32 -05:00
Yukihiro Matsumoto 8ab46d241c superclass should be a class 2012-04-24 18:27:35 +09:00
Yukihiro Matsumoto f9339f5c67 EXPR_BEG by keywords is a start point of commands; backport r35457 from CRuby 2012-04-24 18:25:26 +09:00
Yukihiro Matsumoto 8b367098ac move header files {irep,dump,cdump,ritehash}.h to /include/mruby 2012-04-24 17:41:28 +09:00
Yukihiro Matsumoto 2970b6aadb change type of RString.size from size_t to long 2012-04-24 16:03:42 +09:00
Yukihiro Matsumoto 2fc1b8af2d mv variable.h to mruby/variable.h 2012-04-24 15:59:50 +09:00
Yukihiro Matsumoto a5c0d2a996 remove st_hash_type comment 2012-04-24 11:00:06 +09:00
Yukihiro Matsumoto d4ef3baca8 remove code for unsupported taint-mode 2012-04-23 18:30:49 +09:00
Yukihiro Matsumoto 1605ec8cd4 wrong type argument for mrb_funcall 2012-04-23 18:25:08 +09:00
Yukihiro Matsumoto a45c23990b fix inheritance chain; fix #41 2012-04-23 18:14:18 +09:00
Yukihiro "Matz" Matsumoto 0e2c8ec57c Merge pull request #44 from unak/__end__
``__END__'' must start at the beginning of the line.
2012-04-23 01:17:14 -07:00