From 499daa504f93cef3d1d2054634f021d63761c6f9 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Wed, 20 Sep 2000 13:50:34 +0000 Subject: [PATCH] * src/acconfig.h: Don't protect config.h against multiple inclusion. Don't define PARAMS. * src/system.h: Define PARAMS. Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the purpose of config.h. system.h must not try to fix wrong definitions in config.h. --- ChangeLog | 10 ++++++++++ acconfig.h | 13 ------------- src/system.h | 13 +++++++------ 3 files changed, 17 insertions(+), 19 deletions(-) diff --git a/ChangeLog b/ChangeLog index 729640e3..0ffd0ecf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2000-09-20 Akim Demaille + + * src/acconfig.h: Don't protect config.h against multiple + inclusion. + Don't define PARAMS. + * src/system.h: Define PARAMS. + Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the + purpose of config.h. system.h must not try to fix wrong + definitions in config.h. + 2000-09-20 Akim Demaille * src/derives.h: New file. diff --git a/acconfig.h b/acconfig.h index 0fc2bdd0..9e84572e 100644 --- a/acconfig.h +++ b/acconfig.h @@ -1,7 +1,3 @@ -#ifndef CONFIG_H -#define CONFIG_H -@TOP@ - /* Define as 1 if realloc must be declared even if is included. */ #undef NEED_DECLARATION_REALLOC @@ -9,12 +5,3 @@ /* Define as 1 if calloc must be declared even if is included. */ #undef NEED_DECLARATION_CALLOC -@BOTTOM@ - -#if defined(PROTOTYPES) || defined(__cplusplus) -# define PARAMS(p) p -#else -# define PARAMS(p) () -#endif - -#endif /* CONFIG_H */ diff --git a/src/system.h b/src/system.h index 9c8ac08e..56a0ba0e 100644 --- a/src/system.h +++ b/src/system.h @@ -34,18 +34,14 @@ # define getpid _getpid #endif -#if defined(HAVE_STDLIB_H) || defined(MSDOS) +#if HAVE_STDLIB_H # include #endif -#if defined(HAVE_UNISTD_H) +#if HAVE_UNISTD_H # include #endif -#if (defined(VMS) || defined(MSDOS)) && !defined(HAVE_STRING_H) -# define HAVE_STRING_H 1 -#endif - #if defined(STDC_HEADERS) || defined(HAVE_STRING_H) # include /* An ANSI string.h and pre-ANSI memory.h might conflict. */ @@ -69,6 +65,11 @@ extern int errno; #endif +#if PROTOTYPES +# define PARAMS(p) p +#else +# define PARAMS(p) () +#endif /*-----------------. | GCC extensions. | -- 2.45.2