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.

66 lines
1.5 KiB

  1. /***
  2. *sizeptr.h - defines constants based on memory model
  3. *
  4. * Copyright (c) 1985-2001, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * This file defines the constants SIZEC, SIZED, DIST, BDIST based
  8. * on the current memory model.
  9. * SIZEC is for far code models (medium, large).
  10. * SIZED is for large data models (compact, large).
  11. *
  12. * [Internal]
  13. *
  14. *Revision History:
  15. * 08-15-89 GJF Fixed copyright, changed far to _far, near to _near
  16. * 10-30-89 GJF Fixed copyright (again)
  17. * 02-14-95 CFW Clean up Mac merge.
  18. * 03-29-95 CFW Add error message to internal headers.
  19. * 12-14-95 JWM Add "#pragma once".
  20. * 02-24-97 GJF Detab-ed.
  21. *
  22. ****/
  23. #if _MSC_VER > 1000 /*IFSTRIP=IGN*/
  24. #pragma once
  25. #endif
  26. #ifndef _INC_SIZEPTR
  27. #define _INC_SIZEPTR
  28. #ifndef _CRTBLD
  29. /*
  30. * This is an internal C runtime header file. It is used when building
  31. * the C runtimes only. It is not to be used as a public header file.
  32. */
  33. #error ERROR: Use of C runtime library internal header file.
  34. #endif /* _CRTBLD */
  35. #ifdef M_I86MM
  36. #undef SIZED
  37. #define SIZEC
  38. #endif
  39. #ifdef M_I86CM
  40. #undef SIZEC
  41. #define SIZED
  42. #endif
  43. #ifdef M_I86LM
  44. #define SIZEC
  45. #define SIZED
  46. #endif
  47. #ifdef SS_NE_DS
  48. #define SIZED
  49. #endif
  50. #ifdef SIZED
  51. #define DIST _far
  52. #define BDIST _near /*bizzare distance*/
  53. #else
  54. #define DIST _near
  55. #define BDIST _far /*bizzare distance*/
  56. #endif
  57. #endif /* _INC_SIZEPTR */