[hackers] [dmenu] made Fnt an anonymous struct

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Thu Feb 22 18:19:38 2007

changeset: 168:dc5fea99e610
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Thu Feb 22 18:16:35 2007 +0100
summary: made Fnt an anonymous struct

diff -r ced2b0be6ac7 -r dc5fea99e610 config.mk
--- a/config.mk Wed Feb 21 11:05:19 2007 +0100
+++ b/config.mk Thu Feb 22 18:16:35 2007 +0100
@@ -1,5 +1,5 @@
 # dmenu version
-VERSION = 2.3
+VERSION = 2.4
 
 # Customize below to fit your system
 
diff -r ced2b0be6ac7 -r dc5fea99e610 dmenu.h
--- a/dmenu.h Wed Feb 21 11:05:19 2007 +0100
+++ b/dmenu.h Thu Feb 22 18:16:35 2007 +0100
@@ -14,25 +14,20 @@
 /* color */
 enum { ColFG, ColBG, ColLast };
 
-typedef struct DC DC;
-typedef struct Fnt Fnt;
-
-struct Fnt {
- XFontStruct *xfont;
- XFontSet set;
- int ascent;
- int descent;
- int height;
-};
-
-struct DC {
+typedef struct {
         int x, y, w, h;
         unsigned long norm[ColLast];
         unsigned long sel[ColLast];
         Drawable drawable;
- Fnt font;
         GC gc;
-}; /* draw context */
+ struct {
+ XFontStruct *xfont;
+ XFontSet set;
+ int ascent;
+ int descent;
+ int height;
+ } font;
+} DC; /* draw context */
 
 extern int screen;
 extern Display *dpy;
Received on Thu Feb 22 2007 - 18:19:38 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:45 UTC