Debian Codegraph @

commands.h

raw
1 /**************************************************************************
2 * This program is Copyright (C) 1986-2002 by Jonathan Payne. JOVE is *
3 * provided by Jonathan and Jovehacks without charge and without *
4 * warranty. You may copy, modify, and/or distribute JOVE, provided that *
5 * this notice is included in all the source files and documentation. *
6 **************************************************************************/
7
8 typedef void(*cmdproc_t) (void);
9
10 struct cmd {
11 /* Type and Name must match data_obj */
12 int Type;
13 const char *Name;
14 const cmdproc_t c_proc;
15 #ifdef MAC
16 char c_map; /* prefix map for About Jove... */
17 char c_key; /* key binding for About Jove... */
18 #endif
19 };
20
21 extern const struct cmd commands[];
22 extern const struct cmd *cmdidx[IDXSZ];
23
24 extern const struct cmd
25 *FindCmd(cmdproc_t);
26
27 extern void
28 ExecCmd(const data_obj *cp);