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:
@ -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.
|
||||
|
||||
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user