A tiling window manager
1/*
2 * Standard header
3 * Copyright (C) 2000, 2001, 2002, 2003, 2004 Shawn Betts <sabetts@vcn.bc.ca>
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the Free
7 * Software Foundation; either version 2 of the License, or (at your option)
8 * any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
14 *
15 * You should have received a copy of the GNU General Public License along with
16 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
17 * Place, Suite 330, Boston, MA 02111-1307 USA.
18 */
19
20#ifndef _SDORFEHS_H
21#define _SDORFEHS_H 1
22
23#include <stdlib.h>
24#include <stdio.h>
25#include <stdarg.h>
26#include <string.h>
27#include <X11/Xlib.h>
28#include <X11/Xatom.h>
29#include <X11/Xlocale.h>
30#include <X11/Xmd.h>
31#include <X11/extensions/XRes.h>
32#include <fcntl.h>
33
34#if defined(__BASE_FILE__)
35#define RP_FILE_NAME __BASE_FILE__
36#else
37#define RP_FILE_NAME __FILE__
38#endif
39
40/* Helper macro for error and debug reporting. */
41#define PRINT_LINE(type) printf (PROGNAME ":%s:%d: %s: ",RP_FILE_NAME, __LINE__, #type)
42
43/* Debug reporting macros. */
44#ifdef DEBUG
45#define PRINT_DEBUG(fmt) \
46do { \
47 PRINT_LINE (debug); \
48 printf fmt; \
49 fflush (stdout); \
50} while (0)
51#else
52#define PRINT_DEBUG(fmt) do {} while (0)
53#endif /* DEBUG */
54
55#ifdef SENDCMD_DEBUG
56#define WARNX_DEBUG(fmt, ...) \
57do { \
58 fprintf (stderr, fmt, __VA_ARGS__); \
59 fflush (stderr); \
60} while (0)
61#else
62#define WARNX_DEBUG(fmt, ...) do {} while (0)
63#endif /* SENDCMD_DEBUG */
64
65#ifdef INPUT_DEBUG
66#define PRINT_INPUT_DEBUG(fmt) \
67do { \
68 PRINT_LINE (debug); \
69 printf fmt; \
70 fflush (stdout); \
71} while (0)
72#else
73#define PRINT_INPUT_DEBUG(fmt) do {} while (0)
74#endif /* INPUT_DEBUG */
75
76#include "config.h"
77
78#include "data.h"
79#include "globals.h"
80#include "manage.h"
81#include "window.h"
82#include "bar.h"
83#include "events.h"
84#include "number.h"
85#include "input.h"
86#include "messages.h"
87#include "communications.h"
88#include "sbuf.h"
89#include "split.h"
90#include "frame.h"
91#include "screen.h"
92#include "vscreen.h"
93#include "editor.h"
94#include "history.h"
95#include "completions.h"
96#include "hook.h"
97#include "xrandr.h"
98#include "format.h"
99#include "utf8.h"
100#include "util.h"
101
102#endif /* ! _SDORFEHS_H */