diff options
Diffstat (limited to 'usr.bin/rpcgen/rpc_scan.c')
-rw-r--r-- | usr.bin/rpcgen/rpc_scan.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/usr.bin/rpcgen/rpc_scan.c b/usr.bin/rpcgen/rpc_scan.c index e65b799..d1d03aa 100644 --- a/usr.bin/rpcgen/rpc_scan.c +++ b/usr.bin/rpcgen/rpc_scan.c @@ -52,15 +52,15 @@ static char sccsid[] = "@(#)rpc_scan.c 1.11 89/02/22 (C) 1987 SMI"; static int pushed = 0; /* is a token pushed */ static token lasttok; /* last token, if pushed */ -static int unget_token __P(( token * )); -static int findstrconst __P(( char **, char **)); -static int findchrconst __P(( char **, char **)); -static int findconst __P(( char **, char **)); -static int findkind __P(( char **, token * )); +static void unget_token __P(( token * )); +static void findstrconst __P(( char **, char **)); +static void findchrconst __P(( char **, char **)); +static void findconst __P(( char **, char **)); +static void findkind __P(( char **, token * )); static int cppline __P(( char * )); static int directive __P(( char * )); -static int printdirective __P(( char * )); -static int docppline __P(( char *, int *, char ** )); +static void printdirective __P(( char * )); +static void docppline __P(( char *, int *, char ** )); /* * scan expecting 1 given token @@ -315,7 +315,7 @@ get_token(tokp) } } -static +static void unget_token(tokp) token *tokp; { @@ -323,7 +323,7 @@ unget_token(tokp) pushed = 1; } -static +static void findstrconst(str, val) char **str; char **val; @@ -333,7 +333,7 @@ findstrconst(str, val) p = *str; do { - *p++; + p++; } while (*p && *p != '"'); if (*p == 0) { error("unterminated string constant"); @@ -346,7 +346,7 @@ findstrconst(str, val) *str = p; } -static +static void findchrconst(str, val) char **str; char **val; @@ -356,7 +356,7 @@ findchrconst(str, val) p = *str; do { - *p++; + p++; } while (*p && *p != '\''); if (*p == 0) { error("unterminated string constant"); @@ -372,7 +372,7 @@ findchrconst(str, val) *str = p; } -static +static void findconst(str, val) char **str; char **val; @@ -425,7 +425,7 @@ static token symbols[] = { {TOK_EOF, "??????"}, }; -static +static void findkind(mark, tokp) char **mark; token *tokp; @@ -454,28 +454,28 @@ findkind(mark, tokp) *mark = str + len; } -static +static int cppline(line) char *line; { return (line == curline && *line == '#'); } -static +static int directive(line) char *line; { return (line == curline && *line == '%'); } -static +static void printdirective(line) char *line; { f_print(fout, "%s", line + 1); } -static +static void docppline(line, lineno, fname) char *line; int *lineno; |