diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-07-18 22:26:01 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-07-18 22:26:01 +0000 |
commit | 2a73d8edb2be731bc3a885f71bc315e06a3c1598 (patch) | |
tree | 95857f8e7acaba4fdb9457173d6a6630b8f11536 /usr.bin/rpcgen/rpc_scan.c | |
parent | dbf58eafcd9b0edb160c6680606b3907e1b50404 (diff) |
Uhmm, nope, this broke everything
Diffstat (limited to 'usr.bin/rpcgen/rpc_scan.c')
-rw-r--r-- | usr.bin/rpcgen/rpc_scan.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/usr.bin/rpcgen/rpc_scan.c b/usr.bin/rpcgen/rpc_scan.c index 4ff702b372a..7b60cf6c70e 100644 --- a/usr.bin/rpcgen/rpc_scan.c +++ b/usr.bin/rpcgen/rpc_scan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rpc_scan.c,v 1.3 2001/07/17 02:23:59 pvalchev Exp $ */ +/* $OpenBSD: rpc_scan.c,v 1.4 2001/07/18 22:26:00 deraadt Exp $ */ /* $NetBSD: rpc_scan.c,v 1.4 1995/06/11 21:50:02 pk Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for @@ -47,15 +47,15 @@ static char sccsid[] = "@(#)rpc_scan.c 1.11 89/02/22 (C) 1987 SMI"; #include "rpc_parse.h" #include "rpc_util.h" -static void unget_token __P((token *tokp)); -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 void printdirective __P((char *)); -static void docppline __P((char *, int *, char **)); +static unget_token __P((token *tokp)); +static findstrconst __P((char **, char **)); +static findchrconst __P((char **, char **)); +static findconst __P((char **, char **)); +static findkind __P((char **, token *)); +static cppline __P((char *)); +static directive __P((char *)); +static printdirective __P((char *)); +static docppline __P((char *, int *, char **)); #define startcomment(where) (where[0] == '/' && where[1] == '*') #define endcomment(where) (where[-1] == '*' && where[0] == '/') @@ -308,7 +308,7 @@ get_token(tokp) } } -static void +static unget_token(tokp) token *tokp; { @@ -316,7 +316,7 @@ unget_token(tokp) pushed = 1; } -static void +static findstrconst(str, val) char **str; char **val; @@ -326,7 +326,7 @@ findstrconst(str, val) p = *str; do { - p++; + *p++; } while (*p && *p != '"'); if (*p == 0) { error("unterminated string constant"); @@ -339,7 +339,7 @@ findstrconst(str, val) *str = p; } -static void +static findchrconst(str, val) char **str; char **val; @@ -349,7 +349,7 @@ findchrconst(str, val) p = *str; do { - p++; + *p++; } while (*p && *p != '\''); if (*p == 0) { error("unterminated string constant"); @@ -365,7 +365,7 @@ findchrconst(str, val) *str = p; } -static void +static findconst(str, val) char **str; char **val; @@ -416,7 +416,7 @@ static token symbols[] = { {TOK_EOF, "??????"}, }; -static void +static findkind(mark, tokp) char **mark; token *tokp; @@ -445,28 +445,28 @@ findkind(mark, tokp) *mark = str + len; } -static int +static cppline(line) char *line; { return (line == curline && *line == '#'); } -static int +static directive(line) char *line; { return (line == curline && *line == '%'); } -static void +static printdirective(line) char *line; { f_print(fout, "%s", line + 1); } -static void +static docppline(line, lineno, fname) char *line; int *lineno; |