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

  1. #ifndef __DISPDEF__
  2. #define __DISPDEF__
  3. typedef void (*HELPFUNC)(char *, char *);
  4. typedef int (*EXECFUNC)(char *, char*, int, char* []);
  5. struct DISPENTRY {
  6. char* action;
  7. HELPFUNC help;
  8. EXECFUNC exec;
  9. };
  10. #define DEFHELP(x) void x(char *, char *)
  11. #define DEFEXEC(x) int x(char *, char *, int, char* []);
  12. #define DEFDISPTABLE(t) static DISPENTRY t[]
  13. #define DEFDISPSIZE(n, t) static int n = sizeof(t) / sizeof(DISPENTRY);
  14. #endif