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.
This commit is contained in:
parent
ee8d7f478f
commit
67e3121dec
8 changed files with 65 additions and 2 deletions
|
|
@ -1,3 +1,10 @@
|
|||
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
|
||||
|
|
|
|||
|
|
@ -1,3 +1,10 @@
|
|||
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
|
||||
|
|
|
|||
|
|
@ -1,3 +1,10 @@
|
|||
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
|
||||
|
|
|
|||
|
|
@ -1,3 +1,10 @@
|
|||
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
|
||||
|
|
|
|||
|
|
@ -1,3 +1,10 @@
|
|||
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
|
||||
|
|
|
|||
|
|
@ -1,3 +1,10 @@
|
|||
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
|
||||
|
|
|
|||
|
|
@ -1,3 +1,10 @@
|
|||
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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue