1 /* $XFree86: xc/lib/Xaw/XawAlloc.h,v 1.1.2.1 1998/05/16 09:05:23 dawes Exp $ */ 2 3 #define XtStackAlloc(size, stack_cache_array) \ 4 ((size) <= sizeof(stack_cache_array) \ 5 ? (XtPointer)(stack_cache_array) \ 6 : XtMalloc((unsigned)(size))) 7 8 #define XtStackFree(pointer, stack_cache_array) \ 9 if ((pointer) != ((XtPointer)(stack_cache_array))) XtFree(pointer); else 10 11