summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-10-04 20:27:17 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-10-04 20:27:17 +0000
commitfb6937feec89d169e4a1931b45c5f048de8a64ca (patch)
treea3684ef2cb588f4a109178fdd80ae41938555fc4 /usr.bin
parent995744fb049c21d76cb625b92e7edaed025d8b1c (diff)
remove the BSS crud
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/unifdef/unifdef.c41
1 files changed, 20 insertions, 21 deletions
diff --git a/usr.bin/unifdef/unifdef.c b/usr.bin/unifdef/unifdef.c
index 751c1570e5e..4d95c39107d 100644
--- a/usr.bin/unifdef/unifdef.c
+++ b/usr.bin/unifdef/unifdef.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: unifdef.c,v 1.5 2002/05/10 19:13:07 jason Exp $ */
+/* $OpenBSD: unifdef.c,v 1.6 2002/10/04 20:27:16 deraadt 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.5 2002/05/10 19:13:07 jason Exp $";
+static char rcsid[] = "$OpenBSD: unifdef.c,v 1.6 2002/10/04 20:27:16 deraadt Exp $";
#endif /* not lint */
/*
@@ -66,7 +66,6 @@ static char rcsid[] = "$OpenBSD: unifdef.c,v 1.5 2002/05/10 19:13:07 jason Exp $
#include <stdio.h>
#include <ctype.h>
-#define BSS
FILE *input;
#ifndef YES
#define YES 1
@@ -76,30 +75,30 @@ FILE *input;
#define CXX_COMMENT 2
typedef int Bool;
-char *progname BSS;
-char *filename BSS;
-char text BSS; /* -t option in effect: this is a text file */
-char lnblank BSS; /* -l option in effect: blank deleted lines */
-char complement BSS; /* -c option in effect: complement the
+char *progname;
+char *filename;
+char text; /* -t option in effect: this is a text file */
+char lnblank; /* -l option in effect: blank deleted lines */
+char complement; /* -c option in effect: complement the
* operation */
#define MAXSYMS 100
-char *symname[MAXSYMS] BSS; /* symbol name */
-char true[MAXSYMS] BSS; /* -Dsym */
-char ignore[MAXSYMS] BSS; /* -iDsym or -iUsym */
-char insym[MAXSYMS] BSS; /* state: false, inactive, true */
+char *symname[MAXSYMS]; /* symbol name */
+char true[MAXSYMS]; /* -Dsym */
+char ignore[MAXSYMS]; /* -iDsym or -iUsym */
+char insym[MAXSYMS]; /* state: false, inactive, true */
#define SYM_INACTIVE 0 /* symbol is currently inactive */
#define SYM_FALSE 1 /* symbol is currently false */
#define SYM_TRUE 2 /* symbol is currently true */
-char nsyms BSS;
-char incomment BSS; /* inside C comment */
+char nsyms;
+char incomment; /* inside C comment */
#define QUOTE_NONE 0
#define QUOTE_SINGLE 1
#define QUOTE_DOUBLE 2
-char inquote BSS; /* inside single or double quotes */
-int exitstat BSS;
+char inquote; /* inside single or double quotes */
+int exitstat;
int error(int, int, int);
int findsym(char *);
@@ -211,14 +210,14 @@ typedef int Linetype;
Linetype checkline(int *);
typedef int Reject_level;
-Reject_level reject BSS; /* 0 or 1: pass thru; 1 or 2: ignore comments */
+Reject_level reject; /* 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 */
+int linenum; /* current line number */
+int stqcline; /* start of current coment or quote */
char *errs[] = {
#define NO_ERR 0
"",
@@ -357,7 +356,7 @@ doif(thissym, inif, prevreject, depth)
#define endsym(c) (!isalpha (c) && !isdigit (c) && c != '_')
#define MAXLINE 256
-char tline[MAXLINE] BSS;
+char tline[MAXLINE];
Linetype
checkline(cursym)
@@ -574,7 +573,7 @@ getlin(line, maxline, inp, expandtabs)
int chr;
#ifdef FFSPECIAL
static char havechar = NO; /* have leftover char from last time */
- static char svchar BSS;
+ static char svchar;
#endif /* FFSPECIAL */
num = 0;