New macros from Tom Ehlert to save even more bytes.

git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@166 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Bart Oldeman 2001-03-19 05:08:53 +00:00
parent 1c12f47465
commit 513094d9fe
1 changed files with 23 additions and 2 deletions

View File

@ -36,8 +36,8 @@ static char *portab_hRcsId = "$Id$";
/*
* $Log$
* Revision 1.5 2001/03/19 04:50:56 bartoldeman
* See history.txt for overview: put kernel 2022beo1 into CVS
* Revision 1.6 2001/03/19 05:08:53 bartoldeman
* New macros from Tom Ehlert to save even more bytes.
*
* Revision 1.5 2001/03/08 21:15:00 bartoldeman
* Fixes for MK_FP and friends from Tom Ehlert; reduces kernel by 1.5k.
@ -218,3 +218,24 @@ typedef signed long LONG;
#define FP_SEG(fp) (0)
#define FP_OFF(fp) (fp)
#endif
/*
this suppresses the warning
unreferenced parameter 'x'
and (hopefully) generates no code
*/
#if defined(__TURBOC__)
#define UNREFERENCED_PARAMETER(x) if (x);
#else
#define UNREFERENCED_PARAMETER(x) x;
#endif
#if defined(__TURBOC__)
#define FDCALL pascal
#define CDECL cdecl
#else
#define FDCALL
#define CDECL
#endif