tVarious cleanup. - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 2009374690190b95a29db0c31decd07f4652eb45
 (DIR) parent a6ea03aea90b26d0d4c1c88881b43174a46f977d
 (HTM) Author: rsc <devnull@localhost>
       Date:   Sat, 11 Oct 2003 02:50:20 +0000
       
       Various cleanup.
       
       Diffstat:
         M include/draw.h                      |      13 ++++++++++++-
         M include/lib9.h                      |       3 ++-
         M include/memdraw.h                   |       1 +
       
       3 files changed, 15 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/include/draw.h b/include/draw.h
       t@@ -509,11 +509,22 @@ extern        void        _twiddlecompressed(uchar*, int);
        extern        int        _compblocksize(Rectangle, int);
        
        /* XXX backwards helps; should go */
       -extern        int                log2[];
        extern        u32int        drawld2chan[];
        extern        void                drawsetdebug(int);
        
        /*
       + * Snarf buffer
       + */
       +enum
       +{
       +        SnarfSize = 64*1024,
       +};
       +char *getsnarf(void);
       +void putsnarf(char*);
       +
       +void drawtopwindow(void);
       +
       +/*
         * Port magic.
         */
        int        _drawmsgread(Display*, void*, int);
 (DIR) diff --git a/include/lib9.h b/include/lib9.h
       t@@ -176,7 +176,8 @@ extern ulong        rendezvous(ulong, ulong);
        
        /* one of a kind */
        extern void        sysfatal(char*, ...);
       -extern int                nrand(int);
       +extern int        nrand(int);
       +extern long        lrand(void);
        extern void        setmalloctag(void*, ulong);
        extern void        setrealloctag(void*, ulong);
        extern void        *mallocz(ulong, int);
 (DIR) diff --git a/include/memdraw.h b/include/memdraw.h
       t@@ -46,6 +46,7 @@ struct Memimage
                Memlayer        *layer;        /* nil if not a layer*/
                u32int                flags;
                void                *X;
       +        int                screenref;        /* reference count if this is a screen */
        
                int                shift[NChan];
                int                mask[NChan];