making variable declarations in dwm.h extern, this seems to be more ansi compliant

This commit is contained in:
Anselm R. Garbe 2007-06-01 12:11:25 +02:00
parent 141beb2704
commit b3419f49a3

28
dwm.h
View file

@ -79,20 +79,20 @@ typedef struct {
} Layout; } Layout;
extern const char *tags[]; /* all tags */ extern const char *tags[]; /* all tags */
char stext[256]; /* status text */ extern char stext[256]; /* status text */
int screen, sx, sy, sw, sh; /* screen geometry */ extern int screen, sx, sy, sw, sh; /* screen geometry */
int wax, way, wah, waw; /* windowarea geometry */ extern int wax, way, wah, waw; /* windowarea geometry */
unsigned int bh, blw, bpos; /* bar height, bar layout label width, bar position */ extern unsigned int bh, blw, bpos; /* bar height, bar layout label width, bar position */
unsigned int ntags, numlockmask; /* number of tags, dynamic lock mask */ extern unsigned int ntags, numlockmask; /* number of tags, numlock mask */
void (*handler[LASTEvent])(XEvent *); /* event handler */ extern void (*handler[LASTEvent])(XEvent *); /* event handler */
Atom wmatom[WMLast], netatom[NetLast]; extern Atom wmatom[WMLast], netatom[NetLast];
Bool selscreen, *seltag; /* seltag is array of Bool */ extern Bool selscreen, *seltag; /* seltag is array of Bool */
Client *clients, *sel, *stack; /* global client list and stack */ extern Client *clients, *sel, *stack; /* global client list and stack */
Cursor cursor[CurLast]; extern Cursor cursor[CurLast];
DC dc; /* global draw context */ extern DC dc; /* global draw context */
Display *dpy; extern Display *dpy;
Layout *lt; extern Layout *lt;
Window root, barwin; extern Window root, barwin;
/* client.c */ /* client.c */
void attach(Client *c); /* attaches c to global client list */ void attach(Client *c); /* attaches c to global client list */