Mercurial > hg > xemacs-beta
diff src/gif_io.c @ 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 | abe6d1db359e |
children | fdefd0186b75 |
line wrap: on
line diff
--- a/src/gif_io.c Wed Aug 08 12:15:04 2001 +0000 +++ b/src/gif_io.c Mon Aug 13 04:46:48 2001 +0000 @@ -1,13 +1,9 @@ #include <config.h> +#include "lisp.h" -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif +#include "sysfile.h" + #include "gifrlib.h" -#include "sysfile.h" /****************************************************************************** * Set up the GifFileType structure for use. This must be called first in any * @@ -102,13 +98,13 @@ GifSetCloseFunc(GifFile, GifStdFileClose, IOData); } -size_t GifStdRead(GifByteType *buf, size_t size, VoidPtr method_data) +Memory_Count GifStdRead(GifByteType *buf, Memory_Count size, VoidPtr method_data) { GifStdIODataType *IOtype = (GifStdIODataType*)method_data; return (fread(buf, 1, size, IOtype->File)); } -size_t GifStdWrite(GifByteType *buf, size_t size, VoidPtr method_data) +Memory_Count GifStdWrite(GifByteType *buf, Memory_Count size, VoidPtr method_data) { GifStdIODataType *IOtype = (GifStdIODataType*)method_data; return (fwrite(buf, 1, size, IOtype->File)); @@ -124,14 +120,14 @@ return ret; } -void GifRead(GifByteType *buf, size_t size, GifFileType *GifFile) +void GifRead(GifByteType *buf, Memory_Count size, GifFileType *GifFile) { GifIODataType *GifIO = (GifIODataType*)GifFile->GifIO; if ((*(GifIO->ReadFunc))(buf, size, GifIO->ReadFunc_data) != size) GifError(GifFile, "Read error!"); } -void GifWrite(GifByteType *buf, size_t size, GifFileType *GifFile) +void GifWrite(GifByteType *buf, Memory_Count size, GifFileType *GifFile) { GifIODataType *GifIO = (GifIODataType*)GifFile->GifIO; if ((*(GifIO->WriteFunc))(buf, size, GifIO->WriteFunc_data) != size)