[Pkg-wmaker-commits] [wmitime] 08/18: wmgeneral: Use #includes from include-what-you-use.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Sat Aug 22 01:36:45 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch upstream
in repository wmitime.

commit 59a148300c3dcc8060fd0f4f68e061b995f0683f
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Tue May 19 22:30:52 2015 -0500

    wmgeneral: Use #includes from include-what-you-use.
---
 wmgeneral/wmgeneral.c | 20 +++++++++-----------
 wmgeneral/wmgeneral.h | 10 +++++++---
 2 files changed, 16 insertions(+), 14 deletions(-)

diff --git a/wmgeneral/wmgeneral.c b/wmgeneral/wmgeneral.c
index 0ca67c9..c74c9ee 100644
--- a/wmgeneral/wmgeneral.c
+++ b/wmgeneral/wmgeneral.c
@@ -40,18 +40,16 @@
 
 */
 
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <unistd.h>
-#include <ctype.h>
-#include <stdarg.h>
-
-#include <X11/Xlib.h>
-#include <X11/xpm.h>
-#include <X11/extensions/shape.h>
-
 #include "wmgeneral.h"
+#include <X11/Xlib.h>                   /* for XCopyArea, etc */
+#include <X11/Xutil.h>                  /* for XSizeHints, XWMHints, etc */
+#include <X11/extensions/shape.h>       /* for XShapeCombineMask */
+#include <X11/extensions/shapeconst.h>  /* for ShapeBounding, ShapeSet */
+#include <X11/xpm.h>                    /* for XpmAttributes, Pixel, etc */
+#include <stddef.h>                     /* for size_t */
+#include <stdio.h>                      /* for fprintf, stderr, NULL, etc */
+#include <stdlib.h>                     /* for exit, free */
+#include <string.h>                     /* for strcmp, strdup, strcspn, etc */
 
   /*****************/
  /* X11 Variables */
diff --git a/wmgeneral/wmgeneral.h b/wmgeneral/wmgeneral.h
index e9d6ca6..1d68add 100644
--- a/wmgeneral/wmgeneral.h
+++ b/wmgeneral/wmgeneral.h
@@ -1,6 +1,10 @@
 #ifndef WMGENERAL_H_INCLUDED
 #define WMGENERAL_H_INCLUDED
 
+#include <X11/X.h>                      /* for Pixmap */
+#include <X11/Xlib.h>                   /* for Display */
+#include <X11/xpm.h>                    /* for XpmAttributes */
+
   /***********/
  /* Defines */
 /***********/
@@ -11,14 +15,12 @@
  /* Typedefs */
 /************/
 
-typedef struct _rckeys rckeys;
-
 struct _rckeys {
 	const char	*label;
 	char		**var;
 };
 
-typedef struct _rckeys2 rckeys2;
+typedef struct _rckeys rckeys;
 
 struct _rckeys2 {
 	const char	*family;
@@ -26,6 +28,8 @@ struct _rckeys2 {
 	char		**var;
 };
 
+typedef struct _rckeys2 rckeys2;
+
 typedef struct {
 	Pixmap			pixmap;
 	Pixmap			mask;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmitime.git



More information about the Pkg-wmaker-commits mailing list