File: addon.h

package info (click to toggle)
rc 1.5b2-0.1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 540 kB
  • ctags: 756
  • sloc: ansic: 5,474; sh: 231; makefile: 138; yacc: 127
file content (38 lines) | stat: -rw-r--r-- 847 bytes parent folder | download | duplicates (2)
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
29
30
31
32
33
34
35
36
37
38
/*
   This file is the interface to the rest of rc for any locally
   defined addon builtins.  By default there are none.
   The interface consists of the following macro.
  
   ADDONS	A comma-separated list of pairs of function pointers
		and string literals.
  
   The addon functions must also have proper prototypes in this file.
   The builtins all have the form:
  
	void b_NAME(char **av);
  
   Builtins report their exit status using set(TRUE) or set(FALSE).
  
   Example:
  
	#define ADDONS	{ b_test, "test" },
	extern void b_test(char **av);
*/

#define ADDONS		/* no addons by default */

#ifdef	DWS

/*
   This is what DaviD Sanderson (dws@cs.wisc.edu) uses.
*/

#undef	ADDONS
#define ADDONS	{ b_access,	"access" },\
		{ b_test, 	"test" },\
		{ b_test,	"[" },

extern void b_access(char **av);
extern void b_test(char **av);

#endif