зеркало из https://github.com/github/ruby.git
* remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
0626d9b91c
Коммит
fa93be2f05
6
error.c
6
error.c
|
@ -1187,12 +1187,12 @@ set_syserr(int n, const char *name)
|
|||
|
||||
if (!st_lookup(syserr_tbl, n, &error)) {
|
||||
error = rb_define_class_under(rb_mErrno, name, rb_eSystemCallError);
|
||||
|
||||
|
||||
/* capture nonblock errnos for WaitReadable/WaitWritable subclasses */
|
||||
switch (n) {
|
||||
case EAGAIN:
|
||||
rb_eEAGAIN = error;
|
||||
|
||||
|
||||
#if EAGAIN != EWOULDBLOCK
|
||||
break;
|
||||
case EWOULDBLOCK:
|
||||
|
@ -1204,7 +1204,7 @@ set_syserr(int n, const char *name)
|
|||
rb_eEINPROGRESS = error;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
rb_define_const(error, "Errno", INT2NUM(n));
|
||||
st_add_direct(syserr_tbl, n, error);
|
||||
}
|
||||
|
|
|
@ -163,7 +163,7 @@ typedef union {
|
|||
#ifdef HAVE_TYPE_STRUCT_SOCKADDR_UN
|
||||
struct sockaddr_un un;
|
||||
#endif
|
||||
struct sockaddr_storage storage;
|
||||
struct sockaddr_storage storage;
|
||||
char place_holder[2048]; /* sockaddr_storage is not enough for Unix domain sockets on SunOS and Darwin. */
|
||||
} union_sockaddr;
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
|
||||
(defgroup ruby-electric nil
|
||||
"Minor mode providing electric editing commands for ruby files"
|
||||
:group 'ruby)
|
||||
:group 'ruby)
|
||||
|
||||
(defconst ruby-electric-expandable-do-re
|
||||
"do\\s-$")
|
||||
|
|
|
@ -45,7 +45,7 @@ class TestSocket_UDPSocket < Test::Unit::TestCase
|
|||
in_use.bind(host, port)
|
||||
|
||||
s = UDPSocket.new
|
||||
|
||||
|
||||
e = assert_raises(Errno::EADDRINUSE) do
|
||||
s.bind(host, port)
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче