made easier to patch

This commit is contained in:
ceriel 1988-08-19 14:25:59 +00:00
parent 98359a035e
commit 859468b767
2 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,6 @@
#include "ack.h"
#include "list.h"
#include "trans.h"
#include <em_path.h>
#include <local.h>
#include "data.h"
#include <signal.h>
@ -122,11 +121,12 @@ char *getsuffix() {
varinit() {
/* initialize the string variables */
register char *envstr ;
extern char em_dir[];
if ( envstr=getenv("EM_DIR") ) {
setsvar(keeps(HOME),keeps(envstr)) ;
} else {
setsvar(keeps(HOME),keeps(EM_DIR)) ;
setsvar(keeps(HOME),keeps(em_dir)) ;
}
setpvar(keeps(SRC),srcvar) ;
setpvar(keeps(SUFFIX),getsuffix) ;

View file

@ -280,7 +280,7 @@ static int incore ;
static growstring rline ;
static FILE *infile ;
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 ...
*/