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.

58 lines
1.1 KiB

  1. /*++ BUILD Version: 0001 // Increment this if a change has global effects
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. interpre.h
  5. Abstract:
  6. This is used by the command parser.
  7. Author:
  8. Dan Hinsley (danhi) 8-Jun-1991
  9. Environment:
  10. User Mode - Win32
  11. Portable to any flat, 32-bit environment. (Uses Win32 typedefs.)
  12. Requires ANSI C extensions: slash-slash comments.
  13. --*/
  14. #define X_RULE 0
  15. #define X_OR 1
  16. #define X_PROC 2
  17. #define X_TOKEN 3
  18. #define X_CHECK 4
  19. #define X_CONDIT 5
  20. #define X_ACTION 6
  21. #define X_ACCEPT 7
  22. #define X_DEFINE 8
  23. #define X_PUSH 9
  24. #define X_ANY 10
  25. #define X_SWITCH 11
  26. #define XF_PTR 0x01 /* how to assign values to entries */
  27. #define XF_INDEX 0x02
  28. #define XF_NEW_STRING 0x04
  29. #define XF_VALUE 0x08 /* how to output those entries */
  30. #define XF_PRINT 0x10
  31. #define XF_DEFINE 0x20
  32. #define XF_TOKEN 0x40
  33. #define XF_OR 0x80
  34. #define MX_PRINT(A) ((A).x_print)
  35. #define MX_TYPE(A) ((A).x_type)
  36. #define MX_FLAGS(A) ((A).x_flags)
  37. typedef struct s_x {
  38. char *x_print;
  39. char x_type;
  40. char x_flags;
  41. } X;
  42. extern X X_array[];