made easier to patch
This commit is contained in:
parent
98359a035e
commit
859468b767
|
@ -7,7 +7,6 @@
|
||||||
#include "ack.h"
|
#include "ack.h"
|
||||||
#include "list.h"
|
#include "list.h"
|
||||||
#include "trans.h"
|
#include "trans.h"
|
||||||
#include <em_path.h>
|
|
||||||
#include <local.h>
|
#include <local.h>
|
||||||
#include "data.h"
|
#include "data.h"
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
@ -122,11 +121,12 @@ char *getsuffix() {
|
||||||
varinit() {
|
varinit() {
|
||||||
/* initialize the string variables */
|
/* initialize the string variables */
|
||||||
register char *envstr ;
|
register char *envstr ;
|
||||||
|
extern char em_dir[];
|
||||||
|
|
||||||
if ( envstr=getenv("EM_DIR") ) {
|
if ( envstr=getenv("EM_DIR") ) {
|
||||||
setsvar(keeps(HOME),keeps(envstr)) ;
|
setsvar(keeps(HOME),keeps(envstr)) ;
|
||||||
} else {
|
} else {
|
||||||
setsvar(keeps(HOME),keeps(EM_DIR)) ;
|
setsvar(keeps(HOME),keeps(em_dir)) ;
|
||||||
}
|
}
|
||||||
setpvar(keeps(SRC),srcvar) ;
|
setpvar(keeps(SRC),srcvar) ;
|
||||||
setpvar(keeps(SUFFIX),getsuffix) ;
|
setpvar(keeps(SUFFIX),getsuffix) ;
|
||||||
|
|
|
@ -280,7 +280,7 @@ static int incore ;
|
||||||
static growstring rline ;
|
static growstring rline ;
|
||||||
static FILE *infile ;
|
static FILE *infile ;
|
||||||
static char *inptr ;
|
static char *inptr ;
|
||||||
static char em_dir[100] = EM_DIR; /* this way it is easier to
|
char em_dir[100] = EM_DIR; /* this way it is easier to
|
||||||
* patch ...
|
* patch ...
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue