+2002-02-09 Daniel Elstner <daniel.elstner@gmx.net>
+
+ * gtk/gtktextchild.c (CHECK_IN_BUFFER_RETURN): Add missing
+ curled braces so that it doesn't always return. Also indent
+ both CHECK_IN_BUFFER* macros properly, and make use of
+ G_STMT_START/G_STMT_END.
+
Sat Feb 9 13:27:14 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkbindings.h: Add prototype for
+2002-02-09 Daniel Elstner <daniel.elstner@gmx.net>
+
+ * gtk/gtktextchild.c (CHECK_IN_BUFFER_RETURN): Add missing
+ curled braces so that it doesn't always return. Also indent
+ both CHECK_IN_BUFFER* macros properly, and make use of
+ G_STMT_START/G_STMT_END.
+
Sat Feb 9 13:27:14 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkbindings.h: Add prototype for
+2002-02-09 Daniel Elstner <daniel.elstner@gmx.net>
+
+ * gtk/gtktextchild.c (CHECK_IN_BUFFER_RETURN): Add missing
+ curled braces so that it doesn't always return. Also indent
+ both CHECK_IN_BUFFER* macros properly, and make use of
+ G_STMT_START/G_STMT_END.
+
Sat Feb 9 13:27:14 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkbindings.h: Add prototype for
+2002-02-09 Daniel Elstner <daniel.elstner@gmx.net>
+
+ * gtk/gtktextchild.c (CHECK_IN_BUFFER_RETURN): Add missing
+ curled braces so that it doesn't always return. Also indent
+ both CHECK_IN_BUFFER* macros properly, and make use of
+ G_STMT_START/G_STMT_END.
+
Sat Feb 9 13:27:14 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkbindings.h: Add prototype for
+2002-02-09 Daniel Elstner <daniel.elstner@gmx.net>
+
+ * gtk/gtktextchild.c (CHECK_IN_BUFFER_RETURN): Add missing
+ curled braces so that it doesn't always return. Also indent
+ both CHECK_IN_BUFFER* macros properly, and make use of
+ G_STMT_START/G_STMT_END.
+
Sat Feb 9 13:27:14 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkbindings.h: Add prototype for
+2002-02-09 Daniel Elstner <daniel.elstner@gmx.net>
+
+ * gtk/gtktextchild.c (CHECK_IN_BUFFER_RETURN): Add missing
+ curled braces so that it doesn't always return. Also indent
+ both CHECK_IN_BUFFER* macros properly, and make use of
+ G_STMT_START/G_STMT_END.
+
Sat Feb 9 13:27:14 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkbindings.h: Add prototype for
+2002-02-09 Daniel Elstner <daniel.elstner@gmx.net>
+
+ * gtk/gtktextchild.c (CHECK_IN_BUFFER_RETURN): Add missing
+ curled braces so that it doesn't always return. Also indent
+ both CHECK_IN_BUFFER* macros properly, and make use of
+ G_STMT_START/G_STMT_END.
+
Sat Feb 9 13:27:14 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkbindings.h: Add prototype for
#include "gtktextbtree.h"
#include "gtktextlayout.h"
-#define CHECK_IN_BUFFER(anchor) do { if ((anchor)->segment == NULL) g_warning ("%s: GtkTextChildAnchor hasn't been in a buffer yet", G_GNUC_FUNCTION); } while (0)
-#define CHECK_IN_BUFFER_RETURN(anchor, val) do { if ((anchor)->segment == NULL) g_warning ("%s: GtkTextChildAnchor hasn't been in a buffer yet", G_GNUC_FUNCTION); return (val); } while (0)
+#define CHECK_IN_BUFFER(anchor) \
+ G_STMT_START { \
+ if ((anchor)->segment == NULL) \
+ { \
+ g_warning ("%s: GtkTextChildAnchor hasn't been in a buffer yet", G_GNUC_FUNCTION); \
+ } \
+ } G_STMT_END
+
+#define CHECK_IN_BUFFER_RETURN(anchor, val) \
+ G_STMT_START { \
+ if ((anchor)->segment == NULL) \
+ { \
+ g_warning ("%s: GtkTextChildAnchor hasn't been in a buffer yet", G_GNUC_FUNCTION); \
+ return (val); \
+ } \
+ } G_STMT_END
static GtkTextLineSegment *
pixbuf_segment_cleanup_func (GtkTextLineSegment *seg,