Leaked source code of windows server 2003
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.

65 lines
2.7 KiB

  1. // sdbfdef.h Source Browser .SBR file definitions
  2. #define S_EOF 255
  3. #define SBR_L_UNDEF 0 // Undefined
  4. #define SBR_L_BASIC 1 // Basic
  5. #define SBR_L_C 2 // C
  6. #define SBR_L_FORTRAN 3 // Fortran
  7. #define SBR_L_MASM 4 // MASM
  8. #define SBR_L_PASCAL 5 // Pascal
  9. #define SBR_L_COBOL 6 // Cobol
  10. #define SBR_REC_HEADER 0x00 // Header
  11. #define SBR_REC_MODULE 0x01 // Module definition
  12. #define SBR_REC_LINDEF 0x02 // Line Number
  13. #define SBR_REC_SYMDEF 0x03 // Symbol Definition
  14. #define SBR_REC_SYMREFUSE 0x04 // Symbol Reference
  15. #define SBR_REC_SYMREFSET 0x05 // Symbol Ref and assign
  16. #define SBR_REC_MACROBEG 0x06 // Macro Start
  17. #define SBR_REC_MACROEND 0x07 // Macro End
  18. #define SBR_REC_BLKBEG 0x08 // Block Start
  19. #define SBR_REC_BLKEND 0x09 // Block End
  20. #define SBR_REC_MODEND 0x0A // Module End
  21. #define SBR_REC_OWNER 0x0B // Set owner of current block
  22. // Column information is no longer supported in PWB 1.00 (ignored if present)
  23. #define SBR_REC_NOCOLUMN 1 // Missing column default 1
  24. #define SBR_TYPBITS 5
  25. #define SBR_TYPSHIFT 11
  26. #define SBR_TYPMASK (0x1f << SBR_TYPSHIFT)
  27. #define SBR_TYP_FUNCTION (0x01 << SBR_TYPSHIFT)
  28. #define SBR_TYP_LABEL (0x02 << SBR_TYPSHIFT)
  29. #define SBR_TYP_PARAMETER (0x03 << SBR_TYPSHIFT)
  30. #define SBR_TYP_VARIABLE (0x04 << SBR_TYPSHIFT)
  31. #define SBR_TYP_CONSTANT (0x05 << SBR_TYPSHIFT)
  32. #define SBR_TYP_MACRO (0x06 << SBR_TYPSHIFT)
  33. #define SBR_TYP_TYPEDEF (0x07 << SBR_TYPSHIFT)
  34. #define SBR_TYP_STRUCNAM (0x08 << SBR_TYPSHIFT)
  35. #define SBR_TYP_ENUMNAM (0x09 << SBR_TYPSHIFT)
  36. #define SBR_TYP_ENUMMEM (0x0A << SBR_TYPSHIFT)
  37. #define SBR_TYP_UNIONNAM (0x0B << SBR_TYPSHIFT)
  38. #define SBR_TYP_SEGMENT (0x0C << SBR_TYPSHIFT)
  39. #define SBR_TYP_GROUP (0x0D << SBR_TYPSHIFT)
  40. #define SBR_TYP_PROGRAM (0x0E << SBR_TYPSHIFT)
  41. #define SBR_ATRBITS 11
  42. #define SBR_ATRSHIFT 0
  43. #define SBR_ATRMASK (0x3ff << SBR_ATRSHIFT)
  44. #define SBR_ATR_LOCAL (0x001 << SBR_ATRSHIFT)
  45. #define SBR_ATR_STATIC (0x002 << SBR_ATRSHIFT)
  46. #define SBR_ATR_SHARED (0x004 << SBR_ATRSHIFT)
  47. #define SBR_ATR_NEAR (0x008 << SBR_ATRSHIFT)
  48. #define SBR_ATR_COMMON (0x010 << SBR_ATRSHIFT)
  49. #define SBR_ATR_DECL_ONLY (0x020 << SBR_ATRSHIFT)
  50. #define SBR_ATR_PUBLIC (0x040 << SBR_ATRSHIFT)
  51. #define SBR_ATR_NAMED (0x080 << SBR_ATRSHIFT)
  52. #define SBR_ATR_MODULE (0x100 << SBR_ATRSHIFT)
  53. #define SBR_VER_MAJOR 1 /* Major version */
  54. #define SBR_VER_MINOR 1 /* Minor version */