from dev: add MK_PTR and MK_SEG_PTR macros

git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1121 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Kenneth J Davis 2005-03-15 15:25:08 +00:00
parent c41380e578
commit e321f10fae

View File

@ -303,6 +303,14 @@ typedef signed long LONG;
typedef VOID (FAR ASMCFUNC * intvec) (void); typedef VOID (FAR ASMCFUNC * intvec) (void);
#define MK_PTR(type,seg,ofs) ((type FAR*) MK_FP (seg, ofs))
#if __TURBOC__ > 0x202
# define MK_SEG_PTR(type,seg) ((type _seg*) (seg))
#else
# define _seg FAR
# define MK_SEG_PTR(type,seg) MK_PTR (type, seg, 0)
#endif
/* /*
this suppresses the warning this suppresses the warning
unreferenced parameter 'x' unreferenced parameter 'x'