We have a place for extern declarations of global variables in ed.h, do not

use main() to do it locally.
This commit is contained in:
jmallett 2002-06-20 05:28:02 +00:00
parent 0c56b95c32
commit 368a18f96b
2 changed files with 2 additions and 3 deletions

View File

@ -270,3 +270,5 @@ extern const char *errmsg;
extern long first_addr;
extern int lineno;
extern long second_addr;
extern long u_addr_last;
extern long u_current_addr;

View File

@ -449,9 +449,6 @@ long rows = 22; /* scroll length: ws_row - 2 */
int
exec_command(void)
{
extern long u_current_addr;
extern long u_addr_last;
static pattern_t *pat = NULL;
static int sgflag = 0;
static long sgnum = 0;