summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-24 04:54:16 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-24 04:54:16 +0000
commite3a8c626308cb8546baaf75e6133df304142f0c8 (patch)
tree4fb40e7eab065c70d5b2cdb44eb16bea01b12c15 /signal.c
parentb596fbbc375ea58aa2b869cb6025b2bb101f96b9 (diff)
* io.c (rb_io_mode_flags): both 'r+b' and 'rb+' should be allowed.
* io.c (rb_io_mode_modenum): ditto. * gc.c (rb_memerror): rename from mem_error, and exported. * gc.c (Init_GC): pre-allocate NoMemoryError instance. * object.c (convert_type): error message changed from "failed to convert" to "cannot convert", since it does not try to convert if an object does not respond to the converting method. * eval.c (block_pass): convert Method to Proc using rb_check_convert_type(). * object.c (rb_check_convert_type): always convert T_DATA * eval.c (rb_thread_cleanup): should not terminate main_thread by Fatal error. * regex.c (is_in_list): need to not exclude NUL and NEWLINE. * re.c (rb_reg_expr_str): wrong backslash escapement. * re.c (rb_reg_expr_str): do not escape embedded space characters. * marshal.c (w_object): T_DATA process patch from Joel VanderWerf <vjoel@PATH.Berkeley.EDU>. This is temporary hack; it remains undocumented, and it will be removed when marshaling is re-designed. * marshal.c (r_object): ditto. * numeric.c (num_step): Integer#step is moved to Numeric#step; Fixnum#step is merged into this method. * numeric.c (int_dotimes): Fixnum#times is merged. * numeric.c (int_upto): Fixnum#upto is merged. * numeric.c (int_downto): Fixnum#downto is merged. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c92
1 files changed, 46 insertions, 46 deletions
diff --git a/signal.c b/signal.c
index c643fd4..5c635cc 100644
--- a/signal.c
+++ b/signal.c
@@ -34,139 +34,139 @@ static struct signals {
int signo;
} siglist [] = {
#ifdef SIGHUP
- "HUP", SIGHUP,
+ {"HUP", SIGHUP},
#endif
#ifdef SIGINT
- "INT", SIGINT,
+ {"INT", SIGINT},
#endif
#ifdef SIGQUIT
- "QUIT", SIGQUIT,
+ {"QUIT", SIGQUIT},
#endif
#ifdef SIGILL
- "ILL", SIGILL,
+ {"ILL", SIGILL},
#endif
#ifdef SIGTRAP
- "TRAP", SIGTRAP,
+ {"TRAP", SIGTRAP},
#endif
#ifdef SIGIOT
- "IOT", SIGIOT,
+ {"IOT", SIGIOT},
#endif
#ifdef SIGABRT
- "ABRT", SIGABRT,
+ {"ABRT", SIGABRT},
#endif
#ifdef SIGEMT
- "EMT", SIGEMT,
+ {"EMT", SIGEMT},
#endif
#ifdef SIGFPE
- "FPE", SIGFPE,
+ {"FPE", SIGFPE},
#endif
#ifdef SIGKILL
- "KILL", SIGKILL,
+ {"KILL", SIGKILL},
#endif
#ifdef SIGBUS
- "BUS", SIGBUS,
+ {"BUS", SIGBUS},
#endif
#ifdef SIGSEGV
- "SEGV", SIGSEGV,
+ {"SEGV", SIGSEGV},
#endif
#ifdef SIGSYS
- "SYS", SIGSYS,
+ {"SYS", SIGSYS},
#endif
#ifdef SIGPIPE
- "PIPE", SIGPIPE,
+ {"PIPE", SIGPIPE},
#endif
#ifdef SIGALRM
- "ALRM", SIGALRM,
+ {"ALRM", SIGALRM},
#endif
#ifdef SIGTERM
- "TERM", SIGTERM,
+ {"TERM", SIGTERM},
#endif
#ifdef SIGURG
- "URG", SIGURG,
+ {"URG", SIGURG},
#endif
#ifdef SIGSTOP
- "STOP", SIGSTOP,
+ {"STOP", SIGSTOP},
#endif
#ifdef SIGTSTP
- "TSTP", SIGTSTP,
+ {"TSTP", SIGTSTP},
#endif
#ifdef SIGCONT
- "CONT", SIGCONT,
+ {"CONT", SIGCONT},
#endif
#ifdef SIGCHLD
- "CHLD", SIGCHLD,
+ {"CHLD", SIGCHLD},
#endif
#ifdef SIGCLD
- "CLD", SIGCLD,
+ {"CLD", SIGCLD},
#else
# ifdef SIGCHLD
- "CLD", SIGCHLD,
+ {"CLD", SIGCHLD},
# endif
#endif
#ifdef SIGTTIN
- "TTIN", SIGTTIN,
+ {"TTIN", SIGTTIN},
#endif
#ifdef SIGTTOU
- "TTOU", SIGTTOU,
+ {"TTOU", SIGTTOU},
#endif
#ifdef SIGIO
- "IO", SIGIO,
+ {"IO", SIGIO},
#endif
#ifdef SIGXCPU
- "XCPU", SIGXCPU,
+ {"XCPU", SIGXCPU},
#endif
#ifdef SIGXFSZ
- "XFSZ", SIGXFSZ,
+ {"XFSZ", SIGXFSZ},
#endif
#ifdef SIGVTALRM
- "VTALRM", SIGVTALRM,
+ {"VTALRM", SIGVTALRM},
#endif
#ifdef SIGPROF
- "PROF", SIGPROF,
+ {"PROF", SIGPROF},
#endif
#ifdef SIGWINCH
- "WINCH", SIGWINCH,
+ {"WINCH", SIGWINCH},
#endif
#ifdef SIGUSR1
- "USR1", SIGUSR1,
+ {"USR1", SIGUSR1},
#endif
#ifdef SIGUSR2
- "USR2", SIGUSR2,
+ {"USR2", SIGUSR2},
#endif
#ifdef SIGLOST
- "LOST", SIGLOST,
+ {"LOST", SIGLOST},
#endif
#ifdef SIGMSG
- "MSG", SIGMSG,
+ {"MSG", SIGMSG},
#endif
#ifdef SIGPWR
- "PWR", SIGPWR,
+ {"PWR", SIGPWR},
#endif
#ifdef SIGPOLL
- "POLL", SIGPOLL,
+ {"POLL", SIGPOLL},
#endif
#ifdef SIGDANGER
- "DANGER", SIGDANGER,
+ {"DANGER", SIGDANGER},
#endif
#ifdef SIGMIGRATE
- "MIGRATE", SIGMIGRATE,
+ {"MIGRATE", SIGMIGRATE},
#endif
#ifdef SIGPRE
- "PRE", SIGPRE,
+ {"PRE", SIGPRE},
#endif
#ifdef SIGGRANT
- "GRANT", SIGGRANT,
+ {"GRANT", SIGGRANT},
#endif
#ifdef SIGRETRACT
- "RETRACT", SIGRETRACT,
+ {"RETRACT", SIGRETRACT},
#endif
#ifdef SIGSOUND
- "SOUND", SIGSOUND,
+ {"SOUND", SIGSOUND},
#endif
#ifdef SIGINFO
- "INFO", SIGINFO,
+ {"INFO", SIGINFO},
#endif
- NULL, 0,
+ {NULL, 0}
};
static int
@@ -481,7 +481,7 @@ trap(arg)
{
sighandler_t func;
VALUE command, old;
- int sig;
+ int sig = -1;
char *s;
func = sighandler;