mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
444 B
19 lines
444 B
#ifndef __DISPDEF__
|
|
#define __DISPDEF__
|
|
|
|
typedef void (*HELPFUNC)(char *, char *);
|
|
typedef int (*EXECFUNC)(char *, char*, int, char* []);
|
|
|
|
struct DISPENTRY {
|
|
char* action;
|
|
HELPFUNC help;
|
|
EXECFUNC exec;
|
|
};
|
|
|
|
#define DEFHELP(x) void x(char *, char *)
|
|
#define DEFEXEC(x) int x(char *, char *, int, char* []);
|
|
|
|
#define DEFDISPTABLE(t) static DISPENTRY t[]
|
|
#define DEFDISPSIZE(n, t) static int n = sizeof(t) / sizeof(DISPENTRY);
|
|
|
|
#endif
|