diff options
Diffstat (limited to 'src/timezone/private.h')
-rw-r--r-- | src/timezone/private.h | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/src/timezone/private.h b/src/timezone/private.h index f9ba3bae5d9..75b30724897 100644 --- a/src/timezone/private.h +++ b/src/timezone/private.h @@ -14,19 +14,19 @@ ** Thank you! */ -#include <limits.h> /* for CHAR_BIT */ -#include <sys/wait.h> /* for WIFEXITED and WEXITSTATUS */ -#include <unistd.h> /* for F_OK and R_OK */ +#include <limits.h> /* for CHAR_BIT */ +#include <sys/wait.h> /* for WIFEXITED and WEXITSTATUS */ +#include <unistd.h> /* for F_OK and R_OK */ #include "pgtime.h" #ifndef WIFEXITED #define WIFEXITED(status) (((status) & 0xff) == 0) -#endif /* !defined WIFEXITED */ +#endif /* !defined WIFEXITED */ #ifndef WEXITSTATUS -#define WEXITSTATUS(status) (((status) >> 8) & 0xff) -#endif /* !defined WEXITSTATUS */ +#define WEXITSTATUS(status) (((status) >> 8) & 0xff) +#endif /* !defined WEXITSTATUS */ /* Unlike <ctype.h>'s isdigit, this also works if c < 0 | c > UCHAR_MAX. */ #define is_digit(c) ((unsigned)(c) - '0' <= 9) @@ -37,7 +37,7 @@ #ifndef EXIT_SUCCESS #define EXIT_SUCCESS 0 -#endif /* !defined EXIT_SUCCESS */ +#endif /* !defined EXIT_SUCCESS */ /* ** SunOS 4.1.1 headers lack EXIT_FAILURE. @@ -45,28 +45,29 @@ #ifndef EXIT_FAILURE #define EXIT_FAILURE 1 -#endif /* !defined EXIT_FAILURE */ +#endif /* !defined EXIT_FAILURE */ /* ** SunOS 4.1.1 libraries lack remove. */ #ifndef remove -extern int unlink (const char * filename); +extern int unlink(const char *filename); + #define remove unlink -#endif /* !defined remove */ +#endif /* !defined remove */ /* * Private function declarations. */ -extern char *icalloc (int nelem, int elsize); -extern char *icatalloc (char *old, const char *new); -extern char *icpyalloc (const char *string); -extern char *imalloc (int n); -extern void *irealloc (void *pointer, int size); -extern void icfree (char *pointer); -extern void ifree (char *pointer); -extern char *scheck (const char *string, const char *format); +extern char *icalloc(int nelem, int elsize); +extern char *icatalloc(char *old, const char *new); +extern char *icpyalloc(const char *string); +extern char *imalloc(int n); +extern void *irealloc(void *pointer, int size); +extern void icfree(char *pointer); +extern void ifree(char *pointer); +extern char *scheck(const char *string, const char *format); /* @@ -75,19 +76,19 @@ extern char *scheck (const char *string, const char *format); #ifndef TRUE #define TRUE 1 -#endif /* !defined TRUE */ +#endif /* !defined TRUE */ #ifndef FALSE #define FALSE 0 -#endif /* !defined FALSE */ +#endif /* !defined FALSE */ #ifndef TYPE_BIT #define TYPE_BIT(type) (sizeof (type) * CHAR_BIT) -#endif /* !defined TYPE_BIT */ +#endif /* !defined TYPE_BIT */ #ifndef TYPE_SIGNED #define TYPE_SIGNED(type) (((type) -1) < 0) -#endif /* !defined TYPE_SIGNED */ +#endif /* !defined TYPE_SIGNED */ #ifndef INT_STRLEN_MAXIMUM /* @@ -97,8 +98,8 @@ extern char *scheck (const char *string, const char *format); ** add one more for a minus sign if the type is signed. */ #define INT_STRLEN_MAXIMUM(type) \ - ((TYPE_BIT(type) - TYPE_SIGNED(type)) * 302 / 1000 + 1 + TYPE_SIGNED(type)) -#endif /* !defined INT_STRLEN_MAXIMUM */ + ((TYPE_BIT(type) - TYPE_SIGNED(type)) * 302 / 1000 + 1 + TYPE_SIGNED(type)) +#endif /* !defined INT_STRLEN_MAXIMUM */ #define _(msgid) (msgid) @@ -106,4 +107,4 @@ extern char *scheck (const char *string, const char *format); ** UNIX was a registered trademark of The Open Group in 2003. */ -#endif /* !defined PRIVATE_H */ +#endif /* !defined PRIVATE_H */ |