Annotation of researchv9/X11/src/X.V11R1/lib/X/XFreeGC.c, revision 1.1.1.1

1.1       root        1: #include "copyright.h"
                      2: 
                      3: /* $Header: XFreeGC.c,v 11.8 87/09/11 08:03:43 toddb Exp $ */
                      4: /* Copyright    Massachusetts Institute of Technology    1986  */
                      5: 
                      6: #include "Xlibint.h"
                      7: 
                      8: XFreeGC (dpy, gc)
                      9:     register Display *dpy;
                     10:     GC gc;
                     11:     {
                     12:     register xResourceReq *req;
                     13:     register _XExtension *ext;
                     14:     LockDisplay(dpy);
                     15:     GetResReq (FreeGC, gc->gid, req);
                     16:     _XFreeExtData(gc->ext_data);
                     17:     Xfree ((char *) gc);
                     18:     ext = dpy->ext_procs;
                     19:     while (ext) {              /* call out to any extensions interested */
                     20:        if (ext->free_GC != NULL) (*ext->free_GC)(dpy, gc, &ext->codes);
                     21:        ext = ext->next;
                     22:        }    
                     23:     UnlockDisplay(dpy);
                     24:     SyncHandle();
                     25:     }
                     26:     

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.