aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * pack.c (pack_pack): replace all rb_Float() to rb_to_float().matz2008-12-302-5/+8
| | | | | | [ruby-dev:37663] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-12-31svn2008-12-301-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_to_float): prohibit conversion from nil to float.matz2008-12-302-0/+8
| | | | | | [ruby-dev:37663] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/mkconstants.rb: use sock_define_uconst for INADDR_*akr2008-12-303-2/+24
| | | | | | | | | | | constants because Socket::INADDR_LOOPBACK should be 0x7f000001 instead of -0xffffff. * ext/socket/socket.c (sock_define_uconst): defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Imported minitest 1.3.1 r4506.ryan2008-12-303-5/+60
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c: Minor fixes and tweaks in documentation.duerst2008-12-302-76/+89
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/test/test_import.rb: fix a prototype decl.ko12008-12-302-1/+6
| | | | | | | | pointed out by Takehiro Kubo [ruby-core:20971]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_thread_blocking_region): add a comment.ko12008-12-303-1/+85
| | | | | | | | | | | | * thread.c (rb_thread_call_without_gvl): added as a alias of rb_thread_blocking_region(). * thread.c (rb_thread_call_with_gvl): added. * vm_core.h (rb_thread_t#blocking_region_buffer): added for rb_thread_call_with_gvl(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-12-30svn2008-12-291-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* properties.nobu2008-12-290-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/test/test_base.rb: add libc search logic.ko12008-12-296-33/+109
| | | | | | | | | | | | | | | | | | | | | | | | this patch is written by Takehiro Kubo. [ruby-core:20963] [Bug #932] * ext/dl/dl.h: Add ",..." as the last argument. this patch is written by Takehiro Kubo. Bug #633 [ruby-core:19289] * ext/dl/lib/dl/stack.rb: add add_padding() to calculate alignment. this patch is written by Takehiro Kubo. Bug #633 [ruby-core:19289] * ext/dl/test/test_func.rb: atof()'s return value is double. this patch is written by Takehiro Kubo. Bug #633 [ruby-core:19289] * ext/dl/test/test_import.rb: - atof()'s return value is double. - The types of qsort's second and third argument are size_t. - fprintf()'s return value is int. this patch is written by Takehiro Kubo. Bug #633 [ruby-core:19289] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_waitpid): retries waitpid when EINTR.yugui2008-12-293-5/+21
| | | | | | [ruby-core:19744]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_cstr_to_inum): changed an error message.tadf2008-12-294-3/+11
| | | | | | | | | | * complex.c (string_to_c_strict): ditto. * rational.c (string_to_r_strict): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * pack.c (pack_pack): template f should not accept non floatmatz2008-12-294-1/+24
| | | | | | | | values. [ruby-dev:37656] * object.c (rb_to_float): new function to type check floats. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (rb_f_rand): type check simplified. strings are nomatz2008-12-293-36/+26
| | | | | | | | | longer allowed for argument. [ruby-dev:37655] * test/ruby/test_rand.rb (TestRand::o.to_int): need override to_int. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/test/test_base.rb: add x86_64-linux's case again. #932yugui2008-12-291-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c: Infinity.numerator returns self. [experimental]tadf2008-12-292-0/+26
| | | | | | | | * numeric.c: Infinity.denominator returns 1. [experimental] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * man/ri.1: new manpage.yugui2008-12-292-0/+184
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* arrangementtadf2008-12-291-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * rational.c: floor, ceil, truncate and round accept an extratadf2008-12-292-16/+76
| | | | | | | | argument like Float#round. [experimental] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in (distclean-local): removes Doxyfile andyugui2008-12-292-0/+7
| | | | | | run.gdb at distclean'ing. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bin/erb: accepts options in more flexible styles.yugui2008-12-292-7/+21
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/erb.rb (ERB): m17n of ERB. adds rdoc.yugui2008-12-295-10/+370
| | | | | | | | | | | | | | | | | | | | | | fixes #712. c.f. [ruby-dev:37516]. * lib/erb.rb (ERB::Compiler#compile): recognizes magic comments. returns a pair of compiled script and its script encoding. * lib/erb.rb (ERB#set_eoutvar): make generated scripts return a string in correct encoding. * lib/erb.rb (ERB#def_method): use Kernel#eval for encoding-awareness of the evaluated string. * bin/erb.rb (ERB::Main.run): adds -E and -U options. String is no longer Enumerable. * man/erb.1: new manapage. * test/erb/test_erb_m17n.rb: new test case for m17n features. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/io/wait/wait.c (io_nread): returns number of bytes availablematz2008-12-292-0/+31
| | | | | | for read. response to feature request #936 in [ruby-core:20917]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/io/wait/wait.c (io_ready_p): updated to follow RDoc.matz2008-12-292-5/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (s_recvfrom_nonblock): revert r21162.matz2008-12-292-15/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (s_recvfrom_nonblock): fixed awesome typo.matz2008-12-292-1/+4
| | | | | | sorry. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (vm_set_eval_stack, vm_set_main_stack, vm_set_top_stack):ko12008-12-292-0/+11
| | | | | | | | check stack overflow. [ruby-dev:37646] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (s_recvfrom_nonblock): default maxlen to bematz2008-12-292-2/+13
| | | | | | | 65536. suggested by akr in [ruby-core:20918]. response to feature request #936 in [ruby-core:20917]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merges r21134 from ruby_1_9_1 into trunk.yugui2008-12-292-3/+9
| | | | | | | | * test/rubygems/test_gem_command.rb (test_add_option_overlapping_common_and_local_options): follows r21066. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in (ext-clean): ext-clean always fails.yugui2008-12-293-2/+12
| | | | | | * ext/dl/ripper/extconf.rb: adds y.output into the clean list. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_mutex_trylock): return false if Mutex ownedko12008-12-293-4/+26
| | | | | | | | | | by current thread. [ruby-core:20943] * thread.c (rb_mutex_lock): check dead lock (recursive lock) here. * test/ruby/test_thread.rb: add a test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* revert previous changes.naruse2008-12-292-22/+21
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_get_path): move encoding conversion of file pathnaruse2008-12-293-21/+29
| | | | | | | | from rb_scan_open_args. * io.c (rb_scan_open_args): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c: small RDoc fix mentioned from <radek.bulat at gmail.com>matz2008-12-282-1/+6
| | | | | | in [ruby-core:20921]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add ML index ([ruby-dev:37634]).ko12008-12-281-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (process_options): set th->base_block only whileko12008-12-282-11/+35
| | | | | | | | | | it is needed. * ruby.c (require_libraries): clear th->base_block before require libraries. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-12-29svn2008-12-281-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for OpenSSL::SSL::SSLSocket#read_nonblock.akr2008-12-281-0/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: adds the author name of a patch.yugui2008-12-281-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ext/dl/test_base.rb : add BSD's case.naruse2008-12-282-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/import.rb (DL::Importer#sizeof): followsyugui2008-12-282-1/+6
| | | | | | a feature change in 1.9. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/import.rb (DL::Importer#extern): adds filename andyugui2008-12-283-3/+23
| | | | | | | | | line number to module_eval'ing for readability of backtrace. (DL::Importer#bind): ditto. * ext/dl/lib/dl/struct.rb (DL::CStructBuilder#create): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (config.h): do not use snprintf/vsnprintf innobu2008-12-282-5/+4
| | | | | | | msvcrt. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_sprintf.rb (test_invalid): suppress warning.nobu2008-12-281-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sprintf.c: not force to override snprintf/vsnprintf.nobu2008-12-282-3/+5
| | | | | | | [ruby-core:20824] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rubygems/test_ext_configure_builder.rb (test_self_build_fail):naruse2008-12-282-1/+6
| | | | | | Extends pattern for FreeBSD's error message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * commit ChangeLogtakano322008-12-281-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Sun Dec 28 17:10:13 2008 TAKANO Mitsuhiro (takano32) <tak@no32.tk>takano322008-12-282-6/+3
| | | | | | | | | | * ext/dl/test/test_dl2.rb: modify strncpy, strcpy, qsort, types. Bug #633 [ruby-core:19289] * ext/dl/test/test_base.rb: /lib/libc.so is x86_64 binary in x86_64 architecture. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/test/test_base.rb: use libc.dylib when the platform is darwin.takano322008-12-282-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e