summaryrefslogtreecommitdiff
path: root/usr.bin/unifdef/unifdef.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-02-16 21:28:12 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-02-16 21:28:12 +0000
commit6d57a1a176004a7d8fc009cdcf760098f86e3263 (patch)
treeee423c619fad03813234b9362694a17f3a638f0b /usr.bin/unifdef/unifdef.c
parentc707cb295fc3cac8d8feb343e949e0dcf71b8476 (diff)
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
Diffstat (limited to 'usr.bin/unifdef/unifdef.c')
-rw-r--r--usr.bin/unifdef/unifdef.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/usr.bin/unifdef/unifdef.c b/usr.bin/unifdef/unifdef.c
index e4f1acbee26..213e956fe55 100644
--- a/usr.bin/unifdef/unifdef.c
+++ b/usr.bin/unifdef/unifdef.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: unifdef.c,v 1.3 1998/11/16 21:58:29 deraadt Exp $ */
+/* $OpenBSD: unifdef.c,v 1.4 2002/02/16 21:27:56 millert Exp $ */
/* $NetBSD: unifdef.c,v 1.6 1998/10/08 01:31:59 wsanchez Exp $ */
/*
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)unifdef.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: unifdef.c,v 1.3 1998/11/16 21:58:29 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: unifdef.c,v 1.4 2002/02/16 21:27:56 millert Exp $";
#endif /* not lint */
/*
@@ -101,14 +101,14 @@ char incomment BSS; /* inside C comment */
char inquote BSS; /* inside single or double quotes */
int exitstat BSS;
-int error __P((int, int, int));
-int findsym __P((char *));
-void flushline __P((Bool));
-int getlin __P((char *, int, FILE *, int));
-void pfile __P((void));
-void prname __P((void));
-char *skipcomment __P((char *));
-char *skipquote __P((char *, int));
+int error(int, int, int);
+int findsym(char *);
+void flushline(Bool);
+int getlin(char *, int, FILE *, int);
+void pfile(void);
+void prname(void);
+char *skipcomment(char *);
+char *skipquote(char *, int);
int
main(argc, argv)
@@ -208,14 +208,14 @@ typedef int Linetype;
#define LT_ELSE 5 /* #else */
#define LT_ENDIF 6 /* #endif */
#define LT_LEOF 7 /* end of file */
-Linetype checkline __P((int *));
+Linetype checkline(int *);
typedef int Reject_level;
Reject_level reject BSS; /* 0 or 1: pass thru; 1 or 2: ignore comments */
#define REJ_NO 0
#define REJ_IGNORE 1
#define REJ_YES 2
-int doif __P((int, int, Reject_level, int));
+int doif(int, int, Reject_level, int);
int linenum BSS; /* current line number */
int stqcline BSS; /* start of current coment or quote */