mirror of
https://git.zap.org.au/git/trader.git
synced 2025-01-03 14:57:41 -05:00
Add a few more function comments
This commit is contained in:
parent
da7477dc28
commit
ee259b8a83
@ -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"
|
// This function is documented in the file "help.h"
|
||||||
|
|
||||||
|
|
||||||
/***********************************************************************/
|
/***********************************************************************/
|
||||||
|
// show_help: Show instructions on how to play the game
|
||||||
|
|
||||||
void show_help (void)
|
void show_help (void)
|
||||||
{
|
{
|
||||||
int curpage = 0;
|
int curpage = 0;
|
||||||
@ -249,7 +251,6 @@ void show_help (void)
|
|||||||
default:
|
default:
|
||||||
waddch(curwin, '^' | curattr);
|
waddch(curwin, '^' | curattr);
|
||||||
waddch(curwin, *s | curattr);
|
waddch(curwin, *s | curattr);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -315,14 +316,12 @@ void show_help (void)
|
|||||||
default:
|
default:
|
||||||
waddch(curwin, '~' | curattr);
|
waddch(curwin, '~' | curattr);
|
||||||
waddch(curwin, *s | curattr);
|
waddch(curwin, *s | curattr);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// Print the character
|
// Print the character
|
||||||
waddch(curwin, *s | curattr);
|
waddch(curwin, *s | curattr);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
s++;
|
s++;
|
||||||
|
10
src/trader.c
10
src/trader.c
@ -188,6 +188,8 @@ int main (int argc, char *argv[])
|
|||||||
|
|
||||||
|
|
||||||
/***********************************************************************/
|
/***********************************************************************/
|
||||||
|
// process_cmdline: Process command line arguments
|
||||||
|
|
||||||
void process_cmdline (int argc, char *argv[])
|
void process_cmdline (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int c;
|
int c;
|
||||||
@ -268,6 +270,8 @@ void process_cmdline (int argc, char *argv[])
|
|||||||
|
|
||||||
|
|
||||||
/***********************************************************************/
|
/***********************************************************************/
|
||||||
|
// show_version: Show program version information
|
||||||
|
|
||||||
void show_version (void)
|
void show_version (void)
|
||||||
{
|
{
|
||||||
printf("\
|
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)
|
void show_usage (int status)
|
||||||
{
|
{
|
||||||
const char *pn = program_name();
|
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)
|
void init_program (void)
|
||||||
{
|
{
|
||||||
// Initialise the random number generator
|
// Initialise the random number generator
|
||||||
@ -355,6 +363,8 @@ void init_program (void)
|
|||||||
|
|
||||||
|
|
||||||
/***********************************************************************/
|
/***********************************************************************/
|
||||||
|
// end_program: Deinitialise program-wide functions
|
||||||
|
|
||||||
void end_program (void)
|
void end_program (void)
|
||||||
{
|
{
|
||||||
end_screen();
|
end_screen();
|
||||||
|
Loading…
Reference in New Issue
Block a user