]> git.sur5r.net Git - cc65/blobdiff - include/signal.h
Fixed _textcolor definition.
[cc65] / include / signal.h
index 486782ece970548aaeb59c9f153b6b5f5a2f4cb5..5cb63fcae1230804b703b881ec1e5c67ee1daf50 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2002      Ullrich von Bassewitz                                       */
-/*               Wacholderweg 14                                             */
-/*               D-70597 Stuttgart                                           */
-/* EMail:        uz@musoftware.de                                            */
+/* (C) 2002-2005, Ullrich von Bassewitz                                      */
+/*                Römerstraße 52                                             */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
 typedef unsigned char sig_atomic_t;
 
 /* Type of a signal handler */
-typedef void (*__sigfunc) (int);
+typedef void __fastcall__ (*__sigfunc) (int);
+
+/* Functions that implement SIG_IGN and SIG_DFL */
+void __fastcall__ _sig_ign (int);
+void __fastcall__ _sig_dfl (int);
 
 /* Standard signal handling functions */
-#define SIG_IGN         ((__sigfunc) 0x0000)
-#define SIG_ERR         ((__sigfunc) 0xFFFF)
-#define SIG_DFL         ((__sigfunc) 0xFFFE)
+#define SIG_DFL         _sig_dfl
+#define SIG_IGN         _sig_ign
+#define SIG_ERR         ((__sigfunc) 0x0000)
 
 /* Signal numbers */
 #define SIGABRT         0
@@ -58,8 +62,8 @@ typedef void (*__sigfunc) (int);
 #define SIGTERM         5
 
 /* Function declarations */
-__sigfunc signal (int sig, __sigfunc func);
-int raise (int sig);
+__sigfunc __fastcall__ signal (int sig, __sigfunc func);
+int __fastcall__ raise (int sig);