cmdcount_t
Add a type to force g.{command_count,last_command_count,multi} to have the
same type (because cmd.c: g.multi = g.command_count;) and some resulting
cleanup.
This commit is contained in:
@@ -247,7 +247,7 @@ extern const char *cmdname_from_func(int(*)(void), char *, boolean);
|
|||||||
extern boolean redraw_cmd(char);
|
extern boolean redraw_cmd(char);
|
||||||
extern const char *levltyp_to_name(int);
|
extern const char *levltyp_to_name(int);
|
||||||
extern void reset_occupations(void);
|
extern void reset_occupations(void);
|
||||||
extern void set_occupation(int(*)(void), const char *, int);
|
extern void set_occupation(int(*)(void), const char *, cmdcount_t);
|
||||||
extern void cmdq_add_ec(int(*)(void));
|
extern void cmdq_add_ec(int(*)(void));
|
||||||
extern void cmdq_add_key(char);
|
extern void cmdq_add_key(char);
|
||||||
extern struct _cmd_queue *cmdq_pop(void);
|
extern struct _cmd_queue *cmdq_pop(void);
|
||||||
|
|||||||
@@ -214,7 +214,7 @@ reset_occupations(void)
|
|||||||
* function times out by its own means.
|
* function times out by its own means.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
set_occupation(int (*fn)(void), const char *txt, int xtime)
|
set_occupation(int (*fn)(void), const char *txt, cmdcount_t xtime)
|
||||||
{
|
{
|
||||||
if (xtime) {
|
if (xtime) {
|
||||||
g.occupation = timed_occupation;
|
g.occupation = timed_occupation;
|
||||||
|
|||||||
Reference in New Issue
Block a user