Rename daemon() to start_daemon().

daemon() conflicted with the standard library function, which is
included by default on OS X.
This commit is contained in:
John "Elwin" Edwards 2013-09-07 08:08:00 -04:00
parent 05b8759305
commit 720d587422
12 changed files with 25 additions and 25 deletions

View file

@ -84,10 +84,10 @@ reg int (*func)();
/*
* daemon:
* start_daemon:
* Start a daemon, takes a function.
*/
daemon(func, arg, type)
start_daemon(func, arg, type)
reg int arg, type, (*func)();
{
reg struct delayed_action *dev;

View file

@ -102,7 +102,7 @@ register struct thing *tp;
swander()
{
daemon(rollwand, 0, BEFORE);
start_daemon(rollwand, 0, BEFORE);
}
/*

View file

@ -227,12 +227,12 @@ char **envp;
/*
* Start up daemons and fuses
*/
daemon(doctor, &player, AFTER);
start_daemon(doctor, &player, AFTER);
fuse(swander, 0, WANDERTIME, AFTER);
daemon(stomach, 0, AFTER);
daemon(runners, 0, AFTER);
start_daemon(stomach, 0, AFTER);
start_daemon(runners, 0, AFTER);
if (player.t_ctype == C_THIEF)
daemon(trap_look, 0, AFTER);
start_daemon(trap_look, 0, AFTER);
/* Choose a quest item */
quest_item = rnd(MAXRELIC);

View file

@ -702,7 +702,7 @@ int which;
* if he becomes a thief then add the trap_look() daemon
*/
if (obj->o_ac == C_THIEF)
daemon(trap_look, 0, AFTER);
start_daemon(trap_look, 0, AFTER);
char_type = player.t_ctype = obj->o_ac;
save = pstats.s_hpt;
max_stats.s_hpt = pstats.s_hpt = 0;

View file

@ -84,9 +84,9 @@ register struct object *obj;
}
}
when R_SEARCH:
daemon(ring_search, 0, AFTER);
start_daemon(ring_search, 0, AFTER);
when R_TELEPORT:
daemon(ring_teleport, 0, AFTER);
start_daemon(ring_teleport, 0, AFTER);
}
status(FALSE);
if (r_know[obj->o_which] && r_guess[obj->o_which])

View file

@ -179,7 +179,7 @@ wear()
msg("wearing %s",inv_name(obj,TRUE));
cur_misc[WEAR_GAUNTLET] = obj;
if (obj->o_which == MM_FUMBLE)
daemon(fumble, 0, AFTER);
start_daemon(fumble, 0, AFTER);
}
/*
* the jewel of attacks does an aggavate monster
@ -215,7 +215,7 @@ wear()
msg("wearing %s",inv_name(obj,TRUE));
cur_misc[WEAR_NECKLACE] = obj;
msg("The necklace is beginning to strangle you!");
daemon(strangle, 0, AFTER);
start_daemon(strangle, 0, AFTER);
}
otherwise:
msg("what a strange item you have!");

View file

@ -61,10 +61,10 @@ register int (*func)();
}
/*
* daemon:
* start_daemon:
* Start a daemon, takes a function.
*/
daemon(func, arg, type)
start_daemon(func, arg, type)
int (*func)(), arg, type;
{
register struct delayed_action *dev;

View file

@ -52,7 +52,7 @@ doctor()
*/
swander()
{
daemon(rollwand, 0, BEFORE);
start_daemon(rollwand, 0, BEFORE);
}
/*

View file

@ -206,10 +206,10 @@ char **envp;
/*
* Start up daemons and fuses
*/
daemon(doctor, 0, AFTER);
start_daemon(doctor, 0, AFTER);
fuse(swander, 0, WANDERTIME, AFTER);
daemon(stomach, 0, AFTER);
daemon(runners, 0, AFTER);
start_daemon(stomach, 0, AFTER);
start_daemon(runners, 0, AFTER);
playit();
}

View file

@ -85,10 +85,10 @@ int (*func)();
}
/*
* daemon:
* start_daemon:
* Start a daemon, takes a function.
*/
daemon(func, arg, type)
start_daemon(func, arg, type)
int arg, type, (*func)();
{
d_insert(func, arg, type, DAEMON);

View file

@ -66,7 +66,7 @@ int fromfuse;
swander(fromfuse)
int fromfuse;
{
daemon(rollwand, TRUE, AFTER);
start_daemon(rollwand, TRUE, AFTER);
}

View file

@ -243,15 +243,15 @@ char **envp;
/* Start up daemons and fuses */
daemon(status, TRUE, BEFORE);
daemon(runners, TRUE, AFTER);
start_daemon(status, TRUE, BEFORE);
start_daemon(runners, TRUE, AFTER);
/*
* These daemons have been moved to AFTER because BEFORE daemons
* get called every command, even invalid ones. Hopefully this
* won't break anything.
*/
daemon(doctor, TRUE, AFTER);
daemon(stomach, TRUE, AFTER);
start_daemon(doctor, TRUE, AFTER);
start_daemon(stomach, TRUE, AFTER);
fuse(swander, TRUE, WANDERTIME);
/* Give the rogue his weaponry */