=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/unifdef/unifdef.c,v retrieving revision 1.3 retrieving revision 1.4 diff -c -r1.3 -r1.4 *** src/usr.bin/unifdef/unifdef.c 1998/11/16 21:58:29 1.3 --- src/usr.bin/unifdef/unifdef.c 2002/02/16 21:27:56 1.4 *************** *** 1,4 **** ! /* $OpenBSD: unifdef.c,v 1.3 1998/11/16 21:58:29 deraadt Exp $ */ /* $NetBSD: unifdef.c,v 1.6 1998/10/08 01:31:59 wsanchez Exp $ */ /* --- 1,4 ---- ! /* $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,53 **** #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 $"; #endif /* not lint */ /* --- 47,53 ---- #if 0 static char sccsid[] = "@(#)unifdef.c 8.1 (Berkeley) 6/6/93"; #endif ! static char rcsid[] = "$OpenBSD: unifdef.c,v 1.4 2002/02/16 21:27:56 millert Exp $"; #endif /* not lint */ /* *************** *** 101,114 **** 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 main(argc, argv) --- 101,114 ---- char inquote BSS; /* inside single or double quotes */ int exitstat BSS; ! 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,221 **** #define LT_ELSE 5 /* #else */ #define LT_ENDIF 6 /* #endif */ #define LT_LEOF 7 /* end of file */ ! Linetype checkline __P((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 linenum BSS; /* current line number */ int stqcline BSS; /* start of current coment or quote */ --- 208,221 ---- #define LT_ELSE 5 /* #else */ #define LT_ENDIF 6 /* #endif */ #define LT_LEOF 7 /* end of file */ ! 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(int, int, Reject_level, int); int linenum BSS; /* current line number */ int stqcline BSS; /* start of current coment or quote */