Commit 67e3121d authored by Daniel Elstner's avatar Daniel Elstner Committed by Daniel Elstner

Add missing curled braces so that it doesn't always return. Also indent

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.
parent ee8d7f47
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
......
......@@ -52,8 +52,22 @@
#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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment