comparison include/SDL_rwops.h @ 337:9154ec9ca3d2

Explicitly specify the SDL API calling convention (C by default)
author Sam Lantinga <slouken@libsdl.org>
date Thu, 11 Apr 2002 14:35:16 +0000
parents f6ffac90895c
children 974c0fb74bf8
comparison
equal deleted inserted replaced
336:745873ea091f 337:9154ec9ca3d2
85 } SDL_RWops; 85 } SDL_RWops;
86 86
87 87
88 /* Functions to create SDL_RWops structures from various data sources */ 88 /* Functions to create SDL_RWops structures from various data sources */
89 89
90 extern DECLSPEC SDL_RWops * SDL_RWFromFile(const char *file, const char *mode); 90 extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromFile(const char *file, const char *mode);
91 91
92 extern DECLSPEC SDL_RWops * SDL_RWFromFP(FILE *fp, int autoclose); 92 extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromFP(FILE *fp, int autoclose);
93 93
94 extern DECLSPEC SDL_RWops * SDL_RWFromMem(void *mem, int size); 94 extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromMem(void *mem, int size);
95 95
96 extern DECLSPEC SDL_RWops * SDL_AllocRW(void); 96 extern DECLSPEC SDL_RWops * SDLCALL SDL_AllocRW(void);
97 extern DECLSPEC void SDL_FreeRW(SDL_RWops *area); 97 extern DECLSPEC void SDLCALL SDL_FreeRW(SDL_RWops *area);
98 98
99 /* Macros to easily read and write from an SDL_RWops structure */ 99 /* Macros to easily read and write from an SDL_RWops structure */
100 #define SDL_RWseek(ctx, offset, whence) (ctx)->seek(ctx, offset, whence) 100 #define SDL_RWseek(ctx, offset, whence) (ctx)->seek(ctx, offset, whence)
101 #define SDL_RWtell(ctx) (ctx)->seek(ctx, 0, SEEK_CUR) 101 #define SDL_RWtell(ctx) (ctx)->seek(ctx, 0, SEEK_CUR)
102 #define SDL_RWread(ctx, ptr, size, n) (ctx)->read(ctx, ptr, size, n) 102 #define SDL_RWread(ctx, ptr, size, n) (ctx)->read(ctx, ptr, size, n)