summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorEnrico Weigelt <info@metux.net>2024-02-15 23:33:46 +0000
committerPeter Hutterer <peter.hutterer@who-t.net>2024-02-15 23:33:46 +0000
commit442aec2219e0aba5482f96e1047748416237ffaa (patch)
tree42a0aca868f0120628db8106d575bf5faca9a64f /dix
parenta8bb924af19f8666a39db2cf50b0c7f00564db06 (diff)
include: move BUG_*() macros to separate header
Yet another step of uncluttering includes: move out the BUG_* macros into a separate header, which then is included as-needed. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Diffstat (limited to 'dix')
-rw-r--r--dix/cursor.c2
-rw-r--r--dix/devices.c1
-rw-r--r--dix/enterleave.c2
-rw-r--r--dix/events.c2
-rw-r--r--dix/gestures.c1
-rw-r--r--dix/getevents.c1
-rw-r--r--dix/grabs.c1
-rw-r--r--dix/inpututils.c1
-rw-r--r--dix/ptrveloc.c1
-rw-r--r--dix/touch.c1
10 files changed, 13 insertions, 0 deletions
diff --git a/dix/cursor.c b/dix/cursor.c
index a9ad34467..4405e8d55 100644
--- a/dix/cursor.c
+++ b/dix/cursor.c
@@ -50,6 +50,8 @@ SOFTWARE.
#include <X11/X.h>
#include <X11/Xmd.h>
+
+#include "bug.h"
#include "servermd.h"
#include "scrnintstr.h"
#include "dixstruct.h"
diff --git a/dix/devices.c b/dix/devices.c
index 84a6406d1..3b9791361 100644
--- a/dix/devices.c
+++ b/dix/devices.c
@@ -53,6 +53,7 @@ SOFTWARE.
#include "resource.h"
#include <X11/Xproto.h>
#include <X11/Xatom.h>
+#include "bug.h"
#include "windowstr.h"
#include "inputstr.h"
#include "scrnintstr.h"
diff --git a/dix/enterleave.c b/dix/enterleave.c
index c1e6ac600..223182aac 100644
--- a/dix/enterleave.c
+++ b/dix/enterleave.c
@@ -32,6 +32,8 @@
#include <X11/extensions/XI2.h>
#include <X11/extensions/XIproto.h>
#include <X11/extensions/XI2proto.h>
+
+#include "bug.h"
#include "inputstr.h"
#include "windowstr.h"
#include "scrnintstr.h"
diff --git a/dix/events.c b/dix/events.c
index 2a5c2683a..3e504e1c3 100644
--- a/dix/events.c
+++ b/dix/events.c
@@ -106,6 +106,8 @@ Equipment Corporation.
#endif
#include <X11/X.h>
+
+#include "bug.h"
#include "misc.h"
#include "resource.h"
#include <X11/Xproto.h>
diff --git a/dix/gestures.c b/dix/gestures.c
index 43672ace5..d95909ea6 100644
--- a/dix/gestures.c
+++ b/dix/gestures.c
@@ -38,6 +38,7 @@
#include "eventconvert.h"
#include "windowstr.h"
#include "mi.h"
+#include "bug.h"
#define GESTURE_HISTORY_SIZE 100
diff --git a/dix/getevents.c b/dix/getevents.c
index c39ef3371..40b303a0b 100644
--- a/dix/getevents.c
+++ b/dix/getevents.c
@@ -37,6 +37,7 @@
#include <math.h>
#include <limits.h>
+#include "bug.h"
#include "misc.h"
#include "resource.h"
#include "inputstr.h"
diff --git a/dix/grabs.c b/dix/grabs.c
index 53ba1d6b9..ed3721363 100644
--- a/dix/grabs.c
+++ b/dix/grabs.c
@@ -62,6 +62,7 @@ SOFTWARE.
#include "exglobals.h"
#include "inpututils.h"
#include "client.h"
+#include "bug.h"
#define BITMASK(i) (((Mask)1) << ((i) & 31))
#define MASKIDX(i) ((i) >> 5)
diff --git a/dix/inpututils.c b/dix/inpututils.c
index 9026f651b..2c77ecf04 100644
--- a/dix/inpututils.c
+++ b/dix/inpututils.c
@@ -27,6 +27,7 @@
#include "dix-config.h"
#endif
+#include "bug.h"
#include "exevents.h"
#include "exglobals.h"
#include "misc.h"
diff --git a/dix/ptrveloc.c b/dix/ptrveloc.c
index 632971ed9..ded8ca13b 100644
--- a/dix/ptrveloc.c
+++ b/dix/ptrveloc.c
@@ -31,6 +31,7 @@
#include <exevents.h>
#include <X11/Xatom.h>
#include <os.h>
+#include "bug.h"
#include <xserver-properties.h>
diff --git a/dix/touch.c b/dix/touch.c
index d0d286f80..235596e99 100644
--- a/dix/touch.c
+++ b/dix/touch.c
@@ -39,6 +39,7 @@
#include "eventconvert.h"
#include "windowstr.h"
#include "mi.h"
+#include "bug.h"
#define TOUCH_HISTORY_SIZE 100