mirror of
https://github.com/rfivet/uemacs.git
synced 2025-09-26 15:04:04 -04:00
Review system() dependencies and clean up obsolete function prototypes in spawn interface.
This commit is contained in:
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
|
||||
|
Reference in New Issue
Block a user