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:
nhkeni
2022-02-27 19:57:16 -05:00
parent ab16cf83b1
commit 16ea5e7fa6
2 changed files with 2 additions and 2 deletions

View File

@@ -247,7 +247,7 @@ extern const char *cmdname_from_func(int(*)(void), char *, boolean);
extern boolean redraw_cmd(char);
extern const char *levltyp_to_name(int);
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_key(char);
extern struct _cmd_queue *cmdq_pop(void);

View File

@@ -214,7 +214,7 @@ reset_occupations(void)
* function times out by its own means.
*/
void
set_occupation(int (*fn)(void), const char *txt, int xtime)
set_occupation(int (*fn)(void), const char *txt, cmdcount_t xtime)
{
if (xtime) {
g.occupation = timed_occupation;