Staticise globals in col(1)
This commit is contained in:
parent
e6a5c736cb
commit
5d0abb92aa
20
col.c
20
col.c
|
@ -10,17 +10,11 @@
|
||||||
#define NLINES 256
|
#define NLINES 256
|
||||||
#define NCOLS 800
|
#define NCOLS 800
|
||||||
|
|
||||||
char **buff;
|
static char **buff;
|
||||||
|
|
||||||
int obackspace, onotabs, ohalfline, oescape;
|
static int obackspace, onotabs, ohalfline, oescape;
|
||||||
unsigned nline, ncol, nchar, nspaces, maxline, bs;
|
static unsigned nline, ncol, nchar, nspaces, maxline, bs;
|
||||||
size_t pagsize = NLINES;
|
static size_t pagsize = NLINES;
|
||||||
|
|
||||||
static void
|
|
||||||
usage(void)
|
|
||||||
{
|
|
||||||
enprintf(2, "usage: %s [-p][-l num][-b][-f][-x]\n", argv0);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
flush(void)
|
flush(void)
|
||||||
|
@ -188,6 +182,12 @@ allocbuf(void)
|
||||||
*bp = emalloc(NCOLS);
|
*bp = emalloc(NCOLS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
usage(void)
|
||||||
|
{
|
||||||
|
enprintf(2, "usage: %s [-p][-l num][-b][-f][-x]\n", argv0);
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user