Category : C++ Source Code
Archive   : VCCRT2.ZIP
Filename : SIZEPTR.H

 
Output of file : SIZEPTR.H contained in archive : VCCRT2.ZIP
/***
*sizeptr.h - defines constants based on memory model
*
* Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved.
*
*Purpose:
* This file defines the constants SIZEC, SIZED, DIST, BDIST based
* on the current memory model.
* SIZEC is for far code models (medium, large).
* SIZED is for large data models (compact, large).
* [Internal]
*
****/

#if (_MSC_VER <= 600)
#define __far _far
#define __near _near
#endif

#ifdef M_I86MM
#undef SIZED
#define SIZEC
#endif

#ifdef M_I86CM
#undef SIZEC
#define SIZED
#endif

#ifdef M_I86LM
#define SIZEC
#define SIZED
#endif

#ifdef SS_NE_DS
#define SIZED
#endif

#ifdef SIZED
#define DIST __far
#define BDIST __near /*bizzare distance*/
#else
#define DIST __near
#define BDIST __far /*bizzare distance*/
#endif


  3 Responses to “Category : C++ Source Code
Archive   : VCCRT2.ZIP
Filename : SIZEPTR.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/