diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2009-12-15 03:24:37 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2009-12-15 03:24:37 +0000 |
commit | f9adf59e994526a008f158cb634bfaf3d0e85adf (patch) | |
tree | 3bee1883867ce175cb36fc828bb46779997a25de /app | |
parent | 661e613b0ea204f20a94e7b20443869c71c6fc68 (diff) |
merge the 2 common header files; specific includes to be pulled out as
separate commits.
ok oga@
Diffstat (limited to 'app')
-rw-r--r-- | app/cwm/calmwm.c | 3 | ||||
-rw-r--r-- | app/cwm/calmwm.h | 29 | ||||
-rw-r--r-- | app/cwm/client.c | 3 | ||||
-rw-r--r-- | app/cwm/conf.c | 3 | ||||
-rw-r--r-- | app/cwm/font.c | 1 | ||||
-rw-r--r-- | app/cwm/group.c | 3 | ||||
-rw-r--r-- | app/cwm/headers.h | 53 | ||||
-rw-r--r-- | app/cwm/input.c | 3 | ||||
-rw-r--r-- | app/cwm/kbfunc.c | 3 | ||||
-rw-r--r-- | app/cwm/menu.c | 1 | ||||
-rw-r--r-- | app/cwm/mousefunc.c | 3 | ||||
-rw-r--r-- | app/cwm/parse.y | 3 | ||||
-rw-r--r-- | app/cwm/screen.c | 3 | ||||
-rw-r--r-- | app/cwm/search.c | 4 | ||||
-rw-r--r-- | app/cwm/util.c | 3 | ||||
-rw-r--r-- | app/cwm/xevents.c | 3 | ||||
-rw-r--r-- | app/cwm/xmalloc.c | 3 | ||||
-rw-r--r-- | app/cwm/xutil.c | 3 |
18 files changed, 43 insertions, 84 deletions
diff --git a/app/cwm/calmwm.c b/app/cwm/calmwm.c index 234b28461..023e37015 100644 --- a/app/cwm/calmwm.c +++ b/app/cwm/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/app/cwm/calmwm.h b/app/cwm/calmwm.h index 4657a9482..4aa298bb1 100644 --- a/app/cwm/calmwm.h +++ b/app/cwm/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/app/cwm/client.c b/app/cwm/client.c index 5afb3128a..41be5f5e9 100644 --- a/app/cwm/client.c +++ b/app/cwm/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/app/cwm/conf.c b/app/cwm/conf.c index cc3a03e1b..761df116f 100644 --- a/app/cwm/conf.c +++ b/app/cwm/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/app/cwm/font.c b/app/cwm/font.c index 0f58c8242..8e1476e59 100644 --- a/app/cwm/font.c +++ b/app/cwm/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/app/cwm/group.c b/app/cwm/group.c index cd996ed0a..9f38959f0 100644 --- a/app/cwm/group.c +++ b/app/cwm/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/app/cwm/headers.h b/app/cwm/headers.h deleted file mode 100644 index 0ddb40d07..000000000 --- a/app/cwm/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/app/cwm/input.c b/app/cwm/input.c index 6471452c9..dc2ebf7db 100644 --- a/app/cwm/input.c +++ b/app/cwm/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/app/cwm/kbfunc.c b/app/cwm/kbfunc.c index 174e23dd9..198cb7485 100644 --- a/app/cwm/kbfunc.c +++ b/app/cwm/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/app/cwm/menu.c b/app/cwm/menu.c index 69f05882f..1011a3227 100644 --- a/app/cwm/menu.c +++ b/app/cwm/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/app/cwm/mousefunc.c b/app/cwm/mousefunc.c index 828ad83d9..f75e46034 100644 --- a/app/cwm/mousefunc.c +++ b/app/cwm/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/app/cwm/parse.y b/app/cwm/parse.y index 337be45bf..8875900b8 100644 --- a/app/cwm/parse.y +++ b/app/cwm/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/app/cwm/screen.c b/app/cwm/screen.c index 5deff2102..a843b6581 100644 --- a/app/cwm/screen.c +++ b/app/cwm/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/app/cwm/search.c b/app/cwm/search.c index b3ae65bcd..3635fb0f4 100644 --- a/app/cwm/search.c +++ b/app/cwm/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/app/cwm/util.c b/app/cwm/util.c index e9c0591d1..8a1f2747f 100644 --- a/app/cwm/util.c +++ b/app/cwm/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/app/cwm/xevents.c b/app/cwm/xevents.c index fb2a136de..a765df664 100644 --- a/app/cwm/xevents.c +++ b/app/cwm/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/app/cwm/xmalloc.c b/app/cwm/xmalloc.c index 22ff56c3c..47df4c026 100644 --- a/app/cwm/xmalloc.c +++ b/app/cwm/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/app/cwm/xutil.c b/app/cwm/xutil.c index f0d3d715f..7d1b9cbb5 100644 --- a/app/cwm/xutil.c +++ b/app/cwm/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 }; |