mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-21 04:44:29 +02:00
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:
parent
c41380e578
commit
e321f10fae
@ -303,6 +303,14 @@ typedef signed long LONG;
|
||||
|
||||
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
|
||||
unreferenced parameter 'x'
|
||||
|
Loading…
x
Reference in New Issue
Block a user