Source code of Windows XP (NT5)
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

#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