mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-17 23:06:25 -05:00
Review system() dependencies and clean up obsolete function prototypes in spawn interface.
This commit is contained in:
parent
70a5a6b636
commit
bc11a0c913
9
exec.c
9
exec.c
@ -82,15 +82,6 @@ static int dobuf( struct buffer *bp) ;
|
||||
static void freewhile( struct while_block *wp) ;
|
||||
static int macarg( char *tok, int toksz) ;
|
||||
|
||||
void ue_system( const char *cmd) {
|
||||
int ret ;
|
||||
|
||||
ret = system( cmd) ;
|
||||
if( ret == -1) {
|
||||
/* some actual handling needed here */
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Execute a named command even if it is not bound.
|
||||
*/
|
||||
|
1
exec.h
1
exec.h
@ -15,7 +15,6 @@ int execproc( int f, int n) ;
|
||||
extern boolean clexec ; /* command line execution flag */
|
||||
|
||||
|
||||
void ue_system( const char *cmd) ;
|
||||
int namedcmd( int f, int n) ;
|
||||
int execcmd( int f, int n) ;
|
||||
void gettoken( char *tok, int maxtoksize) ;
|
||||
|
10
input.c
10
input.c
@ -11,6 +11,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@ -50,6 +51,15 @@ const int nlc = CONTROL | 'J' ; /* end of input char */
|
||||
static const int quotec = 0x11 ; /* quote char during getstring() */
|
||||
|
||||
|
||||
void ue_system( const char *cmd) {
|
||||
int ret ;
|
||||
|
||||
ret = system( cmd) ;
|
||||
if( ret == -1) {
|
||||
/* some actual handling needed here */
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Ask a yes or no question in the message line. Return either TRUE, FALSE, or
|
||||
* ABORT. The ABORT status is returned if the user bumps out of the question
|
||||
|
1
input.h
1
input.h
@ -21,6 +21,7 @@ extern int abortc; /* current abort command char */
|
||||
extern const int nlc ; /* end of input char */
|
||||
|
||||
|
||||
void ue_system( const char *cmd) ;
|
||||
int mlyesno( const char *prompt) ;
|
||||
int newmlarg( char **outbufref, const char *prompt, int size) ;
|
||||
int newmlargt( char **outbufref, const char *prompt, int size) ;
|
||||
|
Loading…
Reference in New Issue
Block a user