]> Pileus Git - ~andy/gtk/commitdiff
Fix trailing semicolon on macro, clean up a bit.
authorOwen Taylor <otaylor@redhat.com>
Wed, 6 Nov 2002 20:26:27 +0000 (20:26 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Wed, 6 Nov 2002 20:26:27 +0000 (20:26 +0000)
Wed Nov  6 15:19:53 2002  Owen Taylor  <otaylor@redhat.com>

        * io-gif.c (CHECK_LZW_SP): Fix trailing semicolon on macro,
        clean up a bit.

gdk-pixbuf/ChangeLog
gdk-pixbuf/io-gif.c

index 4ad272875f0c8ab4154dff9c1ab539c006861aac..d048e8e11d0d58516228187ceafeddaf2c991030 100644 (file)
@@ -1,3 +1,8 @@
+Wed Nov  6 15:19:53 2002  Owen Taylor  <otaylor@redhat.com>
+       * io-gif.c (CHECK_LZW_SP): Fix trailing semicolon on macro,
+       clean up a bit.
 2002-11-05  Matthias Clasen  <maclas@gmx.de>
 
        * gdk-pixbuf-loader.c: Reindent to follow the gdk-pixbuf indentation.  
index 6eb364ec15d31a93b5050aefb21b3ca1d345f7d6..b5e3072a659cbcd4213749049b102edba576462b 100644 (file)
@@ -565,13 +565,16 @@ gif_lzw_clear_code (GifContext *context)
        return 0;
 }
 
-#define CHECK_LZW_SP() if(((guchar *)context->lzw_sp) >= (((guchar *)context->lzw_stack) + sizeof(context->lzw_stack))) { \
-        g_set_error (context->error,                  \
-                     GDK_PIXBUF_ERROR,                \
-                     GDK_PIXBUF_ERROR_CORRUPT_IMAGE,  \
-                     _("Stack overflow"));            \
-        return -2;                                    \
-}
+#define CHECK_LZW_SP() G_STMT_START {                                           \
+        if ((guchar *)context->lzw_sp >=                                        \
+            (guchar *)context->lzw_stack + sizeof (context->lzw_stack)) {       \
+                 g_set_error (context->error,                                   \
+                             GDK_PIXBUF_ERROR,                                  \
+                             GDK_PIXBUF_ERROR_CORRUPT_IMAGE,                    \
+                             _("Stack overflow"));                              \
+                return -2;                                                      \
+        }                                                                       \
+} G_STMT_END
 
 static int
 lzw_read_byte (GifContext *context)