Fix trailing semicolon on macro, clean up a bit.

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.
This commit is contained in:
Owen Taylor
2002-11-06 20:26:27 +00:00
committed by Owen Taylor
parent 11c530fe16
commit 3f92a70e8b
2 changed files with 15 additions and 7 deletions

View 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.

View 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)