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
|
|
@ -41,7 +41,7 @@ int fusecnt = 0;
|
|||
* Find an empty slot in the daemon list
|
||||
*/
|
||||
struct delayed_action *
|
||||
d_slot()
|
||||
d_slot(void)
|
||||
{
|
||||
reg int i;
|
||||
reg struct delayed_action *dev;
|
||||
|
|
@ -57,7 +57,7 @@ d_slot()
|
|||
* Find an empty slot in the fuses list
|
||||
*/
|
||||
struct delayed_action *
|
||||
f_slot()
|
||||
f_slot(void)
|
||||
{
|
||||
reg int i;
|
||||
reg struct delayed_action *dev;
|
||||
|
|
@ -74,8 +74,7 @@ f_slot()
|
|||
*/
|
||||
|
||||
struct delayed_action *
|
||||
find_slot(func)
|
||||
reg int (*func)();
|
||||
find_slot(int (*func)())
|
||||
{
|
||||
reg int i;
|
||||
reg struct delayed_action *dev;
|
||||
|
|
@ -91,9 +90,8 @@ reg int (*func)();
|
|||
* Start a daemon, takes a function.
|
||||
*/
|
||||
|
||||
start_daemon(dfunc, arg, type)
|
||||
reg VOID *arg;
|
||||
reg int type, (*dfunc)();
|
||||
void
|
||||
start_daemon(int (*dfunc)(), VOID *arg, int type)
|
||||
{
|
||||
reg struct delayed_action *dev;
|
||||
|
||||
|
|
@ -112,8 +110,8 @@ reg int type, (*dfunc)();
|
|||
* Remove a daemon from the list
|
||||
*/
|
||||
|
||||
kill_daemon(dfunc)
|
||||
reg int (*dfunc)();
|
||||
void
|
||||
kill_daemon(int (*dfunc)())
|
||||
{
|
||||
reg struct delayed_action *dev;
|
||||
reg int i;
|
||||
|
|
@ -140,8 +138,8 @@ reg int (*dfunc)();
|
|||
* passing the argument to the function.
|
||||
*/
|
||||
|
||||
do_daemons(flag)
|
||||
reg int flag;
|
||||
void
|
||||
do_daemons(int flag)
|
||||
{
|
||||
struct delayed_action *dev;
|
||||
int i;
|
||||
|
|
@ -165,9 +163,8 @@ reg int flag;
|
|||
* Start a fuse to go off in a certain number of turns
|
||||
*/
|
||||
|
||||
fuse(dfunc, arg, time, type)
|
||||
VOID *arg;
|
||||
reg int (*dfunc)(), time, type;
|
||||
void
|
||||
fuse(int (*dfunc)(), VOID *arg, int time, int type)
|
||||
{
|
||||
reg struct delayed_action *wire;
|
||||
|
||||
|
|
@ -186,8 +183,8 @@ reg int (*dfunc)(), time, type;
|
|||
* Increase the time until a fuse goes off
|
||||
*/
|
||||
|
||||
lengthen(dfunc, xtime)
|
||||
reg int (*dfunc)(), xtime;
|
||||
void
|
||||
lengthen(int (*dfunc)(), int xtime)
|
||||
{
|
||||
reg struct delayed_action *wire;
|
||||
|
||||
|
|
@ -201,8 +198,8 @@ reg int (*dfunc)(), xtime;
|
|||
* Put out a fuse
|
||||
*/
|
||||
|
||||
extinguish(dfunc)
|
||||
reg int (*dfunc)();
|
||||
void
|
||||
extinguish(int (*dfunc)())
|
||||
{
|
||||
reg struct delayed_action *wire;
|
||||
|
||||
|
|
@ -220,8 +217,8 @@ reg int (*dfunc)();
|
|||
* Decrement counters and start needed fuses
|
||||
*/
|
||||
|
||||
do_fuses(flag)
|
||||
reg int flag;
|
||||
void
|
||||
do_fuses(int flag)
|
||||
{
|
||||
struct delayed_action *wire;
|
||||
int i;
|
||||
|
|
@ -250,7 +247,8 @@ reg int flag;
|
|||
* Show wizard number of demaons and memory blocks used
|
||||
*/
|
||||
|
||||
activity()
|
||||
void
|
||||
activity(void)
|
||||
{
|
||||
msg("Daemons = %d : Fuses = %d : Memory Items = %d : Memory Used = %d",
|
||||
demoncnt,fusecnt,total,md_memused());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue