make easier to patch

This commit is contained in:
ceriel 1988-08-19 14:20:03 +00:00
parent 1a6665e21d
commit 98359a035e
2 changed files with 4 additions and 4 deletions

View file

@ -26,7 +26,7 @@ struct header {
#define PROFILE 002 #define PROFILE 002
#define FLOW 004 #define FLOW 004
#define COUNT 010 #define COUNT 010
char em_dir[64] = EM_DIR; /* easier to patch */
char *defargv[] = { char *defargv[] = {
"em", "em",
"e.out", "e.out",
@ -106,7 +106,7 @@ main(argc,argv) char **argv; {
else else
flags[3]= header.h_flags&PROFILE ? 'p' : '-'; flags[3]= header.h_flags&PROFILE ? 'p' : '-';
sprintf(interpret,"%s/lib/em%d%d/em_%s", sprintf(interpret,"%s/lib/em%d%d/em_%s",
EM_DIR,header.h_wsize,header.h_psize,flags); em_dir,header.h_wsize,header.h_psize,flags);
execv(interpret,argv); execv(interpret,argv);
fprintf(stderr,"Interpreter %s not available\n",interpret); fprintf(stderr,"Interpreter %s not available\n",interpret);
} }

View file

@ -26,7 +26,7 @@ struct header {
#define PROFILE 002 #define PROFILE 002
#define FLOW 004 #define FLOW 004
#define COUNT 010 #define COUNT 010
char em_dir[64] = EM_DIR; /* easier to patch */
char *defargv[] = { char *defargv[] = {
"em", "em",
"e.out", "e.out",
@ -106,7 +106,7 @@ main(argc,argv) char **argv; {
else else
flags[3]= header.h_flags&PROFILE ? 'p' : '-'; flags[3]= header.h_flags&PROFILE ? 'p' : '-';
sprintf(interpret,"%s/lib/em%d%d/em_%s", sprintf(interpret,"%s/lib/em%d%d/em_%s",
EM_DIR,header.h_wsize,header.h_psize,flags); em_dir,header.h_wsize,header.h_psize,flags);
execv(interpret,argv); execv(interpret,argv);
fprintf(stderr,"Interpreter %s not available\n",interpret); fprintf(stderr,"Interpreter %s not available\n",interpret);
} }