Review visibility of tabsize variable and nextab() macro.

This commit is contained in:
Renaud 2013-11-20 17:11:15 +08:00
parent 6455b200c3
commit e9142541a9
3 changed files with 3 additions and 3 deletions

1
line.h
View File

@ -27,7 +27,6 @@ struct line {
#define lputc(lp, n, c) ((lp)->l_text[(n)]=(c))
#define llength(lp) ((lp)->l_used)
#define nextab(a) (a & ~tabmask) + (tabmask+1)
extern int tabmask ;
char *getkill( void) ;

View File

@ -40,7 +40,7 @@ static const char *cname[] = { /* names of colors */
int gfcolor = NCOLORS - 1 ; /* global forgrnd color (white) */
int gbcolor = 0 ; /* global backgrnd color (black) */
int tabsize ; /* Tab size (0: use real tabs) */
static int tabsize ; /* Tab size (0: use real tabs) */
int fillcol = 72 ; /* Current fill column */
/* uninitialized global definitions */
@ -345,6 +345,8 @@ int detab(int f, int n)
*/
int entab(int f, int n)
{
#define nextab(a) (a & ~tabmask) + (tabmask+1)
int inc; /* increment to next line [sgn(n)] */
int fspace; /* pointer to first space if in a run */
int ccol; /* current cursor column */

View File

@ -3,7 +3,6 @@
#define AEDIT 1
extern int tabsize ; /* Tab size (0: use real tabs). */
extern int fillcol ; /* Fill column */