diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/pttstruct.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h index 0c3a18cc..3c547901 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -305,10 +305,10 @@ typedef struct { int num, page, now, level; } menu_t; -typedef struct onekey_t { /* Used to pass commands to the readmenu */ - int key; - int (*fptr)(); -} onekey_t; +/* Used to pass commands to the readmenu. + * direct mapping, indexed by ascii code. */ +#define onekey_size ((int) 'z') +typedef int (* onekey_t)(); #define ANSILINELEN (511) /* Maximum Screen width in chars */ |