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

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

changeset: 835:93ecc09cd1ad
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Thu Feb 22 18:17:07 2007 +0100
summary: made Fnt an anonymous inner struct

diff -r 1a60e0995e77 -r 93ecc09cd1ad dwm.h
--- a/dwm.h Thu Feb 22 18:08:31 2007 +0100
+++ b/dwm.h Thu Feb 22 18:17:07 2007 +0100
@@ -41,21 +41,6 @@ enum { CurNormal, CurResize, CurMove, Cu
 enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */
 enum { ColBorder, ColFG, ColBG, ColLast }; /* color */
 
-typedef struct {
- int x, y, w, h;
- unsigned long norm[ColLast];
- unsigned long sel[ColLast];
- Drawable drawable;
- GC gc;
- struct Fnt {
- int ascent;
- int descent;
- int height;
- XFontSet set;
- XFontStruct *xfont;
- } font;
-} DC; /* draw context */
-
 typedef struct Client Client;
 struct Client {
         char name[256];
@@ -72,6 +57,21 @@ struct Client {
         Client *snext;
         Window win;
 };
+
+typedef struct {
+ int x, y, w, h;
+ unsigned long norm[ColLast];
+ unsigned long sel[ColLast];
+ Drawable drawable;
+ GC gc;
+ struct {
+ int ascent;
+ int descent;
+ int height;
+ XFontSet set;
+ XFontStruct *xfont;
+ } font;
+} DC; /* draw context */
 
 typedef struct {
         const char *symbol;
Received on Thu Feb 22 2007 - 18:20:05 UTC

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