comparison src/gif_io.c @ 4521:383ab474a241

Fix docstring typo.
author Stephen J. Turnbull <stephen@xemacs.org>
date Tue, 28 Oct 2008 10:38:26 +0900
parents 61855263cb07
children fc7067b7f407
comparison
equal deleted inserted replaced
4520:279cadceaa13 4521:383ab474a241
138 { 138 {
139 GifIODataType *GifIO = (GifIODataType*)GifFile->GifIO; 139 GifIODataType *GifIO = (GifIODataType*)GifFile->GifIO;
140 return ((*(GifIO->CloseFunc))(GifIO->CloseFunc_data)); 140 return ((*(GifIO->CloseFunc))(GifIO->CloseFunc_data));
141 } 141 }
142 142
143 static char *GifErrorString[14] = { 143 static const char *GifErrorString[14] = {
144 "Failed to open given file", /* D_GIF_ERR_OPEN_FAILED */ 144 "Failed to open given file", /* D_GIF_ERR_OPEN_FAILED */
145 "Failed to read from given file", /* D_GIF_ERR_READ_FAILED */ 145 "Failed to read from given file", /* D_GIF_ERR_READ_FAILED */
146 "Given file is NOT a GIF file", /* D_GIF_ERR_NOT_GIF_FILE */ 146 "Given file is NOT a GIF file", /* D_GIF_ERR_NOT_GIF_FILE */
147 "No Screen Descriptor detected", /* D_GIF_ERR_NO_SCRN_DSCR */ 147 "No Screen Descriptor detected", /* D_GIF_ERR_NO_SCRN_DSCR */
148 "No Image Descriptor detected", /* D_GIF_ERR_NO_IMAG_DSCR */ 148 "No Image Descriptor detected", /* D_GIF_ERR_NO_IMAG_DSCR */
162 /***************************************************************************** 162 /*****************************************************************************
163 * Get the last GIF error in human-readable form. * 163 * Get the last GIF error in human-readable form. *
164 *****************************************************************************/ 164 *****************************************************************************/
165 const char *GetGifError(int errore) 165 const char *GetGifError(int errore)
166 { 166 {
167 char *Err; 167 const char *Err;
168 168
169 switch(errore) { 169 switch(errore) {
170 case D_GIF_ERR_OPEN_FAILED: 170 case D_GIF_ERR_OPEN_FAILED:
171 Err = GifErrorString[0]; 171 Err = GifErrorString[0];
172 break; 172 break;