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 eeee725bf9
commit 3cf1b87914
4 changed files with 8 additions and 6 deletions

View File

@@ -533,7 +533,7 @@ exerchk(void)
exerper();
if (g.moves >= g.context.next_attrib_check) {
debugpline1("exerchk: ready to test. multi = %d.", g.multi);
debugpline1("exerchk: ready to test. multi = %ld.", g.multi);
}
/* Are we ready for a test? */
if (g.moves >= g.context.next_attrib_check && !g.multi) {

View File

@@ -4795,7 +4795,7 @@ get_count(
char *allowchars,
char inkey,
long maxcount,
long *count,
cmdcount_t *count,
boolean historicmsg) /* whether to include in ^P history: True => yes */
{
char qbuf[QBUFSZ];