Include flook header in spawn instead of redeclaring function.

This commit is contained in:
Renaud 2013-09-19 14:13:07 +08:00
parent 226c63b63a
commit 34e2041d8e
4 changed files with 5 additions and 5 deletions

View File

@ -178,7 +178,7 @@ region.o: region.c region.h estruct.h line.h utf8.h retcode.h edef.h \
search.o: search.c search.h estruct.h line.h utf8.h retcode.h basic.h \ search.o: search.c search.h estruct.h line.h utf8.h retcode.h basic.h \
display.h edef.h input.h log.h display.h edef.h input.h log.h
spawn.o: spawn.c spawn.h buffer.h estruct.h line.h utf8.h retcode.h \ spawn.o: spawn.c spawn.h buffer.h estruct.h line.h utf8.h retcode.h \
display.h edef.h file.h input.h log.h window.h display.h edef.h file.h flook.h input.h log.h window.h
tcap.o: tcap.c display.h estruct.h line.h utf8.h retcode.h edef.h \ tcap.o: tcap.c display.h estruct.h line.h utf8.h retcode.h edef.h \
termio.h termio.h
termio.o: termio.c termio.h estruct.h line.h utf8.h retcode.h edef.h termio.o: termio.c termio.h estruct.h line.h utf8.h retcode.h edef.h

View File

@ -72,9 +72,9 @@ boolean fexist( const char *fname)
* asked and possible * asked and possible
* *
* char *fname; base file name to search for * char *fname; base file name to search for
* int hflag; Look in the HOME environment variable first? * boolean hflag; Look in the HOME environment variable first?
*/ */
char *flook( const char *fname, int hflag) char *flook( const char *fname, boolean hflag)
{ {
int i; /* index */ int i; /* index */
static char fspec[NSTRING]; /* full path spec to search */ static char fspec[NSTRING]; /* full path spec to search */

View File

@ -8,5 +8,5 @@ extern const char *pathname[] ;
boolean fexist( const char *fname) ; boolean fexist( const char *fname) ;
char *flook( const char *fname, int hflag) ; char *flook( const char *fname, boolean hflag) ;

View File

@ -16,6 +16,7 @@
#include "estruct.h" #include "estruct.h"
#include "edef.h" #include "edef.h"
#include "file.h" #include "file.h"
#include "flook.h"
#include "input.h" #include "input.h"
#include "log.h" #include "log.h"
#include "window.h" #include "window.h"
@ -579,7 +580,6 @@ int execprog(char *cmd)
char *fcb1; /* 4 byte pointer to FCB at PSP+5Ch */ char *fcb1; /* 4 byte pointer to FCB at PSP+5Ch */
char *fcb2; /* 4 byte pointer to FCB at PSP+6Ch */ char *fcb2; /* 4 byte pointer to FCB at PSP+6Ch */
} pblock; } pblock;
char *flook( const char *fname, int hflag) ;
/* parse the command name from the command line */ /* parse the command name from the command line */
sp = prog; sp = prog;