Mercurial > hg > xemacs-beta
comparison src/gifrlib.h @ 647:b39c14581166
[xemacs-hg @ 2001-08-13 04:45:47 by ben]
removal of unsigned, size_t, etc.
author | ben |
---|---|
date | Mon, 13 Aug 2001 04:46:48 +0000 |
parents | 8de8e3f6228a |
children | fdefd0186b75 |
comparison
equal
deleted
inserted
replaced
646:00c54252fe4f | 647:b39c14581166 |
---|---|
56 ColorMapObject *ColorMap; /* The local color map */ | 56 ColorMapObject *ColorMap; /* The local color map */ |
57 } GifImageDesc; | 57 } GifImageDesc; |
58 | 58 |
59 /* I/O operations. If you roll your own, they need to be semantically equivilent to | 59 /* I/O operations. If you roll your own, they need to be semantically equivilent to |
60 fread/fwrite, with an additional paramater to hold data local to your method. */ | 60 fread/fwrite, with an additional paramater to hold data local to your method. */ |
61 typedef size_t (*Gif_rw_func)(GifByteType *buffer, size_t size, VoidPtr method_data); | 61 typedef Memory_Count (*Gif_rw_func)(GifByteType *buffer, Memory_Count size, VoidPtr method_data); |
62 /* Finish up stream. Non-zero return indicates failure */ | 62 /* Finish up stream. Non-zero return indicates failure */ |
63 typedef int (*Gif_close_func)(VoidPtr close_data); | 63 typedef int (*Gif_close_func)(VoidPtr close_data); |
64 /* Error handling function */ | 64 /* Error handling function */ |
65 typedef void (*Gif_error_func)(const char *string, VoidPtr error_data); | 65 typedef void (*Gif_error_func)(const char *string, VoidPtr error_data); |
66 | 66 |
250 | 250 |
251 /* Install StdIO funcs on FILE into GifFile */ | 251 /* Install StdIO funcs on FILE into GifFile */ |
252 void GifStdIOInit(GifFileType *GifFile, FILE *file, int filehandle); | 252 void GifStdIOInit(GifFileType *GifFile, FILE *file, int filehandle); |
253 | 253 |
254 /* Error checking reads, writes and closes */ | 254 /* Error checking reads, writes and closes */ |
255 void GifRead(GifByteType *buf, size_t size, GifFileType *GifFile); | 255 void GifRead(GifByteType *buf, Memory_Count size, GifFileType *GifFile); |
256 void GifWrite(GifByteType *buf, size_t size, GifFileType *GifFile); | 256 void GifWrite(GifByteType *buf, Memory_Count size, GifFileType *GifFile); |
257 int GifClose(GifFileType *GifFile); | 257 int GifClose(GifFileType *GifFile); |
258 | 258 |
259 /* The default Read and Write functions for files */ | 259 /* The default Read and Write functions for files */ |
260 size_t GifStdRead(GifByteType *buf, size_t size, VoidPtr method_data); | 260 Memory_Count GifStdRead(GifByteType *buf, Memory_Count size, VoidPtr method_data); |
261 size_t GifStdWrite(GifByteType *buf, size_t size, VoidPtr method_data); | 261 Memory_Count GifStdWrite(GifByteType *buf, Memory_Count size, VoidPtr method_data); |
262 int GifStdFileClose(VoidPtr method_data); | 262 int GifStdFileClose(VoidPtr method_data); |
263 | 263 |
264 ColorMapObject *MakeMapObject(int ColorCount, GifColorType *ColorMap); | 264 ColorMapObject *MakeMapObject(int ColorCount, GifColorType *ColorMap); |
265 void FreeMapObject(ColorMapObject *Object); | 265 void FreeMapObject(ColorMapObject *Object); |
266 | 266 |