From 96ca2e8580ff741135651ba7b3e0e4cace8ffb5d Mon Sep 17 00:00:00 2001 From: Renaud Fivet Date: Thu, 10 Oct 2013 11:13:49 +0800 Subject: [PATCH] Move global fillcol to random. --- globals.c | 3 --- globals.h | 2 -- random.c | 8 +++++--- random.h | 4 +++- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/globals.c b/globals.c index 4de1ca5..73c61b4 100644 --- a/globals.c +++ b/globals.c @@ -5,9 +5,6 @@ /* initialized global definitions */ -int fillcol = 72; /* Current fill column */ - - int metac = CONTROL | '['; /* current meta character */ int ctlxc = CONTROL | 'X'; /* current control X prefix char */ int reptc = CONTROL | 'U'; /* current universal repeat char */ diff --git a/globals.h b/globals.h index 99cb63b..e2e10b4 100644 --- a/globals.h +++ b/globals.h @@ -5,8 +5,6 @@ /* Initialized global external declarations. */ -extern int fillcol; /* Fill column */ - extern int metac; /* current meta character */ extern int ctlxc; /* current control X prefix char */ extern int reptc; /* current universal repeat char */ diff --git a/random.c b/random.c index 0196ebf..14d0275 100644 --- a/random.c +++ b/random.c @@ -36,10 +36,12 @@ static const char *cname[] = { /* names of colors */ #define NCOLORS (sizeof cname / sizeof( *cname)) /* # of supported colors */ -int gfcolor = NCOLORS - 1 ; /* global forgrnd color (white) */ -int gbcolor = 0 ; /* global backgrnd color (black) */ +int gfcolor = NCOLORS - 1 ; /* global forgrnd color (white) */ +int gbcolor = 0 ; /* global backgrnd color (black) */ + +int tabsize ; /* Tab size (0: use real tabs) */ +int fillcol = 72 ; /* Current fill column */ -int tabsize; /* Tab size (0: use real tabs) */ /* * Set fill column to n. diff --git a/random.h b/random.h index fe7e4df..c9bed3c 100644 --- a/random.h +++ b/random.h @@ -3,7 +3,9 @@ #define AEDIT 1 -extern int tabsize ; /* Tab size (0: use real tabs). */ +extern int tabsize ; /* Tab size (0: use real tabs). */ +extern int fillcol ; /* Fill column */ + int setfillcol( int f, int n) ; int showcpos( int f, int n) ;