1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-12-18 07:16:23 -05:00

Missing random.c from commit 198980b, review of newmlargt interface.

This commit is contained in:
Renaud 2015-09-29 15:06:08 +08:00
parent f13ae3957c
commit d3b02af275

View File

@ -1185,18 +1185,11 @@ int fmatch(int ch)
} }
static int iovstring( int f, int n, const char *prompt, int (*fun)( char *)) { static int iovstring( int f, int n, const char *prompt, int (*fun)( char *)) {
newarg_t *argp ;
int status ; /* status return code */ int status ; /* status return code */
char *tstring ; /* string to add */ char *tstring ; /* string to add */
/* ask for string to insert */ /* ask for string to insert */
argp = newmlargt( prompt, 0) ; /* grab as big a token as screen allow */ status = newmlargt( &tstring, prompt, 0) ; /* grab as big a token as screen allow */
if( argp == NULL)
return FALSE ;
status = argp->status ;
tstring = argp->buf ;
free( argp) ;
if( tstring == NULL) if( tstring == NULL)
return status ; return status ;