nobu
fe80dd73b9
* util.c (valid_filename): use O_EXCL to get rid of clobbering
...
existing files in race conditions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-23 18:53:00 +00:00
nobu
23ac9d7035
* 2008-02-23
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-23 02:52:38 +00:00
nobu
80e81d283d
* enc/{depend,make_encdb.rb,trans/make_transdb.rb}: sort in alpha-numeric order.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-22 00:07:23 +00:00
matz
ca22f3e168
* io.c (rb_f_putc): invoke stdout method so that redefining putc
...
may take effect. [ruby-talk:291844]
* io.c (rb_f_puts): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-21 07:47:12 +00:00
nobu
e16fddf1a9
* configure.in (RPATHFLAG): -R option of HP-UX ld is not for runtime
...
load path. [ruby-list:44600]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-20 15:01:36 +00:00
usa
f761aacdd8
* io.c (open_key_args): set arg->io even if no options passed.
...
[ruby-dev:33072]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-20 01:09:21 +00:00
nobu
b81a66d1ef
* eval.c (ruby_exec_node): no thread starts inside iseq compilation.
...
* eval.c (rb_f_raise): skip current control frame. [ruby-core:15589]
* insns.def (opt_div): raise as the ordinary method. [ruby-core:15589]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-19 02:14:14 +00:00
usa
57ae6ad003
* 2008-02-18
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-17 17:00:09 +00:00
usa
5b461c6996
* win32/resource.rb: made version infos confirm to OS spec.
...
* {bcc32,win32}/Makefile.sub (*.rc): add dependency.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-16 18:16:21 +00:00
nobu
9c0be2d516
* range.c (rb_range_beg_len): check if responds to "begin" and "end"
...
methods for non-Range object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-15 15:21:51 +00:00
nobu
82f631ac57
* configure.in (sigsetmask): check when signal semantics is not POSIX.
...
* signal.c (USE_TRAP_MASK): set true if sigprocmask or sigsetmask is
available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-14 17:40:56 +00:00
nobu
c9c655bf2c
* common.mk (INSTRUBY_ARGS): pass mode to install. [ruby-dev:33766]
...
* instruby.rb (parse_args): added --data-mode and --prog-mode options.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-13 15:49:56 +00:00
nobu
8a87655162
* parse.y (arg_add_gen): removed since identical to arg_append_gen.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-12 16:23:02 +00:00
matz
0472db84c5
* range.c (range_include): specialize single character string
...
case (e.g. (?a ..?z).include(?x)) for performance.
[ruby-core:15481]
* string.c (rb_str_upto): specialize single character case.
* string.c (rb_str_hash): omit coderange scan for performance.
* object.c (rb_check_to_integer): check Fixnum first.
* object.c (rb_to_integer): ditto.
* string.c (rb_str_equal): inline memcmp to avoid unnecessary
rb_str_comparable().
* parse.y (rb_intern2): use US-ASCII encoding.
* parse.y (rb_intern_str): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-11 17:46:52 +00:00
mame
65753a5838
* test/ruby/test_pack.rb: fix tests for 64bit CPU.
...
* test/ruby/test_bignum.rb: ditto.
* test/ruby/test_file_exhaustive.rb: ditto.
* test/ruby/test_integer.rb: ditto.
* test/ruby/test_time.rb: ditto.
* test/ruby/test_numeric.rb: ditto.
* test/ruby/test_fixnum.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-10 21:52:25 +00:00
nobu
c12b289362
* {bcc32,win32,wince}/Makefile.sub (MISSING): added cbrt.obj.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-10 06:07:31 +00:00
nobu
8bc75b5bb0
* lib/irb.rb (IRB::Irb::eval_input): rescues Interrupt and other than
...
SystemExit and SignalException. [ruby-core:15359]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-08 15:44:54 +00:00
mame
2bef7dece1
* test/ruby/test_hash.rb: follow the change of Hash#flatten.
...
* test/ruby/test_time.rb: add tests to achieve over 70% test coverage
of time.c.
* test/ruby/test_prec.rb: ditto over 90% for prec.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-07 15:09:12 +00:00
matz
5a8d5c873b
* ext/nkf/nkf-utf8/nkf.c (nkf_enc_from_index): BINARY does not
...
have in-bound encoding index.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-07 00:06:55 +00:00
mame
a73ec67e8d
* hash.c (env_rassoc): remove access to free'd environment on mswin32.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-05 15:25:35 +00:00
nobu
f0cc22e990
* lib/mkmf.rb (INSTALL_DIRS, install_dirs): added BINDIR.
...
* lib/mkmf.rb (install_files): rejects files matching to
$NONINSTALLFILES.
* lib/mkmf.rb (init_mkmf): defaults $NONINSTALLFILES to backup and
temporary filse.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-05 02:14:17 +00:00
matz
50f6e01b44
* lib/cgi.rb (CGI::QueryExtension::[]): no more transition
...
extend(CGI::Value). a patch from <tommy AT tmtm.org> in
[ruby-dev:33583].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-04 00:02:53 +00:00
nobu
3940857f2b
* configure.in (darwin): disabled fat-binary support which confuses
...
configure much, since ``universal'' implies hidden cross-compiling.
TODO: ruby and libruby.bundle might be possible to bound with `lipo'
after builds for each archs. Anyway, config.h and rbconfig.rb must
be separated definitely at least.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-02 00:53:41 +00:00
usa
12f3bcfcab
* 2008-02-01
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-01 02:48:33 +00:00
usa
a1c42c017a
* 2008-01-31
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-30 15:40:49 +00:00
usa
5a674ddca6
* 2008-01-30
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-29 15:19:31 +00:00
nobu
f7ed47355e
* misc/ruby-mode.el (ruby-mode-set-encoding): updates magic comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-28 15:10:02 +00:00
nobu
7c69f166bd
* parse.y (parser_set_encode): check if encoding is ASCII compatible.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-27 15:39:14 +00:00
usa
665e571839
* 2008-01-26
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-25 15:34:25 +00:00
nobu
5f010f7299
* */*.bat: set svn:mime-type to text/batch.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-25 01:32:00 +00:00
usa
3ef86ffdfe
* 2008-01-24
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-23 15:46:17 +00:00
matz
105a669631
* eval_method.c (rb_export_method): set ruby_vm_redefined_flag for
...
visibility change as well. reported by K.Kosako in
http://d.hatena.ne.jp/kkos/20080122#1201012720 .
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-23 01:20:51 +00:00
mame
b3ee6f9718
* test/ruby/test_bignum.rb: add tests for bignum.c.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-21 15:46:48 +00:00
nobu
ea64014c56
* string.c (rb_str_each_char): advance offset before get next char
...
length. [ruby-dev:33211]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-20 18:45:51 +00:00
usa
caa539f2a3
* thread_win32.c (w32_wait_events): shouldn't invoke interrupt handle
...
by timer_thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-18 15:15:40 +00:00
nobu
fe3987ae96
* ext/stringio/stringio.c (strio_init): use default external encoding
...
if nothing is given. a patch from sheepman <sheepman AT
sheepman.sakura.ne.jp> in [ruby-dev:33159].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-17 15:03:56 +00:00
nobu
ce2652c9d4
* include/ruby/intern.h (rb_str_tmp_new, rb_str_shared_replace):
...
prototype moved.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-16 03:51:32 +00:00
matz
fa246559d2
* io.c (appendline): specifying limit should not generate broken
...
byte sequence. strings should be rounded. [ruby-dev:33088]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-14 15:07:49 +00:00
matz
c884219d96
* ruby.1: a patch to describe --encoding. a patch from Yugui
...
<yugui AT yugui.sakura.ne.jp> in [ruby-dev:33079].
* ruby.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-14 07:10:22 +00:00
matz
e699dda504
* enc/make_encdb.rb: should work on Ruby 1.8. [ruby-dev:33069]
...
* common.mk (encdb.h): pass enc dir from outside to make_encdb.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-12 16:55:33 +00:00
usa
603f9304b2
* 2008-01-12
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-11 22:28:37 +00:00
matz
d17bcfc802
* thread.c (rb_mutex_unlock): proper error message for unlocking
...
mutex that is not locked. a patch from Yusuke ENDOH
<mame at tsg.ne.jp> in [ruby-dev:33010].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-10 16:12:32 +00:00
matz
81064a7688
* io.c (rb_io_binmode): should not alter encoding. [ruby-dev:32918]
...
* io.c (io_read_encoding): need not to return ASCII-8BIT for
binary IO.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-09 17:44:13 +00:00
matz
251dec5cf1
* string.c (rb_enc_cr_str_buf_cat): do not recalculate coderange
...
value if it's given from outside.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-09 04:07:11 +00:00
usa
6a1a57d13b
* 2008-01-08
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-08 00:06:38 +00:00
usa
ee6abe3252
* 2008-01-07
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-07 00:16:09 +00:00
usa
84a92191e3
* 2008-01-06
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-06 01:57:17 +00:00
nobu
8638ee26e7
* include/ruby/intern.h, re.c (rb_reg_new): keep interface same as
...
1.8. [ruby-core:14583]
* include/ruby/intern.h, re.c (rb_reg_new_str): renamed, and defines
HAVE_RB_REG_NEW_STR macro to tell if it is available.
* include/ruby/encoding.h (rb_enc_reg_new): added.
* insns.def (toregexp), marshal.c (r_object0): use rb_reg_new_str().
* re.c (rb_reg_regcomp, rb_reg_s_union): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-04 16:30:33 +00:00
matz
52ed8c4edd
* include/ruby/oniguruma.h: Oniguruma 1.9.1 merged.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-03 15:55:04 +00:00
usa
499bc93a42
* 2007-01-03
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-03 01:47:18 +00:00