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

Add a few more function comments

This commit is contained in:
John Zaitseff 2011-07-20 10:50:18 +10:00
parent da7477dc28
commit ee259b8a83
2 changed files with 13 additions and 4 deletions

View File

@ -146,13 +146,15 @@ static const char *help_text[] = {
/************************************************************************
* Help text function definitions *
* Help text function definition *
************************************************************************/
// This function is documented in the file "help.h"
/***********************************************************************/
// show_help: Show instructions on how to play the game
void show_help (void)
{
int curpage = 0;
@ -249,7 +251,6 @@ void show_help (void)
default:
waddch(curwin, '^' | curattr);
waddch(curwin, *s | curattr);
break;
}
break;
@ -315,14 +316,12 @@ void show_help (void)
default:
waddch(curwin, '~' | curattr);
waddch(curwin, *s | curattr);
break;
}
break;
default:
// Print the character
waddch(curwin, *s | curattr);
break;
}
s++;

View File

@ -188,6 +188,8 @@ int main (int argc, char *argv[])
/***********************************************************************/
// process_cmdline: Process command line arguments
void process_cmdline (int argc, char *argv[])
{
int c;
@ -268,6 +270,8 @@ void process_cmdline (int argc, char *argv[])
/***********************************************************************/
// show_version: Show program version information
void show_version (void)
{
printf("\
@ -289,6 +293,8 @@ NO WARRANTY, to the extent permitted by law; see the License for details.\n\
/***********************************************************************/
// show_usage: Show command line usage information
void show_usage (int status)
{
const char *pn = program_name();
@ -338,6 +344,8 @@ playing that game. If GAME is not specified, start a new game.\n\n\
/***********************************************************************/
// init_program: Initialise program-wide functions
void init_program (void)
{
// Initialise the random number generator
@ -355,6 +363,8 @@ void init_program (void)
/***********************************************************************/
// end_program: Deinitialise program-wide functions
void end_program (void)
{
end_screen();