nobu
54062fed11
* parse.y (newline_node): set line from outermost node before removing
...
NODE_BEGIN. [ruby-dev:32406]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-30 18:30:49 +00:00
nobu
a57d0b0926
* parse.y (stmt): remove unnecessary NODE_BEGIN. [ruby-core:13814]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-29 07:59:12 +00:00
nobu
b76bf9f66f
* bignum.c (rb_big2str0): do not clobber space for sign.
...
* sprintf.c (remove_sign_bits): extends sign bit first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-28 00:51:44 +00:00
matz
641be733a6
* object.c (nil_plus): remove unused function. [ruby-core:13737]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-20 16:18:05 +00:00
nobu
449873048f
* lib/mkmf.rb (String#tr_cpp): make preprocessor identifiers.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-18 00:09:50 +00:00
suke
017429c76c
ext/win32ole/win32ole.c (ole_invoke): bug fix. [ruby-talk:279100]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-17 05:25:09 +00:00
nobu
d8d2fe124a
* lib/yaml/rubytypes.rb (String#is_binary_data?): use Integer#fdiv.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-16 02:16:43 +00:00
matz
2d1ccd3826
* lib/cgi/session.rb (CGI::Session::FileStore::restore): use
...
lockfile for exclusive locks. a patch from <tommy AT tmtm.org>.
[ruby-dev:32296]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-15 09:17:58 +00:00
nobu
349377aab4
* numeric.c (round): fallback definition.
...
* numeric.c (flo_divmod, flo_round): use round() always.
[ruby-dev:32269]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-13 16:34:45 +00:00
shyouhei
9bb7c21970
* numeric.c (flo_divmod): round to the nearest integer. [ ruby-Bugs-14540 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-12 18:41:31 +00:00
matz
8343f008c1
* misc/ruby-mode.el (ruby-parse-partial): handle stringified
...
symbols properly using ruby-forward-string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-12 04:55:19 +00:00
matz
01b0b42333
* random.c: update MT URL.[ruby-core:13305].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-08 22:29:09 +00:00
matz
1be73cbce9
* lib/rexml/encodings/SHIFT-JIS.rb (REXML::Encoding): place -x for
...
nkf conversion. a patch from <moonwolf AT moonwolf.com>.
[ruby-dev:32183]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-06 18:37:49 +00:00
matz
308f4f2df2
* parse.y (call_args): remove "parenthesize argument(s) for future
...
version" warning. when I added this warning, I had a plan to
reimplement the parser that is simpler than the current one.
since we abandoned the plan, warning no longer required.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-04 16:28:11 +00:00
matz
35c9feaeb7
* array.c (rb_ary_assoc): check and convert inner arrays (assocs)
...
using #to_ary.
* hash.c (rb_hash_s_create): check and convert argument hash
using #to_hash.
* hash.c (rb_hash_s_create): Hash#[] now takes assocs as source of
hash conversion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-02 06:30:26 +00:00
nobu
92d83c9354
* numeric.c (fix_pow): returns infinity for 0**-1. [ruby-dev:32084]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-26 08:01:41 +00:00
nobu
42cff90a29
* io.c (rb_io_tell, rb_io_seek): check errno too. [ruby-dev:32093]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-25 05:19:33 +00:00
kou
57a639494a
* lib/rss.rb, lib/rss/, test/rss/, sample/rss/: merged from trunk.
...
- 0.1.6 -> 2.0.0.
- fixed image module URI. Thanks to Dmitry Borodaenko.
- supported Atom.
- supported ITunes module.
- supported Slash module.
* NEWS: added an entry for RSS Parser.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-21 12:19:43 +00:00
nobu
d95e0da764
* marshal.c (r_bytes0): check if source has enough data.
...
[ruby-dev:32054]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-15 00:58:09 +00:00
nobu
f31e0ec7fc
* win32/mkexports.rb: deal with __fastcall name decorations.
...
[ruby-list:44111]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-13 18:55:54 +00:00
matz
27158958fa
* lib/rexml/source.rb (REXML::SourceFactory::SourceFactory): typo
...
fixed. [ruby-list:44099]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-12 15:36:00 +00:00
matz
a6ea67016c
* re.c (match_values_at): make #select to be alias to #values_at
...
to adapt RDoc description. [ruby-core:12588]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-12 14:36:02 +00:00
usa
7adaab39da
* 2007-10-11
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-11 05:34:58 +00:00
matz
015014380b
* string.c (rb_str_to_i): update RDoc since base can be any value
...
between 2 and 36. [ruby-talk:272879]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-06 14:17:55 +00:00
knu
7b55a1e2ae
2007-10-05
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-05 06:58:18 +00:00
usa
b5aaf376b0
* win32/win32.c (init_env): initialize HOME and USER environment
...
variables unless set. [ruby-core:12328] (merge from trunk)
* win32/win32.c (NtInitialize, getlogin): ditto.
* configure.in, win32/Makefile.sub (LIBS): need to link shell32
library for SH* functions on mswin32 and mingw32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-02 12:18:35 +00:00
matz
ac7497416d
* eval.c (remove_method): should not remove undef place holder.
...
[ruby-dev:31817]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-01 13:44:21 +00:00
nobu
8ca32b6e6e
* parse.y (yyerror): limit error message length. [ruby-dev:31848]
...
* regex.c (re_mbc_startpos): separated from re_adjust_startpos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-25 20:12:19 +00:00
nobu
7522f72276
* gc.c (os_obj_of, os_each_obj): hide objects to be finalized.
...
[ruby-dev:31810]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-23 00:05:07 +00:00
nobu
cfea253c0f
* ext/stringio/stringio.c (strio_init): separate from strio_initialize
...
to share with strio_reopen properly. [ruby-Bugs-13919]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-21 20:19:51 +00:00
nobu
b21b9a46cf
* string.c (str_alloc): defaults to null_str instead of NULL.
...
[ruby-dev:31774]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-20 16:46:21 +00:00
nobu
d74f74a4b0
* process.c (rb_detach_process): cast for the platforms where size of
...
pointer differs from size of int.
* process.c (rb_f_exec, rb_f_system): should not exceptions after
fork. [ruby-core:08262]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-20 08:25:00 +00:00
matz
1232fd4a9b
* ruby.c (proc_options): -W should be allowed in RUBYOPT
...
environment variable. [ruby-core:12118]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-12 14:17:33 +00:00
matz
416695adff
* range.c (range_step): fixed integer overflow. [ruby-dev:31763]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-09 16:10:50 +00:00
matz
64ec051588
* struct.c (rb_struct_s_members): should raise TypeError instead
...
of call rb_bug(). [ruby-dev:31709]
* marshal.c (r_object0): no nil check require any more.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-08 01:22:58 +00:00
matz
bf0c93851a
* string.c (rb_str_splice): integer overflow for length.
...
[ruby-dev:31739]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-05 13:18:23 +00:00
suke
1e0687444c
* ext/win32ole/win32ole.c: add WIN32OLE#ole_activex_initialize.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-31 23:19:16 +00:00
nobu
ac56065357
* configure.in (group_member): check if presents.
...
* configure.in (XCFLAGS): add _GNU_SOURCE on linux.
* file.c (group_member): use system routine if available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-30 04:10:59 +00:00
shyouhei
66778c6699
* include/ruby/defines.h (flush_register_windows): call "ta 0x03"
...
even on Linux/Sparc. [ruby-dev:31674]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-29 04:06:09 +00:00
suke
763e41cbca
* ext/win32ole/win32ole.c (ole_type_progid, reg_enum_key,
...
reg_get_val, ole_wc2mb): fix the bug. Thanks, arton.
[ruby-dev:31576]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-28 14:16:24 +00:00
matz
03785cd9b1
* ext/etc/etc.c (etc_getlogin): update documentation to note
...
security issue. [ruby-Bugs-11821]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-27 10:16:25 +00:00
nobu
7ddb8fc76b
* hash.c (st_foreach_func, rb_foreach_func): typedefed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-21 04:57:06 +00:00
matz
9a19613e43
* eval.c (mnew): should preserve noex as safe_level.
...
* eval.c (rb_call0): tighten security check condition..
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-20 08:28:04 +00:00
nobu
2e752da616
* sample/test.rb, test/ruby/test_system.rb(valid_syntax?): keep
...
comment lines first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-18 03:24:32 +00:00
nobu
49fe6e0843
* configure.in (aix): enable shared by default.
...
* configure.in (aix): for 64bit-mode AIX. [ruby-dev:31401]
+ use CC for LDSHARED if non-gcc,
+ moved -G option from *LDFLAGS to LDSHARED,
+ set -brtl only in XLDFLAGS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-16 07:46:11 +00:00
nobu
f2859bfb03
* hash.c (rb_hash_delete_key): delete the entry without calling block.
...
* hash.c (rb_hash_shift): should consider iter_lev too.
* hash.c (delete_if_i): use rb_hash_delete_key() so that the block
isn't called twice. [ruby-core:11556]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-15 04:50:12 +00:00
nobu
ecf6101e9b
* configure.in (ac_cv_func_isinf): set yes also on OpenSolaris.
...
[ruby-Bugs-12859]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-07 03:45:15 +00:00
nobu
e1fac13c2b
* lib/mkmf.rb: more verbose message. [ruby-Bugs-12766]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-02 21:17:37 +00:00
nobu
1a606a89a7
* 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/branches/ruby_1_8@12861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-02 04:46:41 +00:00
nobu
95ddfca802
* bignum.c (rb_big_aref): check for Bignum index range.
...
[ruby-dev:31271]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-30 02:16:42 +00:00