Commit Graph

74 Commits

Author SHA1 Message Date
Yukihiro Matsumoto a893a48b68 use readint/readfloat instead of sscanf 2012-04-28 23:39:54 +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 "Matz" Matsumoto 549cb6bb8b Merge pull request #59 from mattn/fix_issue56
fix #56
2012-04-26 09:03:38 -07: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
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 c6f5f637e2 supeclass type check prohibits class definition without superclass specified 2012-04-26 06:07:41 +09: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 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
NAKAMURA Usaku 9a5e93bfcb ``__END__'' must start at the beginning of the line. 2012-04-23 17:08:44 +09:00
NAKAMURA Usaku 6db869c33d Support ``__END__'' as the mark of the end of a script (ISO Ruby). 2012-04-23 14:42:05 +09:00
mimaki c80487561f Merge branch 'master' of github.com:mruby/mruby
Conflicts:
	src/variable.c
2012-04-23 11:51:47 +09:00
mimaki 835443614d add file header 2012-04-23 11:46:16 +09:00
snaba 1f87caa2c7 Merge branch 'master' of github.com:mruby/mruby 2012-04-23 09:42:29 +09:00
Yukihiro "Matz" Matsumoto cf6e7966d3 Merge pull request #35 from fceller/master
simple fix for underflow / capture errors and warnings
2012-04-22 16:58:19 -07:00
Yukihiro "Matz" Matsumoto 7feb68eb90 Merge pull request #37 from k-tsj/fix-proc-segv
Fix SEGV when calling Proc object created by Proc.new
2012-04-22 16:55:49 -07:00
Yuichiro MASUI f9d4a5a02b Fixed to forget to remove some files on 'make clean' 2012-04-23 03:06:01 +09:00
Kazuki Tsujimoto 5859a204fe Fix SEGV when calling Proc object created by Proc.new 2012-04-22 19:23:44 +09:00
Frank Celler 844d7d49b3 allow errors & warning to be captured 2012-04-22 08:53:55 +02:00
Frank Celler 9760b7f126 simple fix for underflow 2012-04-22 07:40:31 +02:00
Frank Celler fc125524b2 only increment position, if no error has occured 2012-04-21 23:30:34 +02:00
lucas dicioccio 669cfc7f66 typo in the node's comment 2012-04-21 12:02:12 +02:00
Yukihiro Matsumoto 9676edda66 replace st.[ch] to remove SIZEOF_ST_INDEX_T 2012-04-21 18:59:02 +09:00
Yukihiro Matsumoto 748d762e85 object instance variable do not use st.c 2012-04-21 12:42:43 +09:00
Yukihiro Matsumoto 9b3a4fd8a4 avoid integer overflow 2012-04-21 01:01:07 +09:00
Yukihiro "Matz" Matsumoto f086dbd536 Merge pull request #25 from pbhogan/remove-unnecessary-check
Remove unnecessary check for size_t < 0
2012-04-20 08:58:19 -07:00
Yukihiro Matsumoto c138d7ef0a use %zd for size_t argument 2012-04-21 00:51:20 +09:00
Patrick Hogan 758096334f Remove unnecessary check for size_t < 0
size_t can never be negative since it is an unsigned integer according to standard. Removed to silence warning.

Signed-off-by: Patrick Hogan <pbhogan@gmail.com>
2012-04-20 10:29:01 -05:00