Don't infringe on POSIX typedef namespace.

This commit is contained in:
nhkeni
2022-03-16 21:31:26 -04:00
parent 3e4ea0a2c3
commit 1e31fee0df
3 changed files with 8 additions and 8 deletions

View File

@@ -675,7 +675,7 @@ struct _cmd_queue {
struct _cmd_queue *next;
};
typedef long cmdcount_t; /* Command counts */
typedef long cmdcount_nht; /* Command counts */
/*
* 'g' -- instance_globals holds engine state that does not need to be
@@ -732,7 +732,7 @@ struct instance_globals {
coord clicklook_cc;
winid en_win;
boolean en_via_menu;
cmdcount_t last_command_count;
cmdcount_nht last_command_count;
struct ext_func_tab *ext_tlist; /* info for rhack() from doextcmd() */
/* dbridge.c */
@@ -745,9 +745,9 @@ struct instance_globals {
int hackpid; /* current process id */
char chosen_windowtype[WINTYPELEN];
int bases[MAXOCLASSES + 1];
cmdcount_t multi;
cmdcount_nht multi;
char command_line[COLNO];
cmdcount_t command_count;
cmdcount_nht command_count;
const char *multi_reason;
char multireasonbuf[QBUFSZ]; /* note: smaller than usual [BUFSZ] */
int nroom;

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 *, cmdcount_t);
extern void set_occupation(int(*)(void), const char *, cmdcount_nht);
extern void cmdq_add_ec(int(*)(void));
extern void cmdq_add_key(char);
extern struct _cmd_queue *cmdq_pop(void);
@@ -279,7 +279,7 @@ extern const char *directionname(int);
extern int isok(int, int);
extern int get_adjacent_loc(const char *, const char *, xchar, xchar, coord *);
extern const char *click_to_cmd(int, int, int);
extern char get_count(char *, char, long, cmdcount_t *, boolean);
extern char get_count(char *, char, long, cmdcount_nht *, boolean);
#ifdef HANGUPHANDLING
extern void hangup(int);
extern void end_of_input(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, cmdcount_t xtime)
set_occupation(int (*fn)(void), const char *txt, cmdcount_nht xtime)
{
if (xtime) {
g.occupation = timed_occupation;
@@ -4766,7 +4766,7 @@ get_count(
char *allowchars,
char inkey,
long maxcount,
cmdcount_t *count,
cmdcount_nht *count,
boolean historicmsg) /* whether to include in ^P history: True => yes */
{
char qbuf[QBUFSZ];