aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan2009-12-15 03:24:36 +0000
committerokan2009-12-15 03:24:36 +0000
commit9be5b221efa55fac8e10a5c9640b97d2174f154e (patch)
tree52790f3b7085b7721fb57fd4f6c94971e2bd2e24
parent43facbcfdbfdb0b3d82e353f16830a9dfd9170a2 (diff)
downloadcwm-9be5b221efa55fac8e10a5c9640b97d2174f154e.tar.gz
merge the 2 common header files; specific includes to be pulled out as
separate commits. ok oga@
-rw-r--r--calmwm.c3
-rw-r--r--calmwm.h29
-rw-r--r--client.c3
-rw-r--r--conf.c3
-rw-r--r--font.c1
-rw-r--r--group.c3
-rw-r--r--headers.h53
-rw-r--r--input.c3
-rw-r--r--kbfunc.c3
-rw-r--r--menu.c1
-rw-r--r--mousefunc.c3
-rw-r--r--parse.y3
-rw-r--r--screen.c3
-rw-r--r--search.c4
-rw-r--r--util.c3
-rw-r--r--xevents.c3
-rw-r--r--xmalloc.c3
-rw-r--r--xutil.c3
18 files changed, 43 insertions, 84 deletions
diff --git a/calmwm.c b/calmwm.c
index 234b284..023e370 100644
--- a/calmwm.c
+++ b/calmwm.c
@@ -15,10 +15,9 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: calmwm.c,v 1.48 2009/12/10 23:14:58 oga Exp $
+ * $Id: calmwm.c,v 1.49 2009/12/15 03:24:36 okan Exp $
*/
-#include "headers.h"
#include "calmwm.h"
Display *X_Dpy;
diff --git a/calmwm.h b/calmwm.h
index 4657a94..4aa298b 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -15,12 +15,39 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: calmwm.h,v 1.110 2009/12/14 16:39:01 oga Exp $
+ * $Id: calmwm.h,v 1.111 2009/12/15 03:24:36 okan Exp $
*/
#ifndef _CALMWM_H_
#define _CALMWM_H_
+#include <sys/param.h>
+#include <sys/queue.h>
+#include <sys/stat.h>
+#include <sys/wait.h>
+
+#include <assert.h>
+#include <ctype.h>
+#include <err.h>
+#include <errno.h>
+#include <dirent.h>
+#include <getopt.h>
+#include <signal.h>
+#include <stdlib.h>
+#include <string.h>
+#include <stdio.h>
+#include <unistd.h>
+
+#include <X11/Xatom.h>
+#include <X11/Xft/Xft.h>
+#include <X11/Xlib.h>
+#include <X11/Xproto.h>
+#include <X11/Xutil.h>
+#include <X11/cursorfont.h>
+#include <X11/extensions/Xinerama.h>
+#include <X11/extensions/Xrandr.h>
+#include <X11/keysym.h>
+
#define CALMWM_MAXNAMELEN 256
#undef MIN
diff --git a/client.c b/client.c
index 5afb312..41be5f5 100644
--- a/client.c
+++ b/client.c
@@ -15,10 +15,9 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: client.c,v 1.69 2009/12/10 17:16:51 oga Exp $
+ * $Id: client.c,v 1.70 2009/12/15 03:24:36 okan Exp $
*/
-#include "headers.h"
#include "calmwm.h"
static struct client_ctx *client_mrunext(struct client_ctx *);
diff --git a/conf.c b/conf.c
index cc3a03e..761df11 100644
--- a/conf.c
+++ b/conf.c
@@ -15,10 +15,9 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: conf.c,v 1.73 2009/12/11 17:51:42 oga Exp $
+ * $Id: conf.c,v 1.74 2009/12/15 03:24:36 okan Exp $
*/
-#include "headers.h"
#include "calmwm.h"
#ifndef timespeccmp
diff --git a/font.c b/font.c
index 0f58c82..8e1476e 100644
--- a/font.c
+++ b/font.c
@@ -16,7 +16,6 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include "headers.h"
#include "calmwm.h"
void
diff --git a/group.c b/group.c
index cd996ed..9f38959 100644
--- a/group.c
+++ b/group.c
@@ -16,10 +16,9 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: group.c,v 1.39 2009/12/14 16:39:01 oga Exp $
+ * $Id: group.c,v 1.40 2009/12/15 03:24:36 okan Exp $
*/
-#include "headers.h"
#include "calmwm.h"
static void group_add(struct group_ctx *, struct client_ctx *);
diff --git a/headers.h b/headers.h
deleted file mode 100644
index 0ddb40d..0000000
--- a/headers.h
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * calmwm - the calm window manager
- *
- * Copyright (c) 2004 Marius Aamodt Eriksen <marius@monkey.org>
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * $Id: headers.h,v 1.10 2009/04/12 23:51:10 okan Exp $
- */
-
-#ifndef _CALMWM_HEADERS_H_
-#define _CALMWM_HEADERS_H_
-
-#include <sys/param.h>
-#include <sys/queue.h>
-#include <sys/stat.h>
-#include <sys/wait.h>
-
-#include <assert.h>
-#include <ctype.h>
-#include <err.h>
-#include <errno.h>
-#include <dirent.h>
-#include <getopt.h>
-#include <signal.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdio.h>
-#include <unistd.h>
-
-#include <X11/Intrinsic.h>
-#include <X11/Xatom.h>
-#include <X11/Xft/Xft.h>
-#include <X11/Xlib.h>
-#include <X11/Xos.h>
-#include <X11/Xproto.h>
-#include <X11/Xutil.h>
-#include <X11/cursorfont.h>
-#include <X11/extensions/Xinerama.h>
-#include <X11/extensions/Xrandr.h>
-#include <X11/keysym.h>
-
-#endif /* _CALMWM_HEADERS_H_ */
diff --git a/input.c b/input.c
index 6471452..dc2ebf7 100644
--- a/input.c
+++ b/input.c
@@ -15,10 +15,9 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: input.c,v 1.8 2009/06/20 00:55:42 okan Exp $
+ * $Id: input.c,v 1.9 2009/12/15 03:24:36 okan Exp $
*/
-#include "headers.h"
#include "calmwm.h"
int
diff --git a/kbfunc.c b/kbfunc.c
index 174e23d..198cb74 100644
--- a/kbfunc.c
+++ b/kbfunc.c
@@ -15,12 +15,11 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: kbfunc.c,v 1.47 2009/12/10 17:16:51 oga Exp $
+ * $Id: kbfunc.c,v 1.48 2009/12/15 03:24:36 okan Exp $
*/
#include <paths.h>
-#include "headers.h"
#include "calmwm.h"
#define KNOWN_HOSTS ".ssh/known_hosts"
diff --git a/menu.c b/menu.c
index 69f0588..1011a32 100644
--- a/menu.c
+++ b/menu.c
@@ -15,7 +15,6 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include "headers.h"
#include "calmwm.h"
#define PROMPT_SCHAR '»'
diff --git a/mousefunc.c b/mousefunc.c
index 828ad83..f75e460 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -16,10 +16,9 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: mousefunc.c,v 1.17 2009/12/10 17:16:51 oga Exp $
+ * $Id: mousefunc.c,v 1.18 2009/12/15 03:24:36 okan Exp $
*/
-#include "headers.h"
#include "calmwm.h"
static int mousefunc_sweep_calc(struct client_ctx *, int, int, int, int);
diff --git a/parse.y b/parse.y
index 337be45..8875900 100644
--- a/parse.y
+++ b/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.22 2009/12/11 17:51:42 oga Exp $ */
+/* $OpenBSD: parse.y,v 1.23 2009/12/15 03:24:36 okan Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -29,7 +29,6 @@
#include <stdlib.h>
#include <string.h>
-#include "headers.h"
#include "calmwm.h"
TAILQ_HEAD(files, file) files = TAILQ_HEAD_INITIALIZER(files);
diff --git a/screen.c b/screen.c
index 5deff21..a843b65 100644
--- a/screen.c
+++ b/screen.c
@@ -15,10 +15,9 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: screen.c,v 1.23 2009/12/11 18:09:16 oga Exp $
+ * $Id: screen.c,v 1.24 2009/12/15 03:24:36 okan Exp $
*/
-#include "headers.h"
#include "calmwm.h"
struct screen_ctx *
diff --git a/search.c b/search.c
index b3ae65b..3635fb0 100644
--- a/search.c
+++ b/search.c
@@ -14,11 +14,11 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: search.c,v 1.17 2009/06/26 12:45:12 oga Exp $
+ * $Id: search.c,v 1.18 2009/12/15 03:24:36 okan Exp $
*/
#include <fnmatch.h>
-#include "headers.h"
+
#include "calmwm.h"
static int strsubmatch(char *, char *, int);
diff --git a/util.c b/util.c
index e9c0591..8a1f274 100644
--- a/util.c
+++ b/util.c
@@ -15,10 +15,9 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: util.c,v 1.10 2008/07/11 14:21:28 okan Exp $
+ * $Id: util.c,v 1.11 2009/12/15 03:24:36 okan Exp $
*/
-#include "headers.h"
#include "calmwm.h"
#define MAXARGLEN 20
diff --git a/xevents.c b/xevents.c
index fb2a136..a765df6 100644
--- a/xevents.c
+++ b/xevents.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: xevents.c,v 1.47 2009/12/11 17:51:42 oga Exp $
+ * $Id: xevents.c,v 1.48 2009/12/15 03:24:36 okan Exp $
*/
/*
@@ -24,7 +24,6 @@
* management of the xevent's.
*/
-#include "headers.h"
#include "calmwm.h"
static void xev_handle_maprequest(XEvent *);
diff --git a/xmalloc.c b/xmalloc.c
index 22ff56c..47df4c0 100644
--- a/xmalloc.c
+++ b/xmalloc.c
@@ -15,10 +15,9 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: xmalloc.c,v 1.4 2008/07/11 14:21:28 okan Exp $
+ * $Id: xmalloc.c,v 1.5 2009/12/15 03:24:36 okan Exp $
*/
-#include "headers.h"
#include "calmwm.h"
void *
diff --git a/xutil.c b/xutil.c
index f0d3d71..7d1b9cb 100644
--- a/xutil.c
+++ b/xutil.c
@@ -15,10 +15,9 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: xutil.c,v 1.27 2009/12/14 16:39:01 oga Exp $
+ * $Id: xutil.c,v 1.28 2009/12/15 03:24:36 okan Exp $
*/
-#include "headers.h"
#include "calmwm.h"
static unsigned int ign_mods[] = { 0, LockMask, Mod2Mask, Mod2Mask | LockMask };