yugui
ebabbc6cb9
Doxygen comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-29 13:39:44 +00:00
yugui
3c65e0262b
* vm_eval.c (rb_call0): gets rid of checking method cache twice.
...
* method.h (rb_get_method_entry): added a prototype of the function.
(rb_method_entry_without_cache): more friendly name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-29 11:42:53 +00:00
nobu
be41711465
* lib/tmpdir.rb (Dir.mktmpdir): rolled back r24699. [ruby-dev:39193]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-29 03:16:56 +00:00
nobu
2235d504b7
* lib/tmpdir.rb (Dir.mktmpdir): removed thread race condition.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-28 18:27:30 +00:00
svn
f6bed84425
* 2009-08-29
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-28 18:11:53 +00:00
nobu
c2a81f31ef
* lib/tempfile.rb (Tempfile#make_tmpname): removed thread race
...
condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-28 18:11:37 +00:00
knu
c6c6ab873e
* lib/tempfile.rb (Tempfile#callback): Debug information should be
...
output to stderr, not stdout; pointed out by akira yamada.
cf. [ruby-dev:39072]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-28 11:41:13 +00:00
suke
83c5ebaecb
* ext/win32ole/win32ole.c: use SafeStringValue instead of
...
Check_SafeStr.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-28 11:38:57 +00:00
usa
12a4e27f17
* thread.c (do_select): rollback r24680. void struct initializer is
...
invalid.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-28 04:35:29 +00:00
nobu
fcf88c1b8d
* method.h (rb_method_definition_t): split from rb_method_entry_t
...
to deal aliases. [ruby-dev:39165]
* proc.c (struct METHOD): contains rb_method_entry_t copy.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-28 02:45:41 +00:00
nobu
a2f378737f
* vm_core.h ({GET,INC}_VM_STATE_VERSION): moved from vm_insnhelper.h.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-28 01:21:45 +00:00
nobu
afb957b129
* proc.c (rb_method_entry_arity): fixed indent.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-28 00:45:27 +00:00
nobu
1612ad9d32
* iseq.c (iseq_mark): skip outdated cache entries.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-28 00:34:12 +00:00
nobu
b587368d71
* iseq.c (iseq_mark): made invariant expressions constant references.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-28 00:31:01 +00:00
svn
5a59808e46
* 2009-08-28
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-27 22:29:19 +00:00
matz
c9775b0382
* enumerator.c (next_i): typo fixed (reached at end -> reached an
...
end). pointed out by James Edward Gray II at LoneStar RubyConf.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-27 22:28:15 +00:00
nobu
84255e0485
* vm_method.c (rb_remove_method_id): exported.
...
* numeric.c (num_sadded): fix for non-ascii method name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-27 09:31:11 +00:00
naruse
a20bd463a8
* re.c (rb_reg_preprocess_dregexp): set encoding as ASCII-8BIT
...
when /n is specified and the embeded string is escaped text.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-27 06:10:30 +00:00
nobu
f9be12fb14
* ruby.c (ruby_init_loadpath_safe): suppressed warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-27 04:55:55 +00:00
nobu
9460fd0ee0
* random.c (random_rand): random integer can be a fixnum for
...
bignum range. [ruby-dev:39173]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-27 04:51:19 +00:00
nobu
fec3877e8d
* thread.c (do_select): suppress warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 23:18:49 +00:00
nobu
2ef382231f
* ext/strscan/strscan.c (strscan_set_string): set string should not be
...
dupped or frozen, because freezing it causes #concat method failure,
and unnecessary to dup without freezing. a patch from Aaron
Patterson at [ruby-core:25145].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 23:16:40 +00:00
naruse
6cd8f907cf
* Makefile.in (enc/unicode/name2ctype.kwd):
...
remove rules to generate name2ctype.kwd from
UnicodeData.txt and Scripts.txt.
if you want to generate, use tool/enc-unicode.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 17:08:34 +00:00
naruse
6e6a28183a
* unicode.c (PROPERTY_NAME_MAX_SIZE): use MAX_WORD_LENGTH.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 17:01:10 +00:00
svn
782fec1de4
* 2009-08-27
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 15:00:07 +00:00
nobu
2981448f33
* random.c (random_rand): refined error message.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 15:00:00 +00:00
nobu
31875e97b4
* random.c (random_rand): fixed for edge cases of ranges.
...
[ruby-dev:39166]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 14:58:44 +00:00
nobu
0170c2fc4d
* lib/tempfile.rb: fixed typos.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 13:36:28 +00:00
naruse
addd2cb06e
* lib/tempfile.rb: add documents from Hongli Lai's fork.
...
cf [ruby-core:25131].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 12:50:57 +00:00
naruse
232978b031
* tool/mkconfig.rb (program_transform_name): fix for multiple trans
...
rules for autoconf 2.61 or earlier.
* tool/rbinstall.rb (program_transform_name): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 10:56:55 +00:00
nobu
9676023607
* random.c (random_rand): unified random_int and random_float.
...
[ruby-dev:39158]. and fixes [ruby-core:24655], [ruby-core:24677],
[ruby-core:24679].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 10:20:30 +00:00
nobu
47a1a7b67d
* test/test_tempfile.rb: merged from Hongli Lai's fork.
...
cf [ruby-core:25131].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 10:00:03 +00:00
nobu
ffd0da0333
* lib/tempfile.rb (Tempfile#close!): should not undefine finalizer
...
by just unlink.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 09:49:28 +00:00
nobu
c6defbf310
* tool/mkconfig.rb (program_transform_name): fix for autoconf 2.61
...
or earlier.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 08:00:37 +00:00
nobu
0c86e8b70b
* method.c (rb_method_entry_t): body.proc should be marked.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 06:26:08 +00:00
nobu
ba7a870a89
* lib/tempfile.rb (Tempfile#close!, Tempfile#path): added side
...
notes from Hongli Lai's fork.
* lib/tempfile.rb (Tempfile#unlink, Tempfile.callback): do nothing
any more once unlinked.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 05:34:47 +00:00
nobu
d4e85c416d
* lib/tempfile.rb (Tempfile#unlink): reverted r23494, since the
...
usage in RubyInline is considered wrong.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 04:48:38 +00:00
nobu
b6cf785119
* vm.c (collect_local_variables_in_env): skips internal variables.
...
[ruby-core:25125]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 03:37:08 +00:00
nobu
1af43ae867
* enc/unicode.c (onigenc_unicode_mbc_case_fold): balanced braces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-26 00:48:49 +00:00
nobu
1fd7f2e57d
* enc/unicode/name2ctype.h: updated.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-25 21:54:03 +00:00
nobu
009fbbaada
* enc/unicode/*.txt, tool/enc-unicode.rb: properties.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-25 20:24:34 +00:00
svn
781da600a9
* 2009-08-26
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-25 16:15:49 +00:00
naruse
f1eff95745
Update Oniguruma's UnicodeData to 5.1.
...
* tool/enc-unicode.rb: added for generate name2ctype.kwd.
contributed by Run Paint Run Run [ruby-core:24775]
use like following:
ruby19 tool/enc-unicode.rb enc/unicode/UnicodeData.txt \
enc/unicode/Scripts.txt > enc/unicode/name2ctype.kwd
* enc/unicode.c (CodeRanges): move definitions to name2ctype.h.
* enc/unicode/name2ctype.h.blt, enc/unicode/name2ctype.kwd,
enc/unicode/name2ctype.src: updated to v5.1.
* enc/unicode/UnicodeData.txt, enc/unicode/Scripts.txt: added v5.1.
* Makefile.in: add rule to generate name2ctype.kwd from
UnicodeData.txt and Scripts.txt.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-25 16:15:38 +00:00
naruse
649f648ec1
Fix for Linux compatibility
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-25 14:33:11 +00:00
naruse
0fd1688bf5
Set 'mkdir -p' to MKDIR_P when AC_PROG_MKDIR_P doesn't set MKDIR_P.
...
* configure.in (MKDIR_P): Set 'mkdir -p' to MKDIR_P
when AC_PROG_MKDIR_P doesn't set MKDIR_P.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-25 13:36:32 +00:00
nobu
ebbe19e1ad
* random.c (rand_init, random_load): use already defined macro.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-25 09:21:39 +00:00
nobu
8e6ea3712b
* bignum.c (rb_big_clone, bigmul1_normal, bigdivrem): trivial
...
optimization.
* bignum.c (big2dbl): truncates zero digits to get rid of possible
underflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-25 08:38:28 +00:00
nobu
7734d17849
* Makefile.in (enc/unicode/name2ctype.h): explicitly ignores the
...
result of diff and turns -e option off, because *BSD make passes
it by default.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-25 03:22:30 +00:00
nobu
b55c4210ef
* Makefile.in (enc/unicode/name2ctype.h): explicitly ignores the
...
result of diff.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-25 02:42:55 +00:00
nobu
24dc34e3f4
* configure.in (DLDFLAGS): use linker_flag and changed undefined
...
and multiply_defined behaviors. cf [ruby-core:25086].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-24 17:16:40 +00:00