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

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Fri Jun 01 12:16:22 2007

changeset: 913:d9c7c686d4dc
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Fri Jun 01 12:11:25 2007 +0200
summary: making variable declarations in dwm.h extern, this seems to be more ansi compliant

diff -r f7b26d6efc9f -r d9c7c686d4dc dwm.h
--- a/dwm.h Wed May 30 20:49:38 2007 +0200
+++ b/dwm.h Fri Jun 01 12:11:25 2007 +0200
@@ -78,21 +78,21 @@ typedef struct {
         void (*arrange)(void);
 } Layout;
 
-extern const char *tags[]; /* all tags */
-char stext[256]; /* status text */
-int screen, sx, sy, sw, sh; /* screen geometry */
-int wax, way, wah, waw; /* windowarea geometry */
-unsigned int bh, blw, bpos; /* bar height, bar layout label width, bar position */
-unsigned int ntags, numlockmask; /* number of tags, dynamic lock mask */
-void (*handler[LASTEvent])(XEvent *); /* event handler */
-Atom wmatom[WMLast], netatom[NetLast];
-Bool selscreen, *seltag; /* seltag is array of Bool */
-Client *clients, *sel, *stack; /* global client list and stack */
-Cursor cursor[CurLast];
-DC dc; /* global draw context */
-Display *dpy;
-Layout *lt;
-Window root, barwin;
+extern const char *tags[]; /* all tags */
+extern char stext[256]; /* status text */
+extern int screen, sx, sy, sw, sh; /* screen geometry */
+extern int wax, way, wah, waw; /* windowarea geometry */
+extern unsigned int bh, blw, bpos; /* bar height, bar layout label width, bar position */
+extern unsigned int ntags, numlockmask; /* number of tags, numlock mask */
+extern void (*handler[LASTEvent])(XEvent *); /* event handler */
+extern Atom wmatom[WMLast], netatom[NetLast];
+extern Bool selscreen, *seltag; /* seltag is array of Bool */
+extern Client *clients, *sel, *stack; /* global client list and stack */
+extern Cursor cursor[CurLast];
+extern DC dc; /* global draw context */
+extern Display *dpy;
+extern Layout *lt;
+extern Window root, barwin;
 
 /* client.c */
 void attach(Client *c); /* attaches c to global client list */
Received on Fri Jun 01 2007 - 12:16:22 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:57:14 UTC