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:
Juli Mallett 2002-06-20 05:28:02 +00:00
parent 4e17884ffe
commit 0e6c085ae6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98465
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;