diff options
| author | Peter Eisentraut | 2000-08-27 19:00:41 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2000-08-27 19:00:41 +0000 |
| commit | 79abd73eee470d52690ca398906074f2be84c05b (patch) | |
| tree | a3b701f25e9253c31df901fabe02c49065e449ac /src/include | |
| parent | bfdd6a716dc2ea03587c41dd9cd8ece39a654a8d (diff) | |
Remove configure tests for `signed', `volatile', and signal handler args;
the harm potential outweighs the possible benefits.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/commands/async.h | 4 | ||||
| -rw-r--r-- | src/include/config.h.in | 22 | ||||
| -rw-r--r-- | src/include/tcop/tcopprot.h | 6 |
3 files changed, 6 insertions, 26 deletions
diff --git a/src/include/commands/async.h b/src/include/commands/async.h index 75fa5b29ecd..9267fdbbf04 100644 --- a/src/include/commands/async.h +++ b/src/include/commands/async.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: async.h,v 1.14 2000/05/31 00:28:37 petere Exp $ + * $Id: async.h,v 1.15 2000/08/27 19:00:41 petere Exp $ * *------------------------------------------------------------------------- */ @@ -25,7 +25,7 @@ extern void AtCommit_Notify(void); extern void AtAbort_Notify(void); /* signal handler for inbound notifies (SIGUSR2) */ -extern void Async_NotifyHandler(SIGNAL_ARGS); +extern void Async_NotifyHandler(int signum); /* * enable/disable processing of inbound notifies directly from signal handler. diff --git a/src/include/config.h.in b/src/include/config.h.in index 51f22a9a63d..4101d8d2114 100644 --- a/src/include/config.h.in +++ b/src/include/config.h.in @@ -8,7 +8,7 @@ * or in config.h afterwards. Of course, if you edit config.h, then your * changes will be overwritten the next time you run configure. * - * $Id: config.h.in,v 1.132 2000/08/26 21:53:40 tgl Exp $ + * $Id: config.h.in,v 1.133 2000/08/27 19:00:39 petere Exp $ */ #ifndef CONFIG_H @@ -300,12 +300,6 @@ /* Define as your compiler's spelling of "inline", or empty if no inline. */ #undef inline -/* Define signed as empty if your compiler doesn't grok "signed char" etc */ -#undef signed - -/* Define volatile as empty if your compiler doesn't grok volatile. */ -#undef volatile - /* Define if your cpp understands the ANSI stringizing operators in macros */ #undef HAVE_STRINGIZE @@ -588,18 +582,4 @@ extern void srandom(unsigned int seed); #include "os.h" -/* - * The following is used as the arg list for signal handlers. Any ports - * that take something other than an int argument should override this in - * the port-specific os.h file. Note that variable names are required - * because it is used in both the prototypes as well as the definitions. - * Note also the long name. We expect that this won't collide with - * other names causing compiler warnings. - */ - -#ifndef SIGNAL_ARGS -#define SIGNAL_ARGS int postgres_signal_arg -#endif - - #endif /* CONFIG_H */ diff --git a/src/include/tcop/tcopprot.h b/src/include/tcop/tcopprot.h index cde0f5655a9..2a45461dff9 100644 --- a/src/include/tcop/tcopprot.h +++ b/src/include/tcop/tcopprot.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: tcopprot.h,v 1.31 2000/06/28 03:33:28 tgl Exp $ + * $Id: tcopprot.h,v 1.32 2000/08/27 19:00:41 petere Exp $ * * OLD COMMENTS * This file was created so that other c files could get the two @@ -41,8 +41,8 @@ extern void pg_exec_query_dest(char *query_string, #endif /* BOOTSTRAP_INCLUDE */ -extern void handle_warn(SIGNAL_ARGS); -extern void die(SIGNAL_ARGS); +extern void handle_warn(int signum); +extern void die(int signum); extern void CancelQuery(void); extern int PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[]); |
