diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2009-12-15 04:10:43 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2009-12-15 04:10:43 +0000 |
commit | d076ad7b7dd5e1dfe62494b61d98fd381f6fb440 (patch) | |
tree | 51fabc306ef4c35b80f93d89275a9d3c13a8125b /app | |
parent | 114da96e5ad4b0cb9f88fd0612374188afb3efc1 (diff) |
pull all non-X11 headers from calmwm.h and place them only where they
are required.
encourged to go all the way by oga@
Diffstat (limited to 'app')
-rw-r--r-- | app/cwm/calmwm.c | 12 | ||||
-rw-r--r-- | app/cwm/calmwm.h | 15 | ||||
-rw-r--r-- | app/cwm/client.c | 11 | ||||
-rw-r--r-- | app/cwm/conf.c | 13 | ||||
-rw-r--r-- | app/cwm/font.c | 10 | ||||
-rw-r--r-- | app/cwm/group.c | 11 | ||||
-rw-r--r-- | app/cwm/input.c | 12 | ||||
-rw-r--r-- | app/cwm/kbfunc.c | 11 | ||||
-rw-r--r-- | app/cwm/menu.c | 10 | ||||
-rw-r--r-- | app/cwm/mousefunc.c | 12 | ||||
-rw-r--r-- | app/cwm/parse.y | 6 | ||||
-rw-r--r-- | app/cwm/screen.c | 12 | ||||
-rw-r--r-- | app/cwm/search.c | 11 | ||||
-rw-r--r-- | app/cwm/util.c | 12 | ||||
-rw-r--r-- | app/cwm/xevents.c | 12 | ||||
-rw-r--r-- | app/cwm/xmalloc.c | 12 | ||||
-rw-r--r-- | app/cwm/xutil.c | 12 |
17 files changed, 166 insertions, 28 deletions
diff --git a/app/cwm/calmwm.c b/app/cwm/calmwm.c index 98d993cb1..d04d861f2 100644 --- a/app/cwm/calmwm.c +++ b/app/cwm/calmwm.c @@ -15,11 +15,21 @@ * 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.50 2009/12/15 03:34:34 okan Exp $ + * $Id: calmwm.c,v 1.51 2009/12/15 04:10:42 okan Exp $ */ +#include <sys/param.h> +#include <sys/queue.h> +#include <sys/wait.h> + +#include <err.h> +#include <errno.h> #include <getopt.h> #include <signal.h> +#include <stdlib.h> +#include <string.h> +#include <stdio.h> +#include <unistd.h> #include "calmwm.h" diff --git a/app/cwm/calmwm.h b/app/cwm/calmwm.h index 9a7e6b77d..dc664a59e 100644 --- a/app/cwm/calmwm.h +++ b/app/cwm/calmwm.h @@ -15,25 +15,12 @@ * 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.113 2009/12/15 03:34:34 okan Exp $ + * $Id: calmwm.h,v 1.114 2009/12/15 04:10:42 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 <ctype.h> -#include <err.h> -#include <errno.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> diff --git a/app/cwm/client.c b/app/cwm/client.c index dfa771846..659141ca5 100644 --- a/app/cwm/client.c +++ b/app/cwm/client.c @@ -15,10 +15,19 @@ * 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.71 2009/12/15 03:34:34 okan Exp $ + * $Id: client.c,v 1.72 2009/12/15 04:10:42 okan Exp $ */ +#include <sys/param.h> +#include <sys/queue.h> + #include <assert.h> +#include <err.h> +#include <errno.h> +#include <stdlib.h> +#include <string.h> +#include <stdio.h> +#include <unistd.h> #include "calmwm.h" diff --git a/app/cwm/conf.c b/app/cwm/conf.c index 761df116f..6b3ed5464 100644 --- a/app/cwm/conf.c +++ b/app/cwm/conf.c @@ -15,9 +15,20 @@ * 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.74 2009/12/15 03:24:36 okan Exp $ + * $Id: conf.c,v 1.75 2009/12/15 04:10:42 okan Exp $ */ +#include <sys/param.h> +#include <sys/queue.h> +#include <sys/stat.h> + +#include <err.h> +#include <errno.h> +#include <stdlib.h> +#include <string.h> +#include <stdio.h> +#include <unistd.h> + #include "calmwm.h" #ifndef timespeccmp diff --git a/app/cwm/font.c b/app/cwm/font.c index 90ffe2428..3a8ff0a8b 100644 --- a/app/cwm/font.c +++ b/app/cwm/font.c @@ -16,6 +16,16 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include <sys/param.h> +#include <sys/queue.h> + +#include <err.h> +#include <errno.h> +#include <stdlib.h> +#include <string.h> +#include <stdio.h> +#include <unistd.h> + #include "calmwm.h" int diff --git a/app/cwm/group.c b/app/cwm/group.c index b12ee9259..f4716e72b 100644 --- a/app/cwm/group.c +++ b/app/cwm/group.c @@ -16,10 +16,19 @@ * 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.42 2009/12/15 03:38:11 okan Exp $ + * $Id: group.c,v 1.43 2009/12/15 04:10:42 okan Exp $ */ +#include <sys/param.h> +#include <sys/queue.h> + #include <assert.h> +#include <err.h> +#include <errno.h> +#include <stdlib.h> +#include <string.h> +#include <stdio.h> +#include <unistd.h> #include "calmwm.h" diff --git a/app/cwm/input.c b/app/cwm/input.c index dc2ebf7db..164a09b12 100644 --- a/app/cwm/input.c +++ b/app/cwm/input.c @@ -15,9 +15,19 @@ * 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.9 2009/12/15 03:24:36 okan Exp $ + * $Id: input.c,v 1.10 2009/12/15 04:10:42 okan Exp $ */ +#include <sys/param.h> +#include <sys/queue.h> + +#include <err.h> +#include <errno.h> +#include <stdlib.h> +#include <string.h> +#include <stdio.h> +#include <unistd.h> + #include "calmwm.h" int diff --git a/app/cwm/kbfunc.c b/app/cwm/kbfunc.c index 9e8691a1e..005d00c49 100644 --- a/app/cwm/kbfunc.c +++ b/app/cwm/kbfunc.c @@ -15,11 +15,20 @@ * 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.49 2009/12/15 03:34:34 okan Exp $ + * $Id: kbfunc.c,v 1.50 2009/12/15 04:10:42 okan Exp $ */ +#include <sys/param.h> +#include <sys/queue.h> + #include <dirent.h> +#include <err.h> +#include <errno.h> #include <paths.h> +#include <stdlib.h> +#include <string.h> +#include <stdio.h> +#include <unistd.h> #include "calmwm.h" diff --git a/app/cwm/menu.c b/app/cwm/menu.c index 1011a3227..96d65564f 100644 --- a/app/cwm/menu.c +++ b/app/cwm/menu.c @@ -15,6 +15,16 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include <sys/param.h> +#include <sys/queue.h> + +#include <err.h> +#include <errno.h> +#include <stdlib.h> +#include <string.h> +#include <stdio.h> +#include <unistd.h> + #include "calmwm.h" #define PROMPT_SCHAR '»' diff --git a/app/cwm/mousefunc.c b/app/cwm/mousefunc.c index f75e46034..559e526ad 100644 --- a/app/cwm/mousefunc.c +++ b/app/cwm/mousefunc.c @@ -16,9 +16,19 @@ * 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.18 2009/12/15 03:24:36 okan Exp $ + * $Id: mousefunc.c,v 1.19 2009/12/15 04:10:42 okan Exp $ */ +#include <sys/param.h> +#include <sys/queue.h> + +#include <err.h> +#include <errno.h> +#include <stdlib.h> +#include <string.h> +#include <stdio.h> +#include <unistd.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 8875900b8..a7407e0b7 100644 --- a/app/cwm/parse.y +++ b/app/cwm/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.23 2009/12/15 03:24:36 okan Exp $ */ +/* $OpenBSD: parse.y,v 1.24 2009/12/15 04:10:42 okan Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -21,7 +21,11 @@ %{ +#include <sys/param.h> +#include <sys/queue.h> + #include <ctype.h> +#include <err.h> #include <errno.h> #include <limits.h> #include <stdarg.h> diff --git a/app/cwm/screen.c b/app/cwm/screen.c index a843b6581..e5793a5c5 100644 --- a/app/cwm/screen.c +++ b/app/cwm/screen.c @@ -15,9 +15,19 @@ * 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.24 2009/12/15 03:24:36 okan Exp $ + * $Id: screen.c,v 1.25 2009/12/15 04:10:42 okan Exp $ */ +#include <sys/param.h> +#include <sys/queue.h> + +#include <err.h> +#include <errno.h> +#include <stdlib.h> +#include <string.h> +#include <stdio.h> +#include <unistd.h> + #include "calmwm.h" struct screen_ctx * diff --git a/app/cwm/search.c b/app/cwm/search.c index dece5753d..b2d74e3a9 100644 --- a/app/cwm/search.c +++ b/app/cwm/search.c @@ -14,11 +14,20 @@ * 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.19 2009/12/15 03:34:34 okan Exp $ + * $Id: search.c,v 1.20 2009/12/15 04:10:42 okan Exp $ */ +#include <sys/param.h> +#include <sys/queue.h> + #include <assert.h> +#include <err.h> +#include <errno.h> #include <fnmatch.h> +#include <stdlib.h> +#include <string.h> +#include <stdio.h> +#include <unistd.h> #include "calmwm.h" diff --git a/app/cwm/util.c b/app/cwm/util.c index 8a1f2747f..bdde1ae02 100644 --- a/app/cwm/util.c +++ b/app/cwm/util.c @@ -15,9 +15,19 @@ * 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.11 2009/12/15 03:24:36 okan Exp $ + * $Id: util.c,v 1.12 2009/12/15 04:10:42 okan Exp $ */ +#include <sys/param.h> +#include <sys/queue.h> + +#include <err.h> +#include <errno.h> +#include <stdlib.h> +#include <string.h> +#include <stdio.h> +#include <unistd.h> + #include "calmwm.h" #define MAXARGLEN 20 diff --git a/app/cwm/xevents.c b/app/cwm/xevents.c index a765df664..02de6bfcb 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.48 2009/12/15 03:24:36 okan Exp $ + * $Id: xevents.c,v 1.49 2009/12/15 04:10:42 okan Exp $ */ /* @@ -24,6 +24,16 @@ * management of the xevent's. */ +#include <sys/param.h> +#include <sys/queue.h> + +#include <err.h> +#include <errno.h> +#include <stdlib.h> +#include <string.h> +#include <stdio.h> +#include <unistd.h> + #include "calmwm.h" static void xev_handle_maprequest(XEvent *); diff --git a/app/cwm/xmalloc.c b/app/cwm/xmalloc.c index 47df4c026..e225a254e 100644 --- a/app/cwm/xmalloc.c +++ b/app/cwm/xmalloc.c @@ -15,9 +15,19 @@ * 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.5 2009/12/15 03:24:36 okan Exp $ + * $Id: xmalloc.c,v 1.6 2009/12/15 04:10:42 okan Exp $ */ +#include <sys/param.h> +#include <sys/queue.h> + +#include <err.h> +#include <errno.h> +#include <stdlib.h> +#include <string.h> +#include <stdio.h> +#include <unistd.h> + #include "calmwm.h" void * diff --git a/app/cwm/xutil.c b/app/cwm/xutil.c index 7d1b9cbb5..52d4ff199 100644 --- a/app/cwm/xutil.c +++ b/app/cwm/xutil.c @@ -15,9 +15,19 @@ * 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.28 2009/12/15 03:24:36 okan Exp $ + * $Id: xutil.c,v 1.29 2009/12/15 04:10:42 okan Exp $ */ +#include <sys/param.h> +#include <sys/queue.h> + +#include <err.h> +#include <errno.h> +#include <stdlib.h> +#include <string.h> +#include <stdio.h> +#include <unistd.h> + #include "calmwm.h" static unsigned int ign_mods[] = { 0, LockMask, Mod2Mask, Mod2Mask | LockMask }; |