diff options
-rw-r--r-- | src/main.c | 8 | ||||
-rw-r--r-- | src/scanopt.c | 19 | ||||
-rw-r--r-- | src/sym.c | 4 | ||||
-rw-r--r-- | src/tblcmp.c | 10 |
4 files changed, 20 insertions, 21 deletions
@@ -41,10 +41,10 @@ static char flex_version[] = FLEX_VERSION; /* declare functions that have forward references */ -void flexinit PROTO ((int, char **)); -void readin PROTO ((void)); -void set_up_initial_allocations PROTO ((void)); -static char *basename2 PROTO ((char *path, int should_strip_ext)); +void flexinit(int, char **); +void readin(void); +void set_up_initial_allocations(void); +static char *basename2(char *path, int should_strip_ext); /* these globals are all defined and commented in flexdef.h */ diff --git a/src/scanopt.c b/src/scanopt.c index 22e35b3..90408c4 100644 --- a/src/scanopt.c +++ b/src/scanopt.c @@ -75,15 +75,14 @@ struct _scanopt_t { }; /* Accessor functions. These WOULD be one-liners, but portability calls. */ -static const char *NAME PROTO ((struct _scanopt_t *, int)); -static int PRINTLEN PROTO ((struct _scanopt_t *, int)); -static int RVAL PROTO ((struct _scanopt_t *, int)); -static int FLAGS PROTO ((struct _scanopt_t *, int)); -static const char *DESC PROTO ((struct _scanopt_t *, int)); -static int scanopt_err PROTO ((struct _scanopt_t *, int, int)); -static int matchlongopt PROTO ((char *, char **, int *, char **, int *)); -static int find_opt -PROTO ((struct _scanopt_t *, int, char *, int, int *, int *opt_offset)); +static const char *NAME(struct _scanopt_t *, int); +static int PRINTLEN(struct _scanopt_t *, int); +static int RVAL(struct _scanopt_t *, int); +static int FLAGS(struct _scanopt_t *, int); +static const char *DESC(struct _scanopt_t *, int); +static int scanopt_err(struct _scanopt_t *, int, int); +static int matchlongopt(char *, char **, int *, char **, int *); +static int find_opt((struct _scanopt_t *, int, char *, int, int *, int *opt_offset)); static const char *NAME (struct _scanopt_t *s, int i) { @@ -112,7 +111,7 @@ static const char *DESC (struct _scanopt_t *s, int i) } #ifndef NO_SCANOPT_USAGE -static int get_cols PROTO ((void)); +static int get_cols (void); static int get_cols (void) { @@ -59,12 +59,12 @@ static struct hash_entry *ccltab[CCL_HASH_SIZE]; /* declare functions that have forward references */ -static int addsym PROTO ((char[], char *, int, hash_table, int)); +static int addsym(char[], char *, int, hash_table, int); static struct hash_entry *findsym PROTO ((const char *sym, hash_table table, int table_size)); -static int hashfunct PROTO ((const char *, int)); +static int hashfunct(const char *, int); /* addsym - add symbol and definitions to symbol table diff --git a/src/tblcmp.c b/src/tblcmp.c index 9f7e9a3..b0dc8b3 100644 --- a/src/tblcmp.c +++ b/src/tblcmp.c @@ -36,11 +36,11 @@ /* declarations for functions that have forward references */ -void mkentry PROTO ((int *, int, int, int, int)); -void mkprot PROTO ((int[], int, int)); -void mktemplate PROTO ((int[], int, int)); -void mv2front PROTO ((int)); -int tbldiff PROTO ((int[], int, int[])); +void mkentry(int *, int, int, int, int); +void mkprot(int[], int, int); +void mktemplate(int[], int, int); +void mv2front(int); +int tbldiff(int[], int, int[]); /* bldtbl - build table entries for dfa state |