Граф коммитов

16239 Коммитов

Автор SHA1 Сообщение Дата
nobu 43ba7d0058 * configure.in (mingw): checks if unicows.lib is available.
* win32/Makefile.sub (LIBS): links unicows.lib if available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-04 11:27:12 +00:00
nobu 6e7d7bf5dd * include/ruby/win32.h (WIN95): moved to config.h
* win32/Makefile.sub (config.h): defines WIN95 only if unicows.lib
  is available.

* win32/setup.mak (-unicows-): checks if unicows.lib is available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-04 10:35:28 +00:00
jeg2 f45caa14f6 * lib/csv.rb: Some minor documentation fixes from Gregory Brown.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 20:20:08 +00:00
jeg2 111c48e611 * lib/csv.rb: A patch from Madoka Yakamamoto to prevent an infinite
loop while reading some encodings.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 18:43:53 +00:00
svn 5371f5cb26 * 2009-03-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 15:57:20 +00:00
yugui 294f45b0fc * lib/prime.rb (Prime::prime?): used to return a wrong answer.
[ruby-core:22646].

* test/test_prime.rb (test_prime?): test case for [ruby-core:22646].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 15:57:15 +00:00
nobu 27cc677088 * ext/extmk.rb (extmake): removes object files no longer used and
files to be removed by old distclean.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 08:10:10 +00:00
usa dba06de110 * ext/dl/win32/lib/win32/resolv.rb: get rid of warning.
* ext/dl/lib/dl/func.rb: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 07:52:42 +00:00
nobu 2b3a204832 * ext/extmk.rb (extmake), lib/mkmf.rb (create_makefile): $objs and
$srcs are always Array or nil now.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 07:25:50 +00:00
usa 2a89c088a2 * ext/dl/win32/lib/win32/{registry,resolv}.rb: use dl/import instead
of Win32API.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 06:55:26 +00:00
usa 95189045d0 * ext/dl/lib/dl/func.rb (DL::Function.name): delegate to @cfunc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 06:54:00 +00:00
nobu 1001173ccd * ext/dl/dl.c (rb_dl_init_callbacks): autoloads callbacks.
* ext/dl/callback: split from dl.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 06:40:40 +00:00
nobu 2233d34b39 * ext/extmk.rb (extmake): initialize $objs before extrace_makefile.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 06:28:55 +00:00
nobu 91dd419efb * ext/dl/lib/dl/cparser.rb (DL::CParser::parse_signature): fixed
variable name.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 06:09:14 +00:00
nobu daa2217d48 * ext/dl/lib/dl/pack.rb (DL::PackInfo): reduced redundant
initialization.

* ext/dl/lib/dl/stack.rb (DL::Stack): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 06:07:24 +00:00
nobu 0cceff94ca * ext/dl/lib/dl/value.rb (DL::ValueUtil#wrap_arg): NULL for nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 06:05:21 +00:00
nobu f9ca2119e4 * test/dl: moved from ext/dl/test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 06:03:23 +00:00
nobu 078928bbdd * ext/extmk.rb (extmake): removes object files no longer used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 05:57:30 +00:00
nobu 91c9a4becb * common.mk (main): passes $(MAKE) to mkmain_cmd
* ext/extmk.rb (command_output): uses arguments to invoke make.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 05:53:18 +00:00
svn 8dba4cdf88 * 2009-03-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-02 16:56:45 +00:00
akr 1c2005fbf6 * lib/securerandom.rb (SecureRandom.urlsafe_base64): delete padding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-02 16:56:40 +00:00
akr 557359d170 * ext/socket/sockport.h (SS_LEN): defined unconditionally.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-02 12:39:47 +00:00
akr 8a00868c3d * ext/socket/ancdata.c (anc_inspect_socket_creds): supress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-02 12:27:33 +00:00
akr fb5d4ecfb5 * ext/socket/ancdata.c (rsock_discard_cmsg_resource): defined
unconditionally.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-02 12:14:35 +00:00
akr a36ea435d2 forgot to commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-02 12:13:00 +00:00
akr 344dcc25be * ext/socket/raddrinfo.c (addrinfo_mload): don't use "sun" variable
for Solaris.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-02 12:07:41 +00:00
akr 27475f4dec * file.c: include fcntl.h for O_RDONLY on Solaris.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-02 12:02:22 +00:00
nobu 3f0060c042 * lib/uri/common.rb (URI::Parser#escape): escaped string is ascii
only.

* lib/uri/common.rb (URI::Parser#unescape): converts bytewise.
  [ruby-dev:38005], [ruby-dev:38110]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-02 10:43:04 +00:00
nobu 5b35cbf5d3 * README.EXT, README.EXT.ja (Macros): added HAVE_RUBY_*_H.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-02 07:40:13 +00:00
nobu a8c4a7e44c * win32/win32.c (init_env): keeps wide chars as wide chars.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-02 03:22:14 +00:00
nobu 033bed37c8 * ext/dl/dl.h (dlerror): fixed on Windows.
* ext/dl/handle.c (rb_dlhandle_initialize): returns handle to
  libruby if nil is given on Windows as dlopen.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-02 02:01:48 +00:00
nobu 46e06b572b * ext/dl/handle.c (rb_dlhandle_sym): get rid of buffer overrun,
and try ASCII WINAPI versions too.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-02 01:50:56 +00:00
nobu 9fb56049eb * eval.c (rb_longjmp), include/ruby/intern.h (ruby_cleanup): fixed
prototypes.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-02 01:29:19 +00:00
svn d6802f03b8 * 2009-03-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-01 15:57:37 +00:00
seki 4104010c88 merged a patch from Alessandro Di Maria in [ruby-core:22560].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-01 15:57:33 +00:00
akr d79dc0f6a0 * ext/socket/raddrinfo.c: suppress warnings.
* ext/socket/socket.c: ditto.

* ext/socket/unixsocket.c: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-01 14:00:48 +00:00
akr 4ca8057c3e rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-01 12:59:59 +00:00
akr aa2b22bba2 * ext/socket/ (rsock_getfamily): renamed from rb_sock_getfamily.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-01 11:58:13 +00:00
nobu 895b3f6e06 * ext/dl/win32/lib/Win32API.rb (initialize): passes rest
arguments to DL.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-01 10:52:48 +00:00
nobu 2f3c15cb22 * ext/zlib/zlib.c (zstream_run): suppress a warning. a patch from
Charlie Savage at [ruby-core:22607].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-01 10:39:01 +00:00
nobu cbeec45612 * util.c (ruby_dtoa): allocates one more byte to get rid of buffer
overrun.  a patch from Charlie Savage at [ruby-core:22604].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-01 10:36:19 +00:00
nobu a6c52eec0c * common.mk (.y.c): removed extra backslash. [ruby-core:22602]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-01 10:11:00 +00:00
nobu 3465e37e63 * ext/dl/cfunc.c (rb_dlcfunc_call): fix for stdcall and missing
argument numbers.  [ruby-core:22601]

* ext/dl/dl.h (DLSTACK_PROTO0_): added.

* ext/dl/mkcallback.rb (gencallback, gen_callback_file),
  (rb_dl_init_callbacks): omit stdcall functions unless supported.

* lib/rubygems/config_file.rb (SHGetFolderPath): stdcall.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-01 10:02:06 +00:00
nobu 0fee78a198 * ext/bigdecimal/bigdecimal.c (gfDebug): uncommented out.
[ruby-core:22600]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-01 08:27:17 +00:00
nobu da9ffe378f * process.c (rb_waitpid): use wait_each() on no waitpid platforms.
[ruby-dev:38054]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-01 07:15:33 +00:00
nobu 135930e95b * process.c (proc_daemon): stops and restarts timer thread because
daemon(3) implies fork(2).  [ruby-dev:38055]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-01 07:01:03 +00:00
akr 172d208789 * ext/socket/ (rsock_make_hostent): renamed from sock_make_hostent.
(rsock_addrinfo): renamed from sock_addrinfo.
  (rsock_getaddrinfo): renamed from sock_getaddrinfo.
  (rsock_socket): renamed from ruby_socket.
  (rsock_sock_s_socketpair): renamed from sock_s_socketpair.
  (rsock_connect): renamed from ruby_connect.

* ext/socket/socket.c (sock_listen): make it static.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-01 06:48:22 +00:00
akr a6274c1e72 add a space.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-01 06:33:13 +00:00
akr c49f05dd79 * ext/socket: add rsock_prefix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-01 06:30:41 +00:00
nobu faabbf230a * test/ruby/test_path.rb (test_extname): test for r19596.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-01 05:16:14 +00:00