mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-18 23:36:23 -05:00
Remove mlreply after transition to replacement newmlarg.
This commit is contained in:
parent
15453a9d52
commit
45f138ac07
24
input.c
24
input.c
@ -54,7 +54,7 @@ int abortc = CONTROL | 'G' ; /* current abort command char */
|
||||
|
||||
const int nlc = CONTROL | 'J' ; /* end of input char */
|
||||
|
||||
static const int quotec = 0x11 ; /* quote char during mlreply() */
|
||||
static const int quotec = 0x11 ; /* quote char during getstring() */
|
||||
|
||||
static void outstring( char *s) ;
|
||||
|
||||
@ -86,22 +86,14 @@ int mlyesno( const char *prompt)
|
||||
}
|
||||
|
||||
/*
|
||||
* nextarg:
|
||||
* newnextarg:
|
||||
* get the next argument
|
||||
*
|
||||
* const char *prompt; prompt to use if we must be interactive
|
||||
* char *buffer; buffer to put token into
|
||||
* int size; size of the buffer
|
||||
* int terminator; terminating char to be used on interactive fetch
|
||||
* char **outbufref ; buffer to put token into
|
||||
* const char *prompt ; prompt to use if we must be interactive
|
||||
* int size ; size of the buffer
|
||||
* int terminator ; terminating char to be used on interactive fetch
|
||||
*/
|
||||
static int nextarg( const char *prompt, char *buf, int size, int terminator) {
|
||||
/* if we are interactive, go get it! */
|
||||
if( clexec == FALSE)
|
||||
return getstring( prompt, buf, size, terminator) ;
|
||||
else
|
||||
return gettokval( buf, size) ;
|
||||
}
|
||||
|
||||
static int newnextarg( char **outbufref, const char *prompt, int size,
|
||||
int terminator) {
|
||||
int status ;
|
||||
@ -142,10 +134,6 @@ static int newnextarg( char **outbufref, const char *prompt, int size,
|
||||
* return. Handle erase, kill, and abort keys.
|
||||
*/
|
||||
|
||||
int mlreply( const char *prompt, char *buf, int nbuf) {
|
||||
return nextarg( prompt, buf, nbuf, nlc) ;
|
||||
}
|
||||
|
||||
int newmlarg( char **outbufref, const char *prompt, int size) {
|
||||
return newnextarg( outbufref, prompt, size, nlc) ;
|
||||
}
|
||||
|
1
input.h
1
input.h
@ -23,7 +23,6 @@ extern const int nlc ; /* end of input char */
|
||||
|
||||
|
||||
int mlyesno( const char *prompt) ;
|
||||
int mlreply( const char *prompt, char *buf, int nbuf) ;
|
||||
int newmlarg( char **outbufref, const char *prompt, int size) ;
|
||||
int newmlargt( char **outbufref, const char *prompt, int size) ;
|
||||
int ectoc( int c) ;
|
||||
|
Loading…
Reference in New Issue
Block a user