(PROTO): Define.

Add prototypes for static functions.

From-SVN: r6542
This commit is contained in:
Doug Evans 1994-02-12 16:34:43 +00:00
parent b331b7459e
commit 99360286e5

View File

@ -51,6 +51,15 @@ compilation is specified by a string called a "spec". */
#define X_OK 1 #define X_OK 1
#endif #endif
/* Add prototype support. */
#ifndef PROTO
#if defined (USE_PROTOTYPES) ? USE_PROTOTYPES : defined (__STDC__)
#define PROTO(ARGS) ARGS
#else
#define PROTO(ARGS) ()
#endif
#endif
#ifndef VPROTO #ifndef VPROTO
#ifdef __STDC__ #ifdef __STDC__
#define VPROTO(ARGS) ARGS #define VPROTO(ARGS) ARGS
@ -183,27 +192,31 @@ static struct obstack collect_obstack;
extern char *version_string; extern char *version_string;
static void set_spec (); /* Forward declaration for prototypes. */
static struct compiler *lookup_compiler (); struct path_prefix;
static char *find_a_file ();
static void add_prefix (); static void set_spec PROTO((char *, char *));
static char *skip_whitespace (); static struct compiler *lookup_compiler PROTO((char *, int, char *));
static void record_temp_file (); static char *find_a_file PROTO((struct path_prefix *, char *, int));
static char *handle_braces (); static void add_prefix PROTO((struct path_prefix *, char *, int, int, int *));
static char *save_string (); static char *skip_whitespace PROTO((char *));
static char *concat (); static void record_temp_file PROTO((char *, int, int));
static int do_spec (); static char *handle_braces PROTO((char *));
static int do_spec_1 (); static char *save_string PROTO((char *, int));
static char *find_file (); static char *concat PROTO((char *, char *, char *));
static int is_directory (); static int do_spec PROTO((char *));
static void validate_switches (); static int do_spec_1 PROTO((char *, int, char *));
static void validate_all_switches (); static char *find_file PROTO((char *));
static void give_switch (); static int is_directory PROTO((char *, char *, int));
static void pfatal_with_name (); static void validate_switches PROTO((char *));
static void perror_with_name (); static void validate_all_switches PROTO((void));
static void perror_exec (); static void give_switch PROTO((int, int));
static void fatal (); static void pfatal_with_name PROTO((char *));
static void error (); static void perror_with_name PROTO((char *));
static void perror_exec PROTO((char *));
static void fatal PROTO((char *, ...));
static void error PROTO((char *, ...));
void fancy_abort (); void fancy_abort ();
char *xmalloc (); char *xmalloc ();
char *xrealloc (); char *xrealloc ();