home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ddkx86v1.zip
/
DDKX86
/
H
/
MAKENEAR.H
< prev
next >
Wrap
Text File
|
1995-04-14
|
2KB
|
39 lines
/*DDK*************************************************************************/
/* */
/* COPYRIGHT (C) Microsoft Corporation, 1989 */
/* COPYRIGHT (C) Microsoft Corporation, 1989 */
/* COPYRIGHT Copyright (C) 1995 IBM Corporation */
/* */
/* The following IBM OS/2 WARP source code is provided to you solely for */
/* the purpose of assisting you in your development of OS/2 WARP device */
/* drivers. You may use this code in accordance with the IBM License */
/* Agreement provided in the IBM Device Driver Source Kit for OS/2. This */
/* Copyright statement may not be removed. */
/* */
/*****************************************************************************/
/*static char *SCCSID = "@(#)makenear.h 6.1 90/12/12";*/
/********************************************************************/
/** Microsoft LAN Manager **/
/********************************************************************/
/*
* makenear.h
* Runtime test for a pointer outside the default data segment.
*
* Portions of this program have been prerecorded.
*
* EXPORTS
* MAKENEAR - converts a far pointer to a near pointer, safely
*
*/
#if defined(DEBUG)
/* extern void near * pascal far MakeNearPtr( void far * );
MAKENEAR( fp ) MakeNearPtr(fp) */
#define MAKENEAR( fp ) ((void near *)LOUSHORT(fp))
#else
#define MAKENEAR( fp ) ((void near *)LOUSHORT(fp))
#endif /* DEBUG */