Listing 3. STATIC_FUNCTIONS Define

/* client-statically declared functions*/
#define STATIC_FUNCTIONS                      \
                                              \
Display *                                     \
XOpenDisplay(char *name)                      \
{                                             \
        GR_SCREEN_INFO  sinfo;                \
                                              \
        if (GrOpen() < 0)                  \
                return NULL;                  \
                                              \
        GrGetScreenInfo(&sinfo);              \
        _display.display_width = sinfo.cols;  \
        _display.display_height = sinfo.rows; \
        _display.display_bpp = sinfo.bpp;     \
                                              \
        return &_display;                     \
}

#define


#define


#define XDestroyWindow(d,w)     GrDestroyWindow(w)
#define XReparentWindow(d,w,p,x,y)
        
#define XMapWindow(d,w)         GrMapWindow(w)
#define XUnmapWindow(d,w)       GrUnmapWindow(w)
#define XClearWindow(d,w)
        
#define XClearArea(d,w,X,Y,W,H,e)
        
#define XRaiseWindow(d,w)       GrRaiseWindow(w)
#define XLowerWindow(d,w)       GrLowerWindow(w)
#define XMoveWindow(d,w,x,y)    GrMoveWindow(w,x,y)
#define XResizeWindow(d,w,W,H)  GrResizeWindow(w,W,H)