[hackers] [dwm] made Fnt an anonymous inner struct

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

changeset: 834:1a60e0995e77
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Thu Feb 22 18:08:31 2007 +0100
summary: made Fnt an anonymous inner struct

diff -r 5dbe50521b57 -r 1a60e0995e77 dwm.h
--- a/dwm.h Thu Feb 22 17:58:45 2007 +0100
+++ b/dwm.h Thu Feb 22 18:08:31 2007 +0100
@@ -42,20 +42,18 @@ enum { ColBorder, ColFG, ColBG, ColLast
 enum { ColBorder, ColFG, ColBG, ColLast }; /* color */
 
 typedef struct {
- int ascent;
- int descent;
- int height;
- XFontSet set;
- XFontStruct *xfont;
-} Fnt;
-
-typedef struct {
         int x, y, w, h;
         unsigned long norm[ColLast];
         unsigned long sel[ColLast];
         Drawable drawable;
- Fnt font;
         GC gc;
+ struct Fnt {
+ int ascent;
+ int descent;
+ int height;
+ XFontSet set;
+ XFontStruct *xfont;
+ } font;
 } DC; /* draw context */
 
 typedef struct Client Client;
Received on Thu Feb 22 2007 - 18:10:04 UTC

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