File: commands.h

package info (click to toggle)
jove 4.17.5.5-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 2,476 kB
  • sloc: ansic: 29,235; makefile: 534; sh: 428; python: 45
file content (28 lines) | stat: -rw-r--r-- 918 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**************************************************************************
 * This program is Copyright (C) 1986-2002 by Jonathan Payne.  JOVE is    *
 * provided by Jonathan and Jovehacks without charge and without          *
 * warranty.  You may copy, modify, and/or distribute JOVE, provided that *
 * this notice is included in all the source files and documentation.     *
 **************************************************************************/

typedef void(*cmdproc_t)  ptrproto((void));

struct cmd {
	/* Type and Name must match data_obj */
	int	Type;
	const char	*Name;
	const cmdproc_t 	c_proc;
#ifdef MAC
	char c_map;			/* prefix map for About Jove... */
	char c_key;			/* key binding for About Jove... */
#endif
};

extern const struct cmd	commands[];
extern const struct cmd	*cmdidx[IDXSZ];

extern const struct cmd
	*FindCmd proto((cmdproc_t));

extern void
	ExecCmd proto((const data_obj *cp));