1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2024-09-19 14:05:02 +01:00
notnotdnethack/include/func_tab.h
Ron Nazarov 34aaaf57e1
Replace FDECL, NDECL, VDECL, and E macros with their definitions
E as in the alias for extern, not the completely different E that's an
alias for EXPLOSION used in objects.c.
2024-05-06 00:28:05 +01:00

33 lines
862 B
C

/* SCCS Id: @(#)func_tab.h 3.4 1992/04/03 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
#ifndef FUNC_TAB_H
#define FUNC_TAB_H
struct ext_func_tab {
const char *ef_txt, *ef_desc;
int (*ef_funct)(void);
boolean can_if_buried;
boolean autocomplete;
/* for interrupted repeats; e.g.,
* "searching" => "You stop searching." */
const char *f_text;
};
/* Tells what extended command to do on a command key press */
struct key_tab {
struct ext_func_tab * bind_cmd;
};
/* Linked list of bindings; see "crappy hack" in cmd.c */
struct binding_list_tab {
char key; /* ascii code for key */
char* extcmd; /* extended command key is going to be rebound to */
struct binding_list_tab * next;
};
extern struct ext_func_tab extcmdlist[];
#endif /* FUNC_TAB_H */