nobu
9644f9b572
proc.c: use predefined IDs
...
* defs/id.def (predefined): add "idProc".
* proc.c (mnew, mproc, mlambda): use predefined IDs.
* vm.c (Init_VM): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-01 02:38:44 +00:00
zzak
c322f10ad9
* lib/benchmark.rb: Update Benchmark results on newer CPU
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-30 14:19:20 +00:00
nobu
787cdae5df
proc.c: frozen core methods
...
* proc.c (mproc, mlambda): use frozen core methods instead of plain
global methods, so that methods cannot be overridden.
[ruby-core:54687] [Bug #8345 ]
* vm.c (Init_VM): define proc and lambda on the frozen core object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-30 03:31:43 +00:00
svn
e9fa3108f1
* 2013-04-30
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-30 03:30:25 +00:00
nobu
3a0641a896
intern.h: rb_block_lambda
...
* include/ruby/intern.h (rb_block_lambda): add declaration instead of
deprecated rb_f_lambda.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-30 03:30:23 +00:00
nobu
71a6870513
proc.c: remove unnecessary static function
...
* proc.c (proc_lambda): remove and use rb_block_lambda directly
instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-30 03:30:21 +00:00
nagai
df9991fe2b
* ext/tk/MANUAL_tcltklib.ja, ext/tk/old-README.tcltklib.ja: rename from *.jp to *.ja
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-29 18:33:28 +00:00
akr
e3e9c5682e
Add comments.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-29 09:01:44 +00:00
nobu
c81f5fd326
* vm.c (VM_EP_LEP): simplify infinite loop.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-29 08:44:16 +00:00
nobu
6a8808011f
* remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-29 08:06:06 +00:00
naruse
ecf017a9a0
* ext/nkf/nkf-utf8/nkf.h: Bionic libc doesn't have locale.
...
[Feature #8338 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-29 08:05:13 +00:00
nagai
fb5d3a0afc
* ext/tk/MANUAL_tcltklib.jp: rename from ext/tk/MANUAL_tcltklib.eucj [ruby-trunk - Bug #8084 ]
...
* ext/tk/old-README.tcltklib.jp: rename from ext/tk/old-README.tcltklib.eucj
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-29 00:20:56 +00:00
nobu
6fb5140dd6
ossl_bn.c: reduce alloca/malloc
...
* ext/openssl/ossl_bn.c (ossl_bn_initialize): no need of alloca for
small fixed size array.
* ext/openssl/ossl_bn.c (ossl_bn_initialize): check overflow first,
and use alloca for small size input.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-28 21:58:36 +00:00
svn
312a5a8cb4
* 2013-04-29
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-28 15:40:57 +00:00
eregon
bdc8087f33
* lib/yaml.rb: Clarify documentation about YAML being always Psych.
...
Give a tip about using Syck. See #8344 .
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-28 15:40:53 +00:00
eregon
253f49dbc2
* lib/yaml.rb: Use another trick to define the YAML module.
...
https://twitter.com/n0kada/status/328342207511801856
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-28 14:34:22 +00:00
zzak
531d47d6c1
* lib/pp.rb: Update PP module overview by @geopet
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-28 14:19:18 +00:00
shirosaki
be4aa33037
ossl_bn.c: fix ossl_bn_initialize bug with integer
...
* ext/openssl/ossl_bn.c (ossl_bn_initialize): fix buffer overflow on
x64 Windows and memory leak when initializing with integer.
[ruby-core:54615] [Bug #8337 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-28 13:20:11 +00:00
nobu
1e51f30463
test_io_console.rb: investigate hang-up
...
* test/io/console/test_io_console.rb (TestIO_Console#test_noctty):
grab error outputs and stop the loop upto 3 seconds.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-28 03:54:26 +00:00
nobu
66c0e01220
README.EXT: update note
...
* README.EXT: correct method name to be used. [Bug #7982 ]
* README.EXT.ja: add notes too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-28 03:38:27 +00:00
zzak
9ef25d883d
* object.c: With feedback from Steve Klabnik, reverted a change to
...
#untrusted? and #tainted?. Also adjusted grammar for $SAFE levels
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-28 01:35:56 +00:00
zzak
2068f3cedb
* lib/yaml.rb: Disable setting YAML const twice [ruby-core:54642]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-28 01:11:55 +00:00
zzak
6fe3e9e488
* object.c: Documentation for taint and trust [Bug #8162 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-28 00:51:46 +00:00
zzak
e731627526
* README.EXT: Copy note from r40505 for rb_sprintf() [Bug #7982 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-28 00:42:10 +00:00
zzak
7e70b8ac52
* ext/curses/curses.c: Update Curses::Window example for nicer output
...
Patch by Michal Suchanek [Bug #8121 ] [ruby-core:53520]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-27 23:30:11 +00:00
zzak
e781aeef96
* README.EXT: Update note from r40504, by Jeremy Evans [Bug #7982 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-27 23:11:19 +00:00
zzak
817dda53ed
* README.EXT: Add note to warn use of %i in Exceptions [Bug #7982 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-27 23:04:12 +00:00
akr
d7b32fb4c1
* configure.in: Fix a typo. Should check endgrent() instead of
...
endgrnam().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-27 17:48:28 +00:00
svn
8583a7df7b
* 2013-04-28
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-27 15:38:41 +00:00
akr
1a67580eb5
* process.c (obj2gid): Don't call endgrnam() if not exist.
...
Bionic (Android's libc) don't have endgrnam().
* configure.in: Check endgrnam function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-27 15:38:36 +00:00
charliesome
b5e8e33ddc
* lib/yaml.rb: add security warning to YAML documentation
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-27 14:54:37 +00:00
zzak
3e1fad843e
* lib/yaml.rb: Documentation for YAML module [Bug #8213 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-27 14:26:20 +00:00
akr
ab750920b9
* thread_pthread.c (ruby_init_stack): Add STACK_GROW_DIR_DETECTION.
...
This fixes a compilation failure while cross-compiling for Tensilica
Xtensa Processor.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-27 11:21:10 +00:00
eregon
5c1d4c2ade
* thread.c: fix typos and documentation
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-27 10:33:44 +00:00
akr
5cbc3e15d8
* sparc.c: Use __asm__ instead of asm for gcc.
...
gcc doesn't provide asm keyword if -ansi option is given.
http://gcc.gnu.org/onlinedocs/gcc/Alternate-Keywords.html
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-27 10:06:20 +00:00
akr
ef215077bc
* ext/socket/extconf.rb: Redundant test removed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-27 08:23:21 +00:00
akr
fbbd7e29e7
* ext/socket/extconf.rb (test_recvmsg_with_msg_peek_creates_fds):
...
Extracted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-27 07:00:26 +00:00
akr
d907adecd9
* internal.h (SIGNED_INTEGER_TYPE_P): New macro.
...
(SIGNED_INTEGER_MAX): Ditto.
(SIGNED_INTEGER_MIN): Ditto.
(UNSIGNED_INTEGER_MAX): Ditto.
(TIMET_MAX): Use SIGNED_INTEGER_MAX and UNSIGNED_INTEGER_MAX.
(TIMET_MIN): Use SIGNED_INTEGER_MIN.
* thread.c (TIMEVAL_SEC_MAX): Use SIGNED_INTEGER_MAX.
(TIMEVAL_SEC_MIN): Use SIGNED_INTEGER_MIN.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-27 06:52:17 +00:00
akr
e88a692a88
* thread.c (TIMEVAL_SEC_MAX, TIMEVAL_SEC_MIN): Consider environments,
...
sizeof(time_t) is smaller than sizeof(tv_sec), such as
OpenBSD 5.2 (amd64).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-27 03:30:50 +00:00
nobu
825a892330
test_syntax.rb: split test_syntax
...
* test/ruby/test_syntax.rb (test_syntax): split to improve throuthput
by reducing objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-27 00:02:21 +00:00
svn
e38b66fc98
* 2013-04-27
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-26 16:14:02 +00:00
kazu
b22fa276e9
fix typo (r40195, r40428)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-26 16:13:56 +00:00
kou
4e44eeaeb1
* lib/rexml/text.rb (REXML::Text.normalize): Fix a bug that all
...
entity filters are ignored. [ruby-dev:47278] [Bug #8302 ]
Patch by Ippei Obayashi. Thanks!!!
* test/rexml/test_entity.rb (EntityTester#test_entity_filter): Add
a test of the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-26 14:36:30 +00:00
kou
562648e48c
* lib/rexml/element.rb (REXML::Attributes#to_a): Support
...
namespaced attributes. [ruby-dev:47277] [Bug #8301 ]
Patch by Ippei Obayashi. Thanks!!!
* test/rexml/test_attributes.rb
(AttributesTester#test_to_a_with_namespaces): Add a test of the
above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-26 13:56:34 +00:00
kou
b486e50434
* lib/rss/atom.rb (RSS::Atom::Entry): Fix indent of document comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-26 12:48:59 +00:00
kou
2df0d9a181
* lib/rss/maker.rb (RSS::Maker): Fix indent of document comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-26 12:21:45 +00:00
akr
56e982d447
* ext/socket/extconf.rb: Use a block of enable_config() for
...
--{enable,disable}-close-fds-by-recvmsg-with-peek configure option
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-26 09:42:14 +00:00
akr
847fe27e31
* dir.c (dir_set_pos): Fix a compilation error when seekdir() is not
...
exist.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-26 09:16:14 +00:00
akr
6d2662d45a
add comments.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-26 08:45:02 +00:00
akr
ed9e1f9ad9
* thread_pthread.c (ruby_init_stack): Add STACK_GROW_DIR_DETECTION.
...
This fixes a compilation failure while cross-compiling for ARM.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-26 08:43:37 +00:00