merge the 2 common header files; specific includes to be pulled out as

separate commits.

ok oga@
This commit is contained in:
okan 2009-12-15 03:24:36 +00:00
parent 49661d405b
commit b6b7d273d4
18 changed files with 28 additions and 69 deletions

View File

@ -18,7 +18,6 @@
* $Id$
*/
#include "headers.h"
#include "calmwm.h"
Display *X_Dpy;

View File

@ -21,6 +21,33 @@
#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

View File

@ -18,7 +18,6 @@
* $Id$
*/
#include "headers.h"
#include "calmwm.h"
static struct client_ctx *client_mrunext(struct client_ctx *);

1
conf.c
View File

@ -18,7 +18,6 @@
* $Id$
*/
#include "headers.h"
#include "calmwm.h"
#ifndef timespeccmp

1
font.c
View File

@ -16,7 +16,6 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include "headers.h"
#include "calmwm.h"
void

View File

@ -19,7 +19,6 @@
* $Id$
*/
#include "headers.h"
#include "calmwm.h"
static void group_add(struct group_ctx *, struct client_ctx *);

View File

@ -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$
*/
#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_ */

View File

@ -18,7 +18,6 @@
* $Id$
*/
#include "headers.h"
#include "calmwm.h"
int

View File

@ -20,7 +20,6 @@
#include <paths.h>
#include "headers.h"
#include "calmwm.h"
#define KNOWN_HOSTS ".ssh/known_hosts"

1
menu.c
View File

@ -15,7 +15,6 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include "headers.h"
#include "calmwm.h"
#define PROMPT_SCHAR '»'

View File

@ -19,7 +19,6 @@
* $Id$
*/
#include "headers.h"
#include "calmwm.h"
static int mousefunc_sweep_calc(struct client_ctx *, int, int, int, int);

View File

@ -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);

View File

@ -18,7 +18,6 @@
* $Id$
*/
#include "headers.h"
#include "calmwm.h"
struct screen_ctx *

View File

@ -18,7 +18,7 @@
*/
#include <fnmatch.h>
#include "headers.h"
#include "calmwm.h"
static int strsubmatch(char *, char *, int);

1
util.c
View File

@ -18,7 +18,6 @@
* $Id$
*/
#include "headers.h"
#include "calmwm.h"
#define MAXARGLEN 20

View File

@ -24,7 +24,6 @@
* management of the xevent's.
*/
#include "headers.h"
#include "calmwm.h"
static void xev_handle_maprequest(XEvent *);

View File

@ -18,7 +18,6 @@
* $Id$
*/
#include "headers.h"
#include "calmwm.h"
void *

View File

@ -18,7 +18,6 @@
* $Id$
*/
#include "headers.h"
#include "calmwm.h"
static unsigned int ign_mods[] = { 0, LockMask, Mod2Mask, Mod2Mask | LockMask };