summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Jennings <mej@lbl.gov>2013-03-06 11:17:29 -0800
committerMichael Jennings <mej@lbl.gov>2013-03-06 11:17:29 -0800
commit12630faaa6b4be2f920ade11554a0ae5f71d1acc (patch)
tree148d49ae78e00501a78d476f9a6ed62e666f52d4
parentf7a817086d3ea986d7df56b331e970a8724abb91 (diff)
downloadlibast-12630faaa6b4be2f920ade11554a0ae5f71d1acc.tar.gz
A preview of what's to come.
-rw-r--r--include/libast.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/libast.h b/include/libast.h
index 7865944..b311d0a 100644
--- a/include/libast.h
+++ b/include/libast.h
@@ -1260,6 +1260,17 @@ extern int re_exec();
# endif
# define STRDUP(s) spifmem_strdup(#s, __FILE__, __LINE__, (s))
# define MALLOC_DUMP() spifmem_dump_mem_tables()
+
+/* X11 Wrappers */
+# if 0 && defined(LIBAST_SUPPORT_MACRO_CSE)
+# define X_CREATE_PIXMAP(d, win, w, h, depth) ({ \
+ Pixmap p = XCreatePixmap((d), (win), (w), (h), (depth)); \
+ D_MEM(("Created %ux%u pixmap 0x%08x of depth %u for window 0x%08x at %s:%lu\n", (w), (h), p, (depth), (win), __FILE__, __LINE__)); \
+ if (p == None) return p; \
+ memrec_add_var(&pixmap_rec, (spif_charptr_t) NONULL(filename), line, (void *) p, w * h * (depth / 8)); \
+ p; \
+ })
+# endif
# define X_CREATE_PIXMAP(d, win, w, h, depth) spifmem_x_create_pixmap(__FILE__, __LINE__, (d), (win), (w), (h), (depth))
# define X_FREE_PIXMAP(d, p) spifmem_x_free_pixmap(#p, __FILE__, __LINE__, (d), (p))
# if LIBAST_IMLIB2_SUPPORT