mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-18 07:16:23 -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 \
|
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
|
||||||
|
4
flook.c
4
flook.c
@ -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 */
|
||||||
|
2
flook.h
2
flook.h
@ -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) ;
|
||||||
|
|
||||||
|
2
spawn.c
2
spawn.c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user