Listing 4. Set of Defines

#define XCreateGC(d,a,b,c) GrNewGC()
#define XSetFunction(d,g,f)    GrSetGCMode(g,f)
#define GXxor                  GR_MODE_XOR
#define XSetForeground(d,g,c)  GrSetGCForeground(g,c)
#define XSetWindowBackgroundPixmap(d,w,p)
        
#define XSetWindowBackground(d,w,c)
        
#define XSetWindowBorderWidth(d,w,bw)
        
#define XSetWindowBorder(d,w,c)
        
#define XStoreName(d,w,n)      GrSetWindowTitle(w,n)
#define XSetIconName(d,w,n)
#define XDrawLines(d,w,g,ar,cnt,B)
        
#define XFillRectangle(d,w,g,x,y,W,H)
        
#define XDrawString(d,w,g,x,y,s,c)
        
#define XSetFont(d,g,f)        GrSetGCFont(g,f)
#define XLoadFont(d,f)         GrCreateFont(0, 0, 0)
#define XDefineCursor(d,w,c)
        
#define XUndefineCursor(d,w)
        
#define XCreateRegion()        GrNewRegion()
#define XUnionRectWithRegion(rect,sr,dr)
        
#define XRectInRegion(r,x,y,w,h)
        
#define XSubtractRegion(sra,srb,dr)
        
#define XDestroyRegion(r)      GrDestroyRegion(r)
#define XQueryTree(d,w,r,p,c,nc)
        
#define XFree(p)               free(p)