1
0
mirror of https://git.zap.org.au/git/trader.git synced 2024-11-03 17:27:29 -05:00

Rename get_yn_answer() to answer_yesno()

This commit is contained in:
John Zaitseff 2011-07-11 14:23:16 +10:00
parent 6436a68f8b
commit 5055ea57ac
2 changed files with 5 additions and 5 deletions

View File

@ -390,9 +390,9 @@ int attrpr (WINDOW *win, int attr, const char *format, ...)
************************************************************************/
/*-----------------------------------------------------------------------
Function: get_yn_answer - Read a Yes/No answer and return true/false
Arguments: win - Window to use
Returns: bool - true if Yes ("Y") was selected, else false
Function: answer_yesno - Read a Yes/No answer and return true/false
Arguments: win - Window to use
Returns: bool - true if Yes ("Y") was selected, else false
This function waits for either "Y" or "N" to be pressed on the
keyboard. If "Y" was pressed, "Yes." is printed and true is returned.
@ -400,7 +400,7 @@ int attrpr (WINDOW *win, int attr, const char *format, ...)
the cursor becomes invisible after this function.
*/
bool get_yn_answer (WINDOW *win)
bool answer_yesno (WINDOW *win)
{
int key, oldattr;
bool ok;

View File

@ -157,7 +157,7 @@ extern int attrpr (WINDOW *win, int attr, const char *format, ...)
// Input routines
extern bool get_yn_answer (WINDOW *win);
extern bool answer_yesno (WINDOW *win);
extern int gettxchar (WINDOW *win);
extern int gettxline (WINDOW *win, char *buf, int bufsize, bool multifield,
int maxlen, const char *emptyval, const char *defaultval,