XRogue: convert to ANSI-style function declarations.
This commit is contained in:
parent
e8e6e604c3
commit
2853120387
41 changed files with 1281 additions and 908 deletions
|
|
@ -16,12 +16,17 @@
|
|||
#include <string.h>
|
||||
#include "rogue.h"
|
||||
|
||||
bool open_market(void);
|
||||
void trans_line(void);
|
||||
char *typ_name(struct object *obj);
|
||||
|
||||
/*
|
||||
* buy_it:
|
||||
* Buy the item on which the hero stands
|
||||
*/
|
||||
|
||||
buy_it()
|
||||
void
|
||||
buy_it(void)
|
||||
{
|
||||
reg int wh;
|
||||
struct linked_list *item = NULL;
|
||||
|
|
@ -84,10 +89,11 @@ buy_it()
|
|||
/*
|
||||
* do_post:
|
||||
* Put a trading post room and stuff on the screen
|
||||
* startup: True if equipping the player at the beginning of the game
|
||||
*/
|
||||
|
||||
do_post(startup)
|
||||
bool startup; /* True if equipping the player at the beginning of the game */
|
||||
void
|
||||
do_post(bool startup)
|
||||
{
|
||||
coord tp;
|
||||
reg int i, j = 0, k;
|
||||
|
|
@ -348,7 +354,8 @@ bool startup; /* True if equipping the player at the beginning of the game */
|
|||
* Retruns TRUE when ok do to transacting
|
||||
*/
|
||||
|
||||
open_market()
|
||||
bool
|
||||
open_market(void)
|
||||
{
|
||||
if (trader >= MAXPURCH && !wizard && level != 0) {
|
||||
msg("The market is closed. The stairs are that-a-way! ");
|
||||
|
|
@ -364,7 +371,8 @@ open_market()
|
|||
* Price the object that the hero stands on
|
||||
*/
|
||||
|
||||
price_it()
|
||||
bool
|
||||
price_it(void)
|
||||
{
|
||||
reg struct linked_list *item;
|
||||
reg struct object *obj;
|
||||
|
|
@ -404,7 +412,8 @@ price_it()
|
|||
* Sell an item to the trading post
|
||||
*/
|
||||
|
||||
sell_it()
|
||||
void
|
||||
sell_it(void)
|
||||
{
|
||||
reg struct linked_list *item;
|
||||
reg struct object *obj;
|
||||
|
|
@ -451,7 +460,8 @@ sell_it()
|
|||
* Show how many transactions the hero has left
|
||||
*/
|
||||
|
||||
trans_line()
|
||||
void
|
||||
trans_line(void)
|
||||
{
|
||||
if (level == 0)
|
||||
sprintf(prbuf, "You are welcome to spend whatever gold you have.");
|
||||
|
|
@ -472,8 +482,7 @@ trans_line()
|
|||
*/
|
||||
|
||||
char *
|
||||
typ_name(obj)
|
||||
reg struct object *obj;
|
||||
typ_name(struct object *obj)
|
||||
{
|
||||
static char buff[20];
|
||||
reg int wh;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue