mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
0626d9b91c
commit
fa93be2f05
4 changed files with 6 additions and 6 deletions
6
error.c
6
error.c
|
@ -1187,12 +1187,12 @@ set_syserr(int n, const char *name)
|
||||||
|
|
||||||
if (!st_lookup(syserr_tbl, n, &error)) {
|
if (!st_lookup(syserr_tbl, n, &error)) {
|
||||||
error = rb_define_class_under(rb_mErrno, name, rb_eSystemCallError);
|
error = rb_define_class_under(rb_mErrno, name, rb_eSystemCallError);
|
||||||
|
|
||||||
/* capture nonblock errnos for WaitReadable/WaitWritable subclasses */
|
/* capture nonblock errnos for WaitReadable/WaitWritable subclasses */
|
||||||
switch (n) {
|
switch (n) {
|
||||||
case EAGAIN:
|
case EAGAIN:
|
||||||
rb_eEAGAIN = error;
|
rb_eEAGAIN = error;
|
||||||
|
|
||||||
#if EAGAIN != EWOULDBLOCK
|
#if EAGAIN != EWOULDBLOCK
|
||||||
break;
|
break;
|
||||||
case EWOULDBLOCK:
|
case EWOULDBLOCK:
|
||||||
|
@ -1204,7 +1204,7 @@ set_syserr(int n, const char *name)
|
||||||
rb_eEINPROGRESS = error;
|
rb_eEINPROGRESS = error;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
rb_define_const(error, "Errno", INT2NUM(n));
|
rb_define_const(error, "Errno", INT2NUM(n));
|
||||||
st_add_direct(syserr_tbl, n, error);
|
st_add_direct(syserr_tbl, n, error);
|
||||||
}
|
}
|
||||||
|
|
|
@ -163,7 +163,7 @@ typedef union {
|
||||||
#ifdef HAVE_TYPE_STRUCT_SOCKADDR_UN
|
#ifdef HAVE_TYPE_STRUCT_SOCKADDR_UN
|
||||||
struct sockaddr_un un;
|
struct sockaddr_un un;
|
||||||
#endif
|
#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. */
|
char place_holder[2048]; /* sockaddr_storage is not enough for Unix domain sockets on SunOS and Darwin. */
|
||||||
} union_sockaddr;
|
} union_sockaddr;
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
|
|
||||||
(defgroup ruby-electric nil
|
(defgroup ruby-electric nil
|
||||||
"Minor mode providing electric editing commands for ruby files"
|
"Minor mode providing electric editing commands for ruby files"
|
||||||
:group 'ruby)
|
:group 'ruby)
|
||||||
|
|
||||||
(defconst ruby-electric-expandable-do-re
|
(defconst ruby-electric-expandable-do-re
|
||||||
"do\\s-$")
|
"do\\s-$")
|
||||||
|
|
|
@ -45,7 +45,7 @@ class TestSocket_UDPSocket < Test::Unit::TestCase
|
||||||
in_use.bind(host, port)
|
in_use.bind(host, port)
|
||||||
|
|
||||||
s = UDPSocket.new
|
s = UDPSocket.new
|
||||||
|
|
||||||
e = assert_raises(Errno::EADDRINUSE) do
|
e = assert_raises(Errno::EADDRINUSE) do
|
||||||
s.bind(host, port)
|
s.bind(host, port)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue