Add _XfeGetValuesCastAndAssign() and _XfeSwap().

This commit is contained in:
ramiro 1998-06-04 08:47:34 +00:00
parent fda095a55a
commit 8b208caaf7

View File

@ -190,6 +190,31 @@ if ((wc)->class_name.method == flag) \
}
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* GetValues() cast and assign macro. */
/* */
/*----------------------------------------------------------------------*/
#define _XfeGetValuesCastAndAssign(av,i,v) \
{ \
*((XtArgVal *) av[i] . value) = (XtArgVal) (v); \
}
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* Swap two values of a arbitrary type macro. */
/* */
/*----------------------------------------------------------------------*/
#define _XfeSwap(_x,_y,_t) \
{ \
_t __tmp__ = _x; \
\
_x = _y; \
_y = __tmp__; \
}
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* _XfeIsAlive() macro. */