r9363 - packages/trunk/xmahjongg/debian/patches
Peter Pentchev
roam-guest at alioth.debian.org
Fri Apr 3 11:59:36 UTC 2009
Author: roam-guest
Date: 2009-04-03 11:59:36 +0000 (Fri, 03 Apr 2009)
New Revision: 9363
Modified:
packages/trunk/xmahjongg/debian/patches/04-gif-read-errors.patch
Log:
My GIF library patches initially meant for the getter functions to
return the number of bytes actually read (hence an unsigned value),
but were later changed to let them return a true/false flag.
This is better served by a plain "int" return type.
Modified: packages/trunk/xmahjongg/debian/patches/04-gif-read-errors.patch
===================================================================
--- packages/trunk/xmahjongg/debian/patches/04-gif-read-errors.patch 2009-04-03 11:51:31 UTC (rev 9362)
+++ packages/trunk/xmahjongg/debian/patches/04-gif-read-errors.patch 2009-04-03 11:59:36 UTC (rev 9363)
@@ -7,7 +7,7 @@
int is_eoi;
uint8_t (*byte_getter)(struct Gif_Reader *);
- void (*block_getter)(uint8_t *, uint32_t, struct Gif_Reader *);
-+ uint32_t (*block_getter)(uint8_t *, uint32_t, struct Gif_Reader *);
++ int (*block_getter)(uint8_t *, uint32_t, struct Gif_Reader *);
uint32_t (*offseter)(struct Gif_Reader *);
int (*eofer)(struct Gif_Reader *);
@@ -16,7 +16,7 @@
}
-static void
-+uint32_t
++int
file_block_getter(uint8_t *p, uint32_t s, Gif_Reader *grr)
{
- fread(p, 1, s, grr->f);
@@ -29,7 +29,7 @@
}
-static void
-+static uint32_t
++static int
record_block_getter(uint8_t *p, uint32_t s, Gif_Reader *grr)
{
- if (s > grr->w) s = grr->w;
More information about the Pkg-games-commits
mailing list