summaryrefslogtreecommitdiff
path: root/x11.h
diff options
context:
space:
mode:
Diffstat (limited to 'x11.h')
-rw-r--r--x11.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/x11.h b/x11.h
index 37e6a43..db5abe7 100644
--- a/x11.h
+++ b/x11.h
@@ -579,4 +579,14 @@ extern const char REQUESTHEADER[], EVENTHEADER[], ERRORHEADER[], REPLYHEADER[];
#define GC_dashes 0x00200000L
#define GC_arc_mode 0x00400000L
+#define printreqlen(buf, fd, dvalue) \
+ do { \
+ if (IShort(&(buf)[2]) == 0 && CS[(fd)].bigreqEnabled) { \
+ printfield (buf, 4, 4, CARD32, "request length"); \
+ buf += 4; \
+ } else { \
+ printfield (buf, 2, 2, CARD16, "request length"); \
+ } \
+ } while (0)
+
#endif /* XSCOPE_X11_H */