[Xcb-commit] 2 commits - configure.ac icccm xcb-util-common.h

Arnaud Fontaine arnau at kemper.freedesktop.org
Wed Jun 3 08:59:40 PDT 2009


 configure.ac      |    6 +++++-
 icccm/icccm.c     |   18 +++++++++++-------
 xcb-util-common.h |    4 ++++
 3 files changed, 20 insertions(+), 8 deletions(-)

New commits:
commit f68336d94fdb8f2f4758cc0fd4c0fc7e9e667e1e
Author: Arnaud Fontaine <arnau at debian.org>
Date:   Wed Jun 3 20:50:32 2009 +0900

    Check for ssize_t in configure for xcb-util-common.h

diff --git a/configure.ac b/configure.ac
index a1140b6..714b617 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,5 @@
-AC_PREREQ(2.57)
+dnl AC_TYPE_SSIZE_T is defined from 2.59c
+AC_PREREQ(2.59c)
 AC_INIT([xcb-util],0.3.5,[xcb at lists.freedesktop.org])
 AC_CONFIG_SRCDIR([Makefile.am])
 AM_INIT_AUTOMAKE([foreign dist-bzip2])
@@ -41,6 +42,9 @@ fi
 AC_SUBST(CWARNFLAGS)
 AC_CHECK_FUNCS_ONCE(vasprintf)
 
+dnl Checking whether ssize_t is defined (xcb-util-common.h)
+AC_TYPE_SSIZE_T
+
 xcbincludedir='${includedir}/xcb'
 AC_SUBST(xcbincludedir)
 
diff --git a/xcb-util-common.h b/xcb-util-common.h
index b325bf5..a76fbb3 100644
--- a/xcb-util-common.h
+++ b/xcb-util-common.h
@@ -29,5 +29,9 @@
  *
  */
 
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+
 #define ssizeof(foo)            (ssize_t)sizeof(foo)
 #define countof(foo)            (ssizeof(foo) / ssizeof(foo[0]))
commit d153adcab9128318753099c1fad24e40c18ab134
Author: Arnaud Fontaine <arnau at debian.org>
Date:   Sun May 10 15:04:53 2009 +0100

    icccm: use xcb_gravity_t when possible and cosmetic changes

diff --git a/icccm/icccm.c b/icccm/icccm.c
index 1c3de0d..9d13334 100644
--- a/icccm/icccm.c
+++ b/icccm/icccm.c
@@ -70,7 +70,8 @@ xcb_get_text_property_reply(xcb_connection_t *c,
   return 1;
 }
 
-void xcb_get_text_property_reply_wipe(xcb_get_text_property_reply_t *prop)
+void
+xcb_get_text_property_reply_wipe(xcb_get_text_property_reply_t *prop)
 {
   free(prop->_reply);
 }
@@ -268,7 +269,8 @@ xcb_get_wm_class_reply(xcb_connection_t *c, xcb_get_property_cookie_t cookie,
   return ret;
 }
 
-void xcb_get_wm_class_reply_wipe(xcb_get_wm_class_reply_t *prop)
+void
+xcb_get_wm_class_reply_wipe(xcb_get_wm_class_reply_t *prop)
 {
   free(prop->_reply);
 }
@@ -388,7 +390,7 @@ xcb_size_hints_set_base_size(xcb_size_hints_t *hints, int32_t base_width,
 }
 
 void
-xcb_size_hints_set_win_gravity(xcb_size_hints_t *hints, uint32_t win_gravity)
+xcb_size_hints_set_win_gravity(xcb_size_hints_t *hints, xcb_gravity_t win_gravity)
 {
   hints->flags |= XCB_SIZE_HINT_P_WIN_GRAVITY;
   hints->win_gravity = win_gravity;
@@ -605,15 +607,17 @@ xcb_set_wm_hints(xcb_connection_t *c, xcb_window_t window,
                       sizeof(*hints) >> 2, hints);
 }
 
-xcb_get_property_cookie_t xcb_get_wm_hints(xcb_connection_t *c,
-                                           xcb_window_t window)
+xcb_get_property_cookie_t
+xcb_get_wm_hints(xcb_connection_t *c,
+                 xcb_window_t window)
 {
   return xcb_get_property(c, 0, window, WM_HINTS, WM_HINTS, 0L,
                           XCB_NUM_WM_HINTS_ELEMENTS);
 }
 
-xcb_get_property_cookie_t xcb_get_wm_hints_unchecked(xcb_connection_t *c,
-                                                     xcb_window_t window)
+xcb_get_property_cookie_t
+xcb_get_wm_hints_unchecked(xcb_connection_t *c,
+                           xcb_window_t window)
 {
   return xcb_get_property_unchecked(c, 0, window, WM_HINTS, WM_HINTS, 0L,
                                     XCB_NUM_WM_HINTS_ELEMENTS);


More information about the xcb-commit mailing list