Commit Graph

696 Commits

Author SHA1 Message Date
Jun Hiroe ff890c191c Replace tabs with spaces in eval.c 2014-05-16 22:40:14 +09:00
Yukihiro "Matz" Matsumoto 41b46ca1ed register<nlocals may not have a local variable name (e.g. a block arg); fix #2258 2014-05-16 00:04:55 +09:00
Miura Hideki da8d07d5d4 Suport block in Kernel#eval 2014-05-15 20:28:26 +09:00
Yukihiro "Matz" Matsumoto 9dae3f67d6 compile mruby-bin-strip gem by default 2014-05-15 17:14:00 +09:00
Yukihiro "Matz" Matsumoto f0b86f36c3 move mrb_irep_remove_lv from etc.c to mruby-bin-strip gem 2014-05-15 17:13:16 +09:00
take_cheeze e0064acac7 Implement LVAR section removing option in mruby-strip. 2014-05-15 15:15:06 +09:00
Yukihiro "Matz" Matsumoto 0651051ded allow quit/exit to work within mirb; fix #2253 close #2254
also allow spaces around quit/exit.
2014-05-15 12:07:02 +09:00
Yukihiro "Matz" Matsumoto 6f6f50d529 adjust signedness in mruby-eval gem 2014-05-14 23:17:11 +09:00
Yukihiro "Matz" Matsumoto 2be348a0f1 mv opcode.h -> include/mruby/opcode.h and remove duplication from mruby-eval gem 2014-05-14 23:14:08 +09:00
Miura Hideki f10331cfe6 Modify eval for access outer local variable 2014-05-14 21:42:39 +09:00
Yukihiro "Matz" Matsumoto 27df1a84bc Kernel.local_variables to list UPVAR as well 2014-05-14 17:38:27 +09:00
Yukihiro "Matz" Matsumoto 10459a5eb2 Merge branch 'dump_lv' of https://github.com/take-cheeze/mruby into take-cheeze-dump_lv 2014-05-14 11:27:41 +09:00
Yukihiro "Matz" Matsumoto 0265b47833 remove unnecessary semicolons from a38f8f 2014-05-13 20:17:54 +09:00
Yukihiro "Matz" Matsumoto a38f8fe606 support comments in user-input; also add checks for buffer overflow 2014-05-13 16:03:41 +09:00
Yukihiro "Matz" Matsumoto 5867167ffd add dependency information based on #2239; fix #2236, close #2239 2014-05-13 13:08:18 +09:00
Yukihiro "Matz" Matsumoto f454f827ee should not use String#<< which is defined in mruby-string-ext; use Array#join instead; ref #2239 2014-05-13 12:59:21 +09:00
kyab 203740bac5 Pacify MSVC warnings for random.c 2014-05-10 23:50:57 +09:00
yui-knk d88a9d761f Add comment to Hash#each_pair. And change the line
Add comment about ISO.
Current place is misleading so change line No.
2014-05-10 20:16:19 +09:00
yui-knk 658a00ba49 Change to raise TypeError (Hash#merge, #merge!) 2014-05-10 10:18:15 +09:00
Yukihiro "Matz" Matsumoto 8152373d99 Merge pull request #2219 from kyab/fix_msvc_warning_time.c
Pacify MSVC warnings for time.c
2014-05-10 00:47:14 +09:00
kyab 4a05dce4a3 pacify MSVC warnings for time.c 2014-05-09 23:38:05 +09:00
take_cheeze d0c0beb880 Move __method__ to mruby-kernel-ext since it's not ISO method. 2014-05-09 22:44:10 +09:00
Yukihiro "Matz" Matsumoto 64b30b65ee Merge pull request #2216 from iij/pr-mirb-link-termcap
libreadline requires libtermcap on OpenBSD.
2014-05-09 14:45:25 +09:00
Tomoyuki Sahara 6a41149585 libreadline requires libtermcap on OpenBSD. 2014-05-09 14:26:12 +09:00
Jun Hiroe dc4c042df5 Add Hash#key 2014-05-09 00:46:33 +09:00
yui-knk 27167f8de0 Replace from include <>, to include "". 2014-05-08 08:46:55 +09:00
take_cheeze f0154d6e3a Remove Time defined check in test. 2014-05-07 21:21:18 +09:00
mattn 0b5fe0ad6f Fix build on mingw32/64: struct timeval isn't defined in default. See: 642477ef6a 2014-05-07 10:18:57 +09:00
take_cheeze 2fca5f3353 Add mruby-kernel-ext to default gembox. 2014-05-07 00:01:38 +09:00
take_cheeze 208bafba2d Move Kernel#fail definition to mruby-kernel-ext mrbgem. 2014-05-07 00:01:30 +09:00
yui-knk c2732a160a Add a comment to ObjectSpace.each_object. 2014-05-06 12:41:23 +09:00
take_cheeze 7bab3d0bb2 Implement day of week methods. 2014-05-05 22:41:16 +09:00
Jun Hiroe dcad562f73 Add Hash#keep_if 2014-05-05 20:26:28 +09:00
Jun Hiroe 015f60fcad Add Hash#invert 2014-05-05 11:15:48 +09:00
Jun Hiroe 28a858c17e Add Hash#flatten 2014-05-04 21:14:13 +09:00
Jun Hiroe 08f2bb0bc5 Add Hash comments 2014-05-04 19:49:16 +09:00
Yukihiro "Matz" Matsumoto b87bfe7356 Merge pull request #2182 from cremno/use-isfinite
simply use `isfinite`
2014-05-04 12:28:15 +09:00
cremno 86cfcd20d6 simply use isfinite 2014-05-04 01:50:17 +02:00
Jun Hiroe 3e7db4ad27 Add Hash#delete_if 2014-05-04 00:46:36 +09:00
Yukihiro "Matz" Matsumoto 0fd32be182 Merge pull request #2179 from take-cheeze/readline_warning
Suppress warning when using readline in mirb.
2014-05-03 23:54:07 +09:00
Yukihiro "Matz" Matsumoto 59fa859d59 refactoring mruby-struct 2014-05-03 23:50:04 +09:00
Yukihiro "Matz" Matsumoto 1519e441a0 use proper length for mrb_get_values_at()
separate mrb_range_beg_len() into two: the one truncates range into the
sequence size, and the one does not.  #values_at uses the latter.
2014-05-03 23:35:24 +09:00
take_cheeze cf5155f8f7 Suppress warning when using readline in mirb. 2014-05-03 21:24:03 +09:00
Yukihiro "Matz" Matsumoto c3aa436e2c Merge branch 'values_at' of https://github.com/take-cheeze/mruby into take-cheeze-values_at 2014-05-03 21:13:03 +09:00
Yukihiro "Matz" Matsumoto c8b00d011c Merge pull request #2177 from cremno/math-domain-error
mruby-math: define and use `Math::DomainError`
2014-05-03 09:05:10 +09:00
cremno 405e8fbcd5 mruby-math: define and use Math::DomainError
Domain errors are detected as per ISO C99 and may differ from CRuby.
2014-05-02 23:48:25 +02:00
Jun Hiroe 1aa885fae0 Delete unused variable in Array#delete_if 2014-05-03 01:41:41 +09:00
windwiny 642477ef6a Update time.c
miss __MINGW32__ macro check
2014-05-02 22:28:09 +08:00
take_cheeze 44dc05f12a Implement Struct#values_at and Array#values_at .
Add API `mrb_get_values_at()` to mruby/range.h .
2014-05-02 23:20:48 +09:00
take_cheeze 052fe51279 Use header searcher to find readline and linenoise. 2014-05-01 16:49:55 +09:00