Various cleanup.

This commit is contained in:
rsc 2003-10-11 02:50:20 +00:00
parent a6ea03aea9
commit 2009374690
3 changed files with 15 additions and 2 deletions

View file

@ -509,10 +509,21 @@ 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.
*/

View file

@ -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);

View file

@ -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];