comparison src/file/SDL_rwops.c @ 2161:e635db5b45ef

Oh yeah, they're boolean values...
author Sam Lantinga <slouken@libsdl.org>
date Tue, 10 Jul 2007 05:29:56 +0000
parents 00adbaed3910
children d083a2e4433d
comparison
equal deleted inserted replaced
2160:00adbaed3910 2161:e635db5b45ef
122 if (h == INVALID_HANDLE_VALUE) { 122 if (h == INVALID_HANDLE_VALUE) {
123 SDL_SetError("Couldn't open %s", filename); 123 SDL_SetError("Couldn't open %s", filename);
124 return -2; /* failed (CreateFile) */ 124 return -2; /* failed (CreateFile) */
125 } 125 }
126 context->hidden.win32io.h = h; 126 context->hidden.win32io.h = h;
127 context->hidden.win32io.append = a_mode; 127 context->hidden.win32io.append = a_mode ? SDL_TRUE : SDL_FALSE;
128 128
129 return 0; /* ok */ 129 return 0; /* ok */
130 } 130 }
131 static long SDLCALL 131 static long SDLCALL
132 win32_file_seek(SDL_RWops * context, long offset, int whence) 132 win32_file_seek(SDL_RWops * context, long offset, int whence)
453 return (rwops); 453 return (rwops);
454 } 454 }
455 455
456 #ifdef HAVE_STDIO_H 456 #ifdef HAVE_STDIO_H
457 SDL_RWops * 457 SDL_RWops *
458 SDL_RWFromFP(FILE * fp, int autoclose) 458 SDL_RWFromFP(FILE * fp, SDL_bool autoclose)
459 { 459 {
460 SDL_RWops *rwops = NULL; 460 SDL_RWops *rwops = NULL;
461 461
462 rwops = SDL_AllocRW(); 462 rwops = SDL_AllocRW();
463 if (rwops != NULL) { 463 if (rwops != NULL) {