diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2000-07-17 03:30:30 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2000-07-17 03:30:30 -0400 |
commit | 3f6f71189bc39edb970df722688fb4a6bf2bdfe4 (patch) | |
tree | b53d87e5651c2013b53f1238f60aee74b251a90a /src/LYKeymap.h | |
parent | fe76940414337a9058df2d426bf5527154ca283a (diff) | |
download | lynx-snapshots-3f6f71189bc39edb970df722688fb4a6bf2bdfe4.tar.gz |
snapshot of project "lynx", label v2-8-4dev_5
Diffstat (limited to 'src/LYKeymap.h')
-rw-r--r-- | src/LYKeymap.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/LYKeymap.h b/src/LYKeymap.h index c4f47672..b53e657f 100644 --- a/src/LYKeymap.h +++ b/src/LYKeymap.h @@ -1,11 +1,11 @@ #ifndef LYKEYMAP_H #define LYKEYMAP_H -#ifndef HTUTILS_H #include <HTUtils.h> -#endif +#include <HTList.h> extern BOOLEAN LYisNonAlnumKeyname PARAMS((int ch, int KeyName)); +extern HTList *LYcommandList NOPARAMS; extern char *LYKeycodeToString PARAMS((int c, BOOLEAN upper8)); extern char *fmt_keys PARAMS((int lkc_first, int lkc_second)); extern char *key_for_func PARAMS((int func)); @@ -111,10 +111,13 @@ extern LYKeymap_t key_override[]; /* Variables for holding and passing around lynxactioncodes are * generally of type int, the types LYKeymap_t and LYKeymapCodes * are currently only used for the definitions. That could change. - kw + * + * The values in this enum are indexed against the command names in the + * 'revmap[]' array in LYKeymap.c */ -/* The order of this enum must match the 'revmap[]' array in LYKeymap.c */ typedef enum { LYK_UNKNOWN=0 + , LYK_COMMAND , LYK_1 , LYK_2 , LYK_3 @@ -243,5 +246,16 @@ typedef enum { #endif } LYKeymapCode; +/* + * Symbol table for internal commands. + */ +typedef struct { + LYKeymapCode code; + CONST char *name; + CONST char *doc; +} Kcmd; + +extern Kcmd * LYKeycodeToKcmd PARAMS((LYKeymapCode code)); +extern Kcmd * LYStringToKcmd PARAMS((CONST char * name)); #endif /* LYKEYMAP_H */ |