mirror of
https://github.com/rfivet/uemacs.git
synced 2024-11-14 16:46:04 -05:00
Include flook header in spawn instead of redeclaring function.
This commit is contained in:
parent
226c63b63a
commit
34e2041d8e
2
Makefile
2
Makefile
@ -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 \
|
||||
display.h edef.h input.h log.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 \
|
||||
termio.h
|
||||
termio.o: termio.c termio.h estruct.h line.h utf8.h retcode.h edef.h
|
||||
|
4
flook.c
4
flook.c
@ -72,9 +72,9 @@ boolean fexist( const char *fname)
|
||||
* asked and possible
|
||||
*
|
||||
* 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 */
|
||||
static char fspec[NSTRING]; /* full path spec to search */
|
||||
|
2
flook.h
2
flook.h
@ -8,5 +8,5 @@ extern const char *pathname[] ;
|
||||
|
||||
|
||||
boolean fexist( const char *fname) ;
|
||||
char *flook( const char *fname, int hflag) ;
|
||||
char *flook( const char *fname, boolean hflag) ;
|
||||
|
||||
|
2
spawn.c
2
spawn.c
@ -16,6 +16,7 @@
|
||||
#include "estruct.h"
|
||||
#include "edef.h"
|
||||
#include "file.h"
|
||||
#include "flook.h"
|
||||
#include "input.h"
|
||||
#include "log.h"
|
||||
#include "window.h"
|
||||
@ -579,7 +580,6 @@ int execprog(char *cmd)
|
||||
char *fcb1; /* 4 byte pointer to FCB at PSP+5Ch */
|
||||
char *fcb2; /* 4 byte pointer to FCB at PSP+6Ch */
|
||||
} pblock;
|
||||
char *flook( const char *fname, int hflag) ;
|
||||
|
||||
/* parse the command name from the command line */
|
||||
sp = prog;
|
||||
|
Loading…
Reference in New Issue
Block a user