matz
4b3644bef7
* ext/dl/cptr.c (rb_dlptr_s_to_ptr): fptr->f was renamed to fd. a
...
report from Yusuf Celik <ycelik AT oytek.com.tr>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-08 10:00:06 +00:00
matz
c186fdb90b
* enumerator.c (enumerator_next_p): should check correctly even when
...
e.next has not been called before.
* enumerator.c (enumerator_next): raise StopIteration (name taken
from Python) instead of IndexError.
* enum.c (enum_zip): catch StopIteration exception.
* enumerator.c (enumerator_with_index): return Enumerator if no
block is given.
* test/ruby/test_iterator.rb (TestIterator::test_enumerator): add
test for enumerators.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-08 07:07:03 +00:00
akr
cc317d9208
variable renaming refined.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-08 04:45:15 +00:00
nobu
120a9d2f83
* bignum.c (rb_big2str0): should not use RTEST for non-VALUE.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-08 02:48:39 +00:00
usa
b42698eaff
* bignum.c (rb_big2str0): should preserve sign mark.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-08 02:26:40 +00:00
nobu
9644a2c02c
* common.mk (btest-miniruby, test-sample): split the test target
...
so that -k option works.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-08 02:02:45 +00:00
suke
785d6c7778
remove puts for debug
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-07 11:01:06 +00:00
nobu
27b103f37a
* ext/pty/pty.c (establishShell): handshaking before close slave
...
device. [ruby-talk:263410]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-07 05:58:41 +00:00
nobu
a37d419c5d
* ext/pty/pty.c (MasterDevice, SlaveDevice, deviceNo): constified.
...
* ext/pty/pty.c (SlaveName): removed static buffer.
* ext/pty/expect_sample.rb: support for autologin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-07 05:56:52 +00:00
nobu
f800cdbabc
* include/ruby/ruby.h (ruby_special_consts): added RUBY_SPECIAL_SHIFT.
...
* .gdbinit: some improvements.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-07 04:58:07 +00:00
nobu
8063c2b2e3
* common.mk (node_name.inc): use $? instead of $< for nmake.
...
[ruby-dev:31356]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-07 04:28:34 +00:00
nobu
2effce2eb5
* configure.in (ac_cv_func_isinf): set yes also on OpenSolaris.
...
[ruby-Bugs-12859]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-07 03:45:15 +00:00
nobu
819619495a
* io.c (pipe_open): fix for win32 platforms.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-07 03:31:54 +00:00
matz
81201b4007
* bignum.c (rb_big2str0): make Bignum#to_s even faster. a patch
...
from Kenta Murata <muraken AT gmail.com>. [ruby-dev:31354]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-06 18:03:11 +00:00
matz
ecb93c3fdf
* enum.c (enum_zip): zip no longer converts arguments into
...
arrays, uses enumerators.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-06 16:53:36 +00:00
matz
57b0b6c7b1
* cont.c (rb_fiber_yield): change argument ordering. export.
...
* cont.c (rb_fiber_current): export
* include/ruby/intern.h: export several functions from cont.c.
* enumerator.c (enumerator_next): new method to implement external
iterator (generator) using fiber.
* enumerator.c (enumerator_next_p): new method to check whether
any element is left in the generator sequence.
* enumerator.c (enumerator_rewind): a new method to rewind the
generator sequence.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-06 16:41:17 +00:00
matz
b3e977a4c0
* enum.c (enum_cycle): new method to cycle enumerable forever.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-06 16:26:17 +00:00
keiju
5956c7ab3e
* irb/ruby-lex.rb: support for '\c'. [ruby-talk:263508]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-06 15:11:33 +00:00
suke
f4a3bcbff0
fix test of PROPERTYPUT_REF in some environment
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-06 11:37:22 +00:00
ko1
ae421c43df
* insnhelper.ci, insns.def: move some statements to functions.
...
* vm.c, vm.h, vm_evalbody.ci: fix include/typedef places.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-06 11:36:30 +00:00
ko1
7e2b837a39
* lib/vm/instruction.rb (make_header_analysys): fix last commit.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-06 09:43:31 +00:00
ko1
fe0f6734bf
* lib/vm/instruction.rb (make_header_analysys): add to separate
...
header addition process.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-06 09:38:51 +00:00
akr
7bc137942d
add test using sentgen.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-06 08:39:01 +00:00
nobu
27e2b689f2
* lib/rexml/encodings/{ISO-8859-15,CP-1252}.rb: fixed invalid syntax.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-06 08:36:31 +00:00
akr
d18fd7206d
add a test: def m() yield end; p m {|((*))|}.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-06 08:27:04 +00:00
ko1
18c81c3d3e
* sample/test.rb: fix to output file name if it contains
...
invalid syntax.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-06 07:58:45 +00:00
ko1
1951ef76ce
* parse.y (value_expr_gen): fix to cause "void value expression"
...
when jump expression such as "next" are shown on value_expr().
[ruby-dev:31119]
* bootstraptest/test_syntax.rb: fix to above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-06 07:46:57 +00:00
ko1
1a30041536
* parse.y: fix a f_marg rule. [ruby-dev:31160]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-06 07:38:18 +00:00
ko1
2829c72cce
* bootstraptest/runner.rb (assert_equal): add additional
...
message parameter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-06 05:36:14 +00:00
nobu
ab664381aa
* iseq.c (iseq_s_compile_option_get, Init_ISeq): added a new
...
method VM::InstructionSequence::compile_option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-06 04:34:11 +00:00
nobu
a9ba30ee86
* common.mk (node_name.inc): auto-generate node name list.
...
* iseq.c (ruby_node_name): ditto.
* tool/node_name.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-06 04:09:56 +00:00
nobu
ee8f40b5a6
* common.mk (INSNS): not chdir to srcdir.
...
* lib/vm/instruction.rb (RubyVM::SourceCodeGenerator): --destdir
option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-06 04:00:09 +00:00
tadf
d690c9283c
added a note.
...
fixed a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-05 04:10:51 +00:00
tadf
cbc22bf9bd
added an assertion.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-05 04:06:08 +00:00
kou
71976790ec
* lib/rss, sample/rss, test/rss:
...
- 0.1.7 -> 0.1.8.
- supported <itunes:XXX>.
- reverted backward incompatibility API changes introduced 0.1.7.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-05 03:03:05 +00:00
nobu
43009063c7
* io.c (pipe_open_v, pipe_open_s): separate array and string
...
cases. [ruby-dev:31344]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-04 19:56:27 +00:00
nobu
341ae6ac3e
* ext/extmk.rb (extmake): save all CONFIG values.
...
* ext/extmk.rb (extmake): remove mkmf.log at clean, and extconf.h at
distclean, respectively.
* ext/extmk.rb: remove rdoc at clean, and installed list file at
distclean, respectively.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-03 02:05:57 +00:00
nobu
f3a1a4a4ba
* lib/mkmf.rb (find_type): new method.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-02 22:09:08 +00:00
nobu
3322974196
* lib/mkmf.rb (have_type): suppress a warning with -Wall.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-02 21:40:06 +00:00
nobu
899742b269
* lib/mkmf.rb: more verbose message. [ruby-Bugs-12766]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-02 21:17:37 +00:00
nobu
51732bc6d2
* bignum.c (big2str_table): base cannot be 0 or 1.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-02 15:00:22 +00:00
matz
230aa7715a
* bignum.c (rb_big2str0): faster Bugnum#to_s using Karatsuba
...
algorithm. a patch from Yusuke ENDOH <mame AT tsg.ne.jp>
in [ruby-dev:31312], slightly modified by Kenta Murata
<muraken AT gmail.com> in [ruby-dev:31339].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-02 14:45:34 +00:00
nobu
11e1e96f4b
* re.c (option_to_str, arg_kcode, opt_kcode): options conversion
...
between int and string.
* re.c (rb_reg_compile): append regexp options to error message.
[ruby-dev:31334]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-02 14:42:59 +00:00
nobu
d9274e7d6b
* parse.y (reg_compile_gen): set error if failed to compile regexp
...
literal. [ruby-dev:31336]
* re.c (rb_reg_compile): should not use regexp which could not get
initialized. [ruby-dev:31333]
return error message to let the parser know it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-02 14:36:25 +00:00
nobu
46e848a65a
* sprintf.c (rb_f_sprintf): should not check positional number as
...
width. [ruby-core:11838]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-02 04:46:41 +00:00
nobu
12b1e59f2e
* generic.rb (URI::Generic::merge_path): behave as RFC 3986.
...
[ruby-talk:252052]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-01 03:40:08 +00:00
tadf
a16bdfdfba
* lib/date/format.rb (_parse): now interprets slashed numerical
...
dates as a big endian (except dd/mm/yyyy). [experimental]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-31 14:46:58 +00:00
akr
8721f3983d
add assertions.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-30 03:45:05 +00:00
nobu
148e522f63
* ChangeLog: typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-30 03:42:55 +00:00
nobu
798b8d2791
* bignum.c (rb_big_aref): check for Bignum index range.
...
[ruby-dev:31271]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-30 02:16:42 +00:00