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:
parent
0c56b95c32
commit
368a18f96b
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user