Annotation of 43BSDTahoe/new/X/libis/debug.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  *     $Source: /u1/X/libis/RCS/debug.c,v $
                      3:  *     $Header: debug.c,v 1.1 86/11/17 14:33:35 swick Rel $
                      4:  */
                      5: 
                      6: #ifndef lint
                      7: static char *rcsid_debug_c = "$Header: debug.c,v 1.1 86/11/17 14:33:35 swick Rel $";
                      8: #endif lint
                      9: 
                     10: int isi_debug_jnk;             /* shuts up ranlib complaints*/
                     11: #ifdef DEBUG
                     12: #include "is-copyright.h"
                     13: 
                     14: /*
                     15:  *     debug.c         various debugging printf's
                     16:  *
                     17:  *     printf_pixmap
                     18:  *     printf_bitmap
                     19:  *     printf_clip
                     20:  *
                     21:  *     Copyright (c) 1986, Integrated Solutions, Inc.
                     22:  */
                     23: 
                     24: #include "Xis.h"
                     25: 
                     26: /* debug is used to indicate which debug printf's are turned on. */
                     27: unsigned long  debug = (       /* enabled printf's */
                     28:                    D_None);
                     29: 
                     30: /* disabled printf's
                     31:                    D_Color             |
                     32:                    D_PixFill           |
                     33:                    D_Pixmaps           |
                     34:                    D_TileFill          |
                     35:                    D_Bitmaps           |
                     36:                    D_CopyArea          |
                     37:                    D_Cursor            |
                     38:                    D_DrawCurve         |
                     39:                    D_Font              |
                     40:                    D_FontPixmap        |
                     41:                    D_PixFill_data      |
                     42:                    D_Text              |
                     43:                    D_TileFill_data     |
                     44:  */
                     45: 
                     46: printf_pixmap(name, p)
                     47: char   *name;
                     48: PIXMAP *p;
                     49: {
                     50:     printf("%s=0x%x: width=%d, height=%d, refcnt=%d, tile=%d, kind=0x%x, data=0x%x\n",
                     51:        name, p, p->width, p->height, p->refcnt, p->tile, p->kind, p->data);
                     52: }
                     53: 
                     54: printf_bitmap(name, p)
                     55: char   *name;
                     56: BITMAP *p;
                     57: {
                     58:     printf("%s=0x%x: width=%d, height=%d, refcnt=%d, kind=0x%x, data=0x%x\n",
                     59:        name, p, p->width, p->height, p->refcnt, p->kind, p->data);
                     60: }
                     61: 
                     62: printf_clip(name, clip)
                     63: char   *name;
                     64: CLIP   clip;
                     65: {
                     66:     printf("%s left=%d, top=%d, width=%d, height=%d\n",
                     67:        name, clip.left, clip.top, clip.width, clip.height);
                     68: }
                     69: #endif DEBUG

unix.superglobalmegacorp.com

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