1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ruby.c (proc_options): should not adjust argc/argv if -e option

is supplied.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2001-09-05 06:53:33 +00:00
parent dabb7728c6
commit 0986c82926
8 changed files with 39 additions and 23 deletions

View file

@ -2,6 +2,11 @@ Mon Sep 3 20:26:08 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
* intern.h (rb_find_file_ext): changed from rb_find_file_noext().
Mon Sep 3 15:12:49 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
* ruby.c (proc_options): should not adjust argc/argv if -e option
is supplied.
Mon Sep 3 14:38:24 2001 WATANABE Hirofumi <eban@ruby-lang.org>
* eval.c (rb_f_require): should check static linked libraries
@ -104,6 +109,12 @@ Fri Aug 17 00:49:51 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (parse_regx): handle backslash escaping of delimiter here.
Thu Aug 16 23:03:40 2001 Koji Arai <JCA02266@nifty.ne.jp>
* io.c: prevent recursive malloc calls on NEC UX/4800.
* ext/socket/socket.c: ditto.
Thu Aug 16 19:53:19 2001 Akinori MUSHA <knu@iDaemons.org>
* lib/resolv.rb, lib/resolv-replace.rb: Copy from 1.7.

View file

@ -450,8 +450,8 @@ s_recvfrom(sock, argc, argv, from)
str = rb_tainted_str_new(0, NUM2INT(len));
rb_thread_wait_fd(fd);
retry:
rb_thread_wait_fd(fd);
TRAP_BEG;
RSTRING(str)->len = recvfrom(fd, RSTRING(str)->ptr, RSTRING(str)->len, flags,
(struct sockaddr*)buf, &alen);
@ -467,7 +467,6 @@ s_recvfrom(sock, argc, argv, from)
#if EAGAIN != EWOULDBLOCK
case EAGAIN:
#endif
rb_thread_wait_fd(fd);
goto retry;
}
rb_sys_fail("recvfrom(2)");
@ -1066,9 +1065,13 @@ s_accept(class, fd, sockaddr, len)
rb_secure(3);
retry:
rb_thread_wait_fd(fd);
#if defined(_nec_ews)
fd2 = accept(fd, sockaddr, len);
#else
TRAP_BEG;
fd2 = accept(fd, sockaddr, len);
TRAP_END;
#endif
if (fd2 < 0) {
switch (errno) {
case EMFILE:
@ -1085,7 +1088,6 @@ s_accept(class, fd, sockaddr, len)
#if EAGAIN != EWOULDBLOCK
case EAGAIN:
#endif
rb_thread_wait_fd(fd);
goto retry;
}
rb_sys_fail(0);

View file

@ -2233,7 +2233,7 @@ class TkObject<TkKernel
def cget(slot)
case slot
when 'text', 'label', 'show', 'data', 'flie'
when 'text', 'label', 'show', 'data', 'file'
tk_call path, 'cget', "-#{slot}"
else
tk_tcl2ruby tk_call path, 'cget', "-#{slot}"
@ -2273,7 +2273,7 @@ class TkObject<TkKernel
else
if slot
case slot
when 'text', 'label', 'show', 'data', 'flie'
when 'text', 'label', 'show', 'data', 'file'
conf = tk_split_simplelist(tk_send('configure', "-#{slot}") )
else
conf = tk_split_list(tk_send('configure', "-#{slot}") )
@ -2285,7 +2285,7 @@ class TkObject<TkKernel
conf = tk_split_simplelist(conflist)
conf[0] = conf[0][1..-1]
case conf[0]
when 'text', 'label', 'show', 'data', 'flie'
when 'text', 'label', 'show', 'data', 'file'
else
if conf[3]
if conf[3].index('{')

View file

@ -876,7 +876,7 @@ class TkPhotoImage<TkImage
def cget(option)
case option
when 'data', 'flie'
when 'data', 'file'
tk_send 'cget', option
else
tk_tcl2ruby tk_send 'cget', option

View file

@ -279,7 +279,7 @@ class TkText<TkTextWin
def tag_cget(tag, key)
case key
when 'text', 'label', 'show', 'data', 'flie'
when 'text', 'label', 'show', 'data', 'file'
tk_call @path, 'tag', 'cget', tag, "-#{key}"
else
tk_tcl2ruby tk_call @path, 'tag', 'cget', tag, "-#{key}"
@ -308,7 +308,7 @@ class TkText<TkTextWin
def tag_configinfo(tag, key=nil)
if key
case key
when 'text', 'label', 'show', 'data', 'flie'
when 'text', 'label', 'show', 'data', 'file'
conf = tk_split_simplelist(tk_send('tag','configure',tag,"-#{key}"))
else
conf = tk_split_list(tk_send('tag','configure',tag,"-#{key}"))
@ -320,7 +320,7 @@ class TkText<TkTextWin
conf = tk_split_simplelist(conflist)
conf[0] = conf[0][1..-1]
case conf[0]
when 'text', 'label', 'show', 'data', 'flie'
when 'text', 'label', 'show', 'data', 'file'
else
if conf[3]
if conf[3].index('{')
@ -712,7 +712,7 @@ class TkTextTag<TkObject
def cget(key)
case key
when 'text', 'label', 'show', 'data', 'flie'
when 'text', 'label', 'show', 'data', 'file'
tk_call @t.path, 'tag', 'cget', @id, "-#{key}"
else
tk_tcl2ruby tk_call @t.path, 'tag', 'cget', @id, "-#{key}"
@ -896,7 +896,7 @@ class TkTextWindow<TkObject
def cget(slot)
case slot
when 'text', 'label', 'show', 'data', 'flie'
when 'text', 'label', 'show', 'data', 'file'
tk_call @t.path, 'window', 'cget', @index, "-#{slot}"
else
tk_tcl2ruby tk_call @t.path, 'window', 'cget', @index, "-#{slot}"
@ -947,7 +947,7 @@ class TkTextWindow<TkObject
def configinfo(slot = nil)
if slot
case slot
when 'text', 'label', 'show', 'data', 'flie'
when 'text', 'label', 'show', 'data', 'file'
conf = tk_split_simplelist(tk_call @t.path, 'window', 'configure',
@index, "-#{slot}")
else
@ -962,7 +962,7 @@ class TkTextWindow<TkObject
conf = tk_split_simplelist(conflist)
conf[0] = conf[0][1..-1]
case conf[0]
when 'text', 'label', 'show', 'data', 'flie'
when 'text', 'label', 'show', 'data', 'file'
else
if conf[3]
if conf[3].index('{')
@ -1017,7 +1017,7 @@ class TkTextImage<TkObject
def cget(slot)
case slot
when 'text', 'label', 'show', 'data', 'flie'
when 'text', 'label', 'show', 'data', 'file'
tk_call @t.path, 'image', 'cget', @index, "-#{slot}"
else
tk_tcl2ruby tk_call @t.path, 'image', 'cget', @index, "-#{slot}"
@ -1046,7 +1046,7 @@ class TkTextImage<TkObject
def configinfo(slot = nil)
if slot
case slot
when 'text', 'label', 'show', 'data', 'flie'
when 'text', 'label', 'show', 'data', 'file'
conf = tk_split_simplelist(tk_call @t.path, 'image', 'configure',
@index, "-#{slot}")
else
@ -1061,7 +1061,7 @@ class TkTextImage<TkObject
conf = tk_split_simplelist(conflist)
conf[0] = conf[0][1..-1]
case conf[0]
when 'text', 'label', 'show', 'data', 'flie'
when 'text', 'label', 'show', 'data', 'file'
else
if conf[3]
if conf[3].index('{')

2
io.c
View file

@ -27,7 +27,7 @@
# define NO_LONG_FNAME
#endif
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(sun)
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(sun) || defined(_nec_ews)
# define USE_SETVBUF
#endif

View file

@ -48,6 +48,7 @@ class Resolv
def initialize(filename = DefaultFileName)
@filename = filename
@mutex = Mutex.new
@initialized = nil
end
def lazy_initialize
@ -106,6 +107,7 @@ class Resolv
def initialize(config="/etc/resolv.conf")
@mutex = Mutex.new
@config = Config.new(config)
@initialized = nil
end
def lazy_initialize
@ -157,7 +159,7 @@ class Resolv
end
sender.send
reply = reply_name = nil
timeout (tout) { reply, reply_name = q.pop }
timeout(tout) { reply, reply_name = q.pop }
case reply.rcode
when RCode::NoError
return extract_resource(reply, reply_name, typeclass)
@ -385,6 +387,7 @@ class Resolv
def initialize(filename="/etc/resolv.conf")
@mutex = Mutex.new
@filename = filename
@initialized = nil
end
def lazy_initialize

View file

@ -1,4 +1,4 @@
#define RUBY_VERSION "1.6.4"
#define RUBY_RELEASE_DATE "2001-09-03"
#define RUBY_VERSION_CODE 164
#define RUBY_RELEASE_CODE 20010903
#define RUBY_VERSION "1.6.5"
#define RUBY_RELEASE_DATE "2001-09-05"
#define RUBY_VERSION_CODE 165
#define RUBY_RELEASE_CODE 20010905