1
0
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:
Renaud 2015-10-05 14:15:24 +08:00
parent 15453a9d52
commit 45f138ac07
2 changed files with 6 additions and 19 deletions

24
input.c
View File

@ -54,7 +54,7 @@ int abortc = CONTROL | 'G' ; /* current abort command char */
const int nlc = CONTROL | 'J' ; /* end of input 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) ; static void outstring( char *s) ;
@ -86,22 +86,14 @@ int mlyesno( const char *prompt)
} }
/* /*
* nextarg: * newnextarg:
* get the next argument * get the next argument
* *
* const char *prompt; prompt to use if we must be interactive * char **outbufref ; buffer to put token into
* char *buffer; buffer to put token into * const char *prompt ; prompt to use if we must be interactive
* int size; size of the buffer * int size ; size of the buffer
* int terminator; terminating char to be used on interactive fetch * 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, static int newnextarg( char **outbufref, const char *prompt, int size,
int terminator) { int terminator) {
int status ; int status ;
@ -142,10 +134,6 @@ static int newnextarg( char **outbufref, const char *prompt, int size,
* return. Handle erase, kill, and abort keys. * 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) { int newmlarg( char **outbufref, const char *prompt, int size) {
return newnextarg( outbufref, prompt, size, nlc) ; return newnextarg( outbufref, prompt, size, nlc) ;
} }

View File

@ -23,7 +23,6 @@ extern const int nlc ; /* end of input char */
int mlyesno( const char *prompt) ; int mlyesno( const char *prompt) ;
int mlreply( const char *prompt, char *buf, int nbuf) ;
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) ;
int ectoc( int c) ; int ectoc( int c) ;