/usr/include/libAfterBase/trace.h is in libafterimage-dev 2.2.12-11.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | #ifndef TRACE_H_HEADER_INCLUDED
#define TRACE_H_HEADER_INCLUDED
#include "afterbase_config.h"
#ifdef __cplusplus
extern "C" {
#endif
/*
* This code is a (hopefully) nearly transparent way to keep track of
* memory allocations and deallocations, to make finding memory leaks
* easier. GCC is required (for the __FUNCTION__ preprocessor macro).
*
* To use it, define DEBUG_TRACE before including this header
*/
#if !defined(AFTERBASE_DEBUG_ALLOCS) && defined(AFTERBASE_DEBUG_TRACE) && !defined(NO_DEBUG_TRACE)
# if !defined(X_DISPLAY_MISSING) && defined(AFTERBASE_X_DISPLAY)
/* Select section : select functions to trace here : */
/* Xlib calls */
# undef TRACE_XDestroyWindow
# define TRACE_XGetGeometry
# undef TRACE_XNextEvent /* all of the Event retreival functions */
/* the following allows filtering events using event masks
(It also applicable to the tracing of DispatchEvent) : */
/* couple additional masks to compensate for X defaults :*/
# define SelectionMask (1L<<29)
# define ClientMask (1L<<30)
# define MappingMask (1L<<31)
/* use standard X event masks here : */
# define EVENT_TRACE_MASK (0xFFFFFFFF)
# undef TRACE_mystrdup /* both mystrdup and mystrndup */
/* End of the Select section */
/* Xlib calls */
# ifdef TRACE_XDestroyWindow
# define XDestroyWindow(d,w) trace_XDestroyWindow(d,w,__FILE__,__LINE__)
extern Status trace_XDestroyWindow (Display * dpy, Window w,
const char *filename, int line);
# endif
# ifdef TRACE_XGetGeometry
# define XGetGeometry(d,dr,r,x,y,w,h,b,de) trace_XGetGeometry(d,dr,r,x,y,w,h,b,de,__FILE__,__LINE__)
extern Status trace_XGetGeometry (Display * dpy, Drawable d,
Window * root_return,
int *x_return, int *y_return,
unsigned int *width_return,
unsigned int *height_return,
unsigned int *border_width_return,
unsigned int *depth_return,
const char *filename, int line);
# endif
# ifdef TRACE_XNextEvent
# define XCheckMaskEvent(d,m,e) trace_XCheckMaskEvent(d,m,e,__FILE__,__LINE__)
extern Bool trace_XCheckMaskEvent (Display * dpy, long mask, XEvent * event,
const char *file, int line);
# define XCheckTypedEvent(d,t,e) trace_XCheckTypedEvent(d,t,e,__FILE__,__LINE__)
extern Bool trace_XCheckTypedEvent (Display * dpy, int event_type,
XEvent * event_return, const char *file,
int line);
# define XCheckTypedWindowEvent(d,w,t,e) trace_XCheckTypedWindowEvent(d,w,t,e,__FILE__,__LINE__)
extern Bool trace_XCheckTypedWindowEvent (Display * dpy, Window w,
int event_type,
XEvent * event_return,
const char *file, int line);
# define XCheckWindowEvent(d,w,m,e) trace_XCheckWindowEvent(d,w,m,e,__FILE__,__LINE__)
extern Bool trace_XCheckWindowEvent (Display * dpy, Window w, long event_mask,
XEvent * event_return, const char *file,
int line);
# define XNextEvent(d,e) trace_XNextEvent(d,e,__FILE__,__LINE__)
extern int trace_XNextEvent (Display * dpy, XEvent * event, const char *file,
int line);
# define XPeekEvent(d,e) trace_XPeekEvent(d,e,__FILE__,__LINE__)
extern int trace_XPeekEvent (Display * dpy, XEvent * event_return,
const char *file, int line);
# define XMaskEvent(d,m,e) trace_XMaskEvent(d,m,e,__FILE__,__LINE__)
extern int trace_XMaskEvent (Display * dpy, long event_mask,
XEvent * event_return, const char *file,
int line);
# define XPutBackEvent(d,e) trace_XPutBackEvent(d,e,__FILE__,__LINE__)
extern int trace_XPutBackEvent (Display * dpy, XEvent * event,
const char *file, int line);
# define XWindowEvent(d,e) trace_XWindowEvent(d,e,__FILE__,__LINE__)
extern int trace_XWindowEvent (Display * dpy, Window w, long event_mask,
XEvent * event_return, const char *file,
int line);
# endif
# endif /* X_DISPLAY_MISSING */
# ifdef TRACE_mystrdup
# define mystrdup(a) trace_mystrdup(a,__FUNCTION__,__LINE__)
# define mystrndup(a,b) trace_mystrndup(a,b,__FUNCTION__,__LINE__)
char *trace_mystrdup (const char *str, const char *file, int line);
char *trace_mystrndup (const char *str, size_t n, const char *file, int line);
# endif
#endif /* DEBUG_TRACE */
#if defined(AFTERBASE_DEBUG_TRACE_X) && !defined(NO_DEBUG_TRACE)
# if !defined(X_DISPLAY_MISSING) && defined(AFTERBASE_X_DISPLAY)
# define XRaiseWindow(a,b) trace_XRaiseWindow(__FILE__, __FUNCTION__, __LINE__, a, b)
# define XLowerWindow(a,b) trace_XLowerWindow(__FILE__, __FUNCTION__, __LINE__, a, b)
# define XRestackWindows(a,b,c) trace_XRestackWindows(__FILE__, __FUNCTION__, __LINE__, a, b, c)
# define XResizeWindow(a,b,c,d) trace_XResizeWindow(__FILE__, __FUNCTION__, __LINE__, a, b, c, d)
# define XMoveWindow(a,b,c,d) trace_XMoveWindow(__FILE__, __FUNCTION__, __LINE__, a, b, c, d)
# define XMoveResizeWindow(a,b,c,d,e,f) trace_XMoveResizeWindow(__FILE__, __FUNCTION__, __LINE__, a, b, c, d, e, f)
void trace_XRaiseWindow (const char *file, const char *func, int line,
Display * dpy, Window w);
void trace_XLowerWindow (const char *file, const char *func, int line,
Display * dpy, Window w);
void trace_XRestackWindows (const char *file, const char *func, int line,
Display * dpy, Window windows[], int nwindows);
void trace_XResizeWindow (const char *file, const char *func, int line,
Display * dpy, Window w, int width, int height);
void trace_XMoveWindow (const char *file, const char *func, int line,
Display * dpy, Window w, int x, int y);
void trace_XMoveResizeWindow (const char *file, const char *func, int line,
Display * dpy, Window w, int x, int y,
int width, int height);
int trace_enable_function (const char *name);
int trace_disable_function (const char *name);
extern const char *(*trace_window_id2name_hook) (Display * dpy, Window w,
int *how_to_free);
# endif /* X_DISPLAY_MISSING */
#endif /* DEBUG_TRACE_X */
#ifdef __cplusplus
}
#endif
#endif /* AFTERSTEP_TRACE_H */
|