diff options
Diffstat (limited to 'make.h')
-rw-r--r-- | make.h | 169 |
1 files changed, 80 insertions, 89 deletions
@@ -39,15 +39,6 @@ char *alloca (); #endif -/* Use prototypes if available. */ -#if defined (__cplusplus) || defined (__STDC__) -# undef PARAMS -# define PARAMS(protos) protos -#else /* Not C++ or ANSI C. */ -# undef PARAMS -# define PARAMS(protos) () -#endif /* C++ or ANSI C. */ - /* Specify we want GNU source code. This must be defined before any system headers are included. */ @@ -151,7 +142,7 @@ extern int errno; # define NEED_GET_PATH_MAX 1 # define GET_PATH_MAX (get_path_max ()) # define PATH_VAR(var) char *var = (char *) alloca (GET_PATH_MAX) -extern unsigned int get_path_max PARAMS ((void)); +unsigned int get_path_max (void); #endif #ifndef CHAR_BIT @@ -227,12 +218,12 @@ extern unsigned int get_path_max PARAMS ((void)); # ifdef HAVE_STDLIB_H # include <stdlib.h> # else -extern char *malloc PARAMS ((int)); -extern char *realloc PARAMS ((char *, int)); -extern void free PARAMS ((char *)); +char *malloc (int); +char *realloc (char *, int); +void free (char *); -extern void abort PARAMS ((void)) __attribute__ ((noreturn)); -extern void exit PARAMS ((int)) __attribute__ ((noreturn)); +void abort (void) __attribute__ ((noreturn)); +void exit (int) __attribute__ ((noreturn)); # endif /* HAVE_STDLIB_H. */ #endif /* Standard headers. */ @@ -265,19 +256,19 @@ extern void exit PARAMS ((int)) __attribute__ ((noreturn)); # endif # ifndef bcmp -extern int bcmp PARAMS ((const char *, const char *, int)); +int bcmp (const char *, const char *, int); # endif # ifndef bzero -extern void bzero PARAMS ((char *, int)); +void bzero (char *, int); #endif # ifndef bcopy -extern void bcopy PARAMS ((const char *b1, char *b2, int)); +void bcopy (const char *b1, char *b2, int); # endif /* SCO Xenix has a buggy macro definition in <string.h>. */ #undef strerror #if !defined(__DECC) -extern char *strerror PARAMS ((int errnum)); +char *strerror (int errnum); #endif #endif /* !ANSI_STRING. */ @@ -289,7 +280,7 @@ extern char *strerror PARAMS ((int errnum)); #define FILE_TIMESTAMP uintmax_t #if !defined(HAVE_STRSIGNAL) -extern char *strsignal PARAMS ((int signum)); +char *strsignal (int signum); #endif /* ISDIGIT offers the following features: @@ -323,7 +314,7 @@ extern char *strsignal PARAMS ((int signum)); #endif #define strneq(a, b, l) (strncmp ((a), (b), (l)) == 0) #ifdef VMS -extern int strcmpi (const char *,const char *); +int strcmpi (const char *,const char *); #endif #if defined(__GNUC__) || defined(ENUM_BITFIELDS) @@ -363,13 +354,13 @@ extern int strcmpi (const char *,const char *); #ifdef WINDOWS32 # include <fcntl.h> # include <malloc.h> -# define pipe(p) _pipe(p, 512, O_BINARY) -# define kill(pid,sig) w32_kill(pid,sig) +# define pipe(_p) _pipe((_p), 512, O_BINARY) +# define kill(_pid,_sig) w32_kill((_pid),(_sig)) -extern void sync_Path_environment(void); -extern int kill(int pid, int sig); -extern char *end_of_token_w32(char *s, char stopchar); -extern int find_and_set_default_shell(char *token); +void sync_Path_environment (void); +int kill (int pid, int sig); +char *end_of_token_w32 (char *s, char stopchar); +int find_and_set_default_shell (char *token); /* indicates whether or not we have Bourne shell */ extern int no_default_sh_exe; @@ -398,78 +389,78 @@ struct floc #endif #if HAVE_ANSI_COMPILER && USE_VARIADIC && HAVE_STDARG_H -extern void message (int prefix, const char *fmt, ...) - __attribute__ ((__format__ (__printf__, 2, 3))); -extern void error (const struct floc *flocp, const char *fmt, ...) - __attribute__ ((__format__ (__printf__, 2, 3))); -extern void fatal (const struct floc *flocp, const char *fmt, ...) +void message (int prefix, const char *fmt, ...) + __attribute__ ((__format__ (__printf__, 2, 3))); +void error (const struct floc *flocp, const char *fmt, ...) + __attribute__ ((__format__ (__printf__, 2, 3))); +void fatal (const struct floc *flocp, const char *fmt, ...) __attribute__ ((noreturn, __format__ (__printf__, 2, 3))); #else -extern void message (); -extern void error (); -extern void fatal (); -#endif - -extern void die PARAMS ((int)) __attribute__ ((noreturn)); -extern void log_working_directory PARAMS ((int)); -extern void pfatal_with_name PARAMS ((const char *)) __attribute__ ((noreturn)); -extern void perror_with_name PARAMS ((const char *, const char *)); -extern char *savestring PARAMS ((const char *, unsigned int)); -extern char *concat PARAMS ((const char *, const char *, const char *)); -extern char *xmalloc PARAMS ((unsigned int)); -extern char *xrealloc PARAMS ((char *, unsigned int)); -extern char *xstrdup PARAMS ((const char *)); -extern char *find_next_token PARAMS ((char **, unsigned int *)); -extern char *next_token PARAMS ((const char *)); -extern char *end_of_token PARAMS ((const char *)); -extern void collapse_continuations PARAMS ((char *)); -extern char *lindex PARAMS ((const char *, const char *, int)); -extern int alpha_compare PARAMS ((const void *, const void *)); -extern void print_spaces PARAMS ((unsigned int)); -extern char *find_percent PARAMS ((char *)); -extern FILE *open_tmpfile PARAMS ((char **, const char *)); +void message (); +void error (); +void fatal (); +#endif + +void die (int) __attribute__ ((noreturn)); +void log_working_directory (int); +void pfatal_with_name (const char *) __attribute__ ((noreturn)); +void perror_with_name (const char *, const char *); +char *savestring (const char *, unsigned int); +char *concat (const char *, const char *, const char *); +char *xmalloc (unsigned int); +char *xrealloc (char *, unsigned int); +char *xstrdup (const char *); +char *find_next_token (char **, unsigned int *); +char *next_token (const char *); +char *end_of_token (const char *); +void collapse_continuations (char *); +char *lindex (const char *, const char *, int); +int alpha_compare (const void *, const void *); +void print_spaces (unsigned int); +char *find_percent (char *); +FILE *open_tmpfile (char **, const char *); #ifndef NO_ARCHIVES -extern int ar_name PARAMS ((char *)); -extern void ar_parse_name PARAMS ((char *, char **, char **)); -extern int ar_touch PARAMS ((char *)); -extern time_t ar_member_date PARAMS ((char *)); +int ar_name (char *); +void ar_parse_name (char *, char **, char **); +int ar_touch (char *); +time_t ar_member_date (char *); #endif -extern int dir_file_exists_p PARAMS ((char *, char *)); -extern int file_exists_p PARAMS ((char *)); -extern int file_impossible_p PARAMS ((char *)); -extern void file_impossible PARAMS ((char *)); -extern char *dir_name PARAMS ((char *)); -extern void hash_init_directories PARAMS ((void)); +int dir_file_exists_p (char *, char *); +int file_exists_p (char *); +int file_impossible_p (char *); +void file_impossible (char *); +char *dir_name (char *); +void hash_init_directories (void); -extern void define_default_variables PARAMS ((void)); -extern void set_default_suffixes PARAMS ((void)); -extern void install_default_suffix_rules PARAMS ((void)); -extern void install_default_implicit_rules PARAMS ((void)); +void define_default_variables (void); +void set_default_suffixes (void); +void install_default_suffix_rules (void); +void install_default_implicit_rules (void); -extern void build_vpath_lists PARAMS ((void)); -extern void construct_vpath_list PARAMS ((char *pattern, char *dirpath)); -extern int vpath_search PARAMS ((char **file, FILE_TIMESTAMP *mtime_ptr)); -extern int gpath_search PARAMS ((char *file, unsigned int len)); +void build_vpath_lists (void); +void construct_vpath_list (char *pattern, char *dirpath); +int vpath_search (char **file, FILE_TIMESTAMP *mtime_ptr); +int gpath_search (char *file, unsigned int len); -extern void construct_include_path PARAMS ((char **arg_dirs)); +void construct_include_path (char **arg_dirs); -extern void user_access PARAMS ((void)); -extern void make_access PARAMS ((void)); -extern void child_access PARAMS ((void)); +void user_access (void); +void make_access (void); +void child_access (void); -extern void close_stdout PARAMS ((void)); +void close_stdout (void); -extern char *strip_whitespace PARAMS ((const char **begpp, const char **endpp)); +char *strip_whitespace (const char **begpp, const char **endpp); /* String caching */ -extern void strcache_init PARAMS ((void)); -extern void strcache_print_stats PARAMS ((const char *prefix)); -extern int strcache_iscached PARAMS ((const char *str)); -extern const char *strcache_add PARAMS ((const char *str)); -extern const char *strcache_add_len PARAMS ((const char *str, int len)); -extern int strcache_setbufsize PARAMS ((int size)); +void strcache_init (void); +void strcache_print_stats (const char *prefix); +int strcache_iscached (const char *str); +const char *strcache_add (const char *str); +const char *strcache_add_len (const char *str, int len); +int strcache_setbufsize (int size); #ifdef HAVE_VFORK_H # include <vfork.h> @@ -480,19 +471,19 @@ extern int strcache_setbufsize PARAMS ((int size)); #if !defined (__GNU_LIBRARY__) && !defined (POSIX) && !defined (_POSIX_VERSION) && !defined(WINDOWS32) -extern long int atol (); +long int atol (); # ifndef VMS -extern long int lseek (); +long int lseek (); # endif #endif /* Not GNU C library or POSIX. */ #ifdef HAVE_GETCWD # if !defined(VMS) && !defined(__DECC) -extern char *getcwd (); +char *getcwd (); # endif #else -extern char *getwd (); +char *getwd (); # define getcwd(buf, len) getwd (buf) #endif |