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 void freewhile( struct while_block *wp) ;
|
||||||
static int macarg( char *tok, int toksz) ;
|
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.
|
* 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 */
|
extern boolean clexec ; /* command line execution flag */
|
||||||
|
|
||||||
|
|
||||||
void ue_system( const char *cmd) ;
|
|
||||||
int namedcmd( int f, int n) ;
|
int namedcmd( int f, int n) ;
|
||||||
int execcmd( int f, int n) ;
|
int execcmd( int f, int n) ;
|
||||||
void gettoken( char *tok, int maxtoksize) ;
|
void gettoken( char *tok, int maxtoksize) ;
|
||||||
|
10
input.c
10
input.c
@ -11,6 +11,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.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() */
|
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
|
* 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
|
* 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 */
|
extern const int nlc ; /* end of input char */
|
||||||
|
|
||||||
|
|
||||||
|
void ue_system( const char *cmd) ;
|
||||||
int mlyesno( const char *prompt) ;
|
int mlyesno( const char *prompt) ;
|
||||||
int newmlarg( char **outbufref, const char *prompt, int size) ;
|
int newmlarg( char **outbufref, const char *prompt, int size) ;
|
||||||
int newmlargt( char **outbufref, const char *prompt, int size) ;
|
int newmlargt( char **outbufref, const char *prompt, int size) ;
|
||||||
|
4
spawn.h
4
spawn.h
@ -5,7 +5,3 @@ int spawn( int f, int n) ;
|
|||||||
int execprg( int f, int n) ;
|
int execprg( int f, int n) ;
|
||||||
int pipecmd( int f, int n) ;
|
int pipecmd( int f, int n) ;
|
||||||
int filter_buffer( int f, int n) ;
|
int filter_buffer( int f, int n) ;
|
||||||
int sys( char *cmd) ;
|
|
||||||
int shellprog( char *cmd) ;
|
|
||||||
int execprog( char *cmd) ;
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user