mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-16 06:52:27 +00:00
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
4e17884ffe
commit
0e6c085ae6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98465
|
@ -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 a new issue