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.

67 lines
1.3 KiB

  1. //
  2. // simple minded virtual memory system headers
  3. //
  4. typedef PVOID VA;
  5. #define vaNil 0
  6. #define VM_API pascal
  7. #define InitVM()
  8. #define CloseVM()
  9. #define FreeVa(va,cb) (free((LPV)va))
  10. #define VaAllocCb(cb) ((VA)LpvAllocCb(cb))
  11. #define LpvFromVa(va, wLock) (LPV)(va)
  12. #define DirtyVa(va)
  13. #define UnlockW(w)
  14. #define FreeLpv(lpv) (free(lpv))
  15. typedef VA VP;
  16. #define MkVpVa(vp, va) ((vp) = (VP)va)
  17. #define VaFrVp(vp) ((VA)(vp))
  18. LPV VM_API LpvAllocCb(ULONG cb);
  19. VA VM_API VaAllocGrpCb(WORD grp, ULONG cb);
  20. VOID VM_API FreeGrpVa(WORD grp, VA va, ULONG cb);
  21. #ifdef SWAP_INFO
  22. #define VM_MISC 0
  23. #define VM_SEARCH_DEF 1
  24. #define VM_ADD_DEF 2
  25. #define VM_SEARCH_REF 3
  26. #define VM_ADD_REF 4
  27. #define VM_SEARCH_CAL 5
  28. #define VM_ADD_CAL 6
  29. #define VM_SEARCH_CBY 7
  30. #define VM_ADD_CBY 8
  31. #define VM_SEARCH_ORD 9
  32. #define VM_ADD_ORD 10
  33. #define VM_SEARCH_PROP 11
  34. #define VM_ADD_PROP 12
  35. #define VM_SEARCH_SYM 13
  36. #define VM_ADD_SYM 14
  37. #define VM_SEARCH_MOD 15
  38. #define VM_ADD_MOD 16
  39. #define VM_SORT_ATOMS 17
  40. #define VM_FIX_UNDEFS 18
  41. #define VM_CLEAN_REFS 19
  42. #define VM_INDEX_TREE 20
  43. #define VM_BUILD_MODSYM 21
  44. #define VM_EMIT_ATOMS 22
  45. #define VM_EMIT_TREE 23
  46. extern WORD near iVMClient;
  47. extern WORD near iVMGrp;
  48. #define SetVMClient(x) (iVMClient = (x))
  49. #else
  50. #define SetVMClient(x)
  51. #endif