home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v1.zip / DDKX86 / H / MAKENEAR.H < prev    next >
Text File  |  1995-04-14  |  2KB  |  39 lines

  1. /*DDK*************************************************************************/
  2. /*                                                                           */
  3. /* COPYRIGHT (C) Microsoft Corporation, 1989                                 */
  4. /* COPYRIGHT (C) Microsoft Corporation, 1989                                 */
  5. /* COPYRIGHT    Copyright (C) 1995 IBM Corporation                           */
  6. /*                                                                           */
  7. /*    The following IBM OS/2 WARP source code is provided to you solely for  */
  8. /*    the purpose of assisting you in your development of OS/2 WARP device   */
  9. /*    drivers. You may use this code in accordance with the IBM License      */
  10. /*    Agreement provided in the IBM Device Driver Source Kit for OS/2. This  */
  11. /*    Copyright statement may not be removed.                                */
  12. /*                                                                           */
  13. /*****************************************************************************/
  14. /*static char *SCCSID = "@(#)makenear.h    6.1 90/12/12";*/
  15. /********************************************************************/
  16. /**                     Microsoft LAN Manager                      **/
  17.  
  18. /********************************************************************/
  19.  
  20. /*
  21.  * makenear.h
  22.  * Runtime test for a pointer outside the default data segment.
  23.  *
  24.  * Portions of this program have been prerecorded.
  25.  *
  26.  * EXPORTS
  27.  *  MAKENEAR    - converts a far pointer to a near pointer, safely
  28.  *
  29.  */
  30.  
  31.  
  32. #if defined(DEBUG)
  33.  /* extern void near * pascal far MakeNearPtr( void far * ); 
  34.     MAKENEAR( fp ) MakeNearPtr(fp) */
  35. #define MAKENEAR( fp ) ((void near *)LOUSHORT(fp))
  36. #else
  37. #define MAKENEAR( fp ) ((void near *)LOUSHORT(fp))
  38. #endif /* DEBUG */
  39.