From ceac004e303d886a691a06bdaa32a72ecc627cd6 Mon Sep 17 00:00:00 2001 From: Renaud Fivet Date: Thu, 10 Oct 2013 11:49:04 +0800 Subject: [PATCH] Move global curgoal to basic. --- basic.c | 3 ++- basic.h | 4 +++- globals.c | 1 - globals.h | 2 -- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/basic.c b/basic.c index 96b6715..096b04b 100644 --- a/basic.c +++ b/basic.c @@ -28,7 +28,8 @@ #include "window.h" -int overlap = 0 ; /* line overlap in forw/back page */ +int overlap = 0 ; /* line overlap in forw/back page */ +int curgoal ; /* Goal for C-P, C-N */ /* diff --git a/basic.h b/basic.h index 27ba4d4..20631db 100644 --- a/basic.h +++ b/basic.h @@ -1,7 +1,9 @@ #ifndef _BASIC_H_ #define _BASIC_H_ -extern int overlap ; /* line overlap in forw/back page */ +extern int overlap ; /* line overlap in forw/back page */ +extern int curgoal ; /* Goal for C-P, C-N */ + int gotobol( int f, int n) ; int gotoeol( int f, int n) ; diff --git a/globals.c b/globals.c index ec7903b..6e2ab1e 100644 --- a/globals.c +++ b/globals.c @@ -14,4 +14,3 @@ int abortc = CONTROL | 'G'; /* current abort command char */ int thisflag; /* Flags, this command */ int lastflag; /* Flags, last command */ -int curgoal; /* Goal for C-P, C-N */ diff --git a/globals.h b/globals.h index 63b717c..cc5ac42 100644 --- a/globals.h +++ b/globals.h @@ -18,6 +18,4 @@ extern int abortc; /* current abort command char */ extern int thisflag; /* Flags, this command */ extern int lastflag; /* Flags, last command */ -extern int curgoal; /* Goal for C-P, C-N */ - #endif