5.3 Makros

/************************************************/
/*        Macro					                */
/************************************************/
#define	GSIZE(x, y)		((x) & 0x00ff), ((unsigned int)(x) >> 8), ((y) & 0x00ff), ((unsigned int)(y) >> 8)
#define CENTER(max, len)	(((int)(max)-(int)(len))>>1<0?0:((int)(max)-(int)(len))>>1)
#define LibChangeBcdVal(x)	(byte)((int)(x >> 4) * 10 + (x & 0x0f))
#define LibChangeValBcd(x)	(x==0?0:(byte)(((x / 10) << 4) | (x % 10)))
#define LibTchRelease()		while(LibTchStackPop()!=NULL)
#define LibDateClr(d)		memset(d,0x00,8)
#define LibModeIconDsp()		        \
{                                               \
  LibPutFarData(130,  0, 44);		        \
  LibPutMessageCenter( 89,131,157,2,IB_PFONT1);	\
}
#define LibFileDateCheck(d)	(far_strncmp(d,_inv_d[0],8)>0 && far_strncmp(d,_inv_d[1],8)<0)

Für Ergänzungen wenden Sie sich bitte an: Jürgen Wagner