comparison include/SDL_rwops.h @ 930:02759105b989

Date: Fri, 20 Aug 2004 08:31:20 +0200 From: "Markus F.X.J. Oberhumer" Subject: [SDL-CVS][patch] add missing SDLCALL to headers the small patch attached below (against current CVS) adds some missing SDLCALL decorations to callback types and arguments. Unfortunately one of these changes breaks your gen{def,exp}.pl scripts which should be changed to use non-greedy regular expression matching...
author Sam Lantinga <slouken@libsdl.org>
date Fri, 20 Aug 2004 18:57:01 +0000
parents b8d311d90021
children c9b51268668f
comparison
equal deleted inserted replaced
929:03fb90fc135e 930:02759105b989
47 typedef struct SDL_RWops { 47 typedef struct SDL_RWops {
48 /* Seek to 'offset' relative to whence, one of stdio's whence values: 48 /* Seek to 'offset' relative to whence, one of stdio's whence values:
49 SEEK_SET, SEEK_CUR, SEEK_END 49 SEEK_SET, SEEK_CUR, SEEK_END
50 Returns the final offset in the data source. 50 Returns the final offset in the data source.
51 */ 51 */
52 int (*seek)(struct SDL_RWops *context, int offset, int whence); 52 int (SDLCALL *seek)(struct SDL_RWops *context, int offset, int whence);
53 53
54 /* Read up to 'num' objects each of size 'objsize' from the data 54 /* Read up to 'num' objects each of size 'objsize' from the data
55 source to the area pointed at by 'ptr'. 55 source to the area pointed at by 'ptr'.
56 Returns the number of objects read, or -1 if the read failed. 56 Returns the number of objects read, or -1 if the read failed.
57 */ 57 */
58 int (*read)(struct SDL_RWops *context, void *ptr, int size, int maxnum); 58 int (SDLCALL *read)(struct SDL_RWops *context, void *ptr, int size, int maxnum);
59 59
60 /* Write exactly 'num' objects each of size 'objsize' from the area 60 /* Write exactly 'num' objects each of size 'objsize' from the area
61 pointed at by 'ptr' to data source. 61 pointed at by 'ptr' to data source.
62 Returns 'num', or -1 if the write failed. 62 Returns 'num', or -1 if the write failed.
63 */ 63 */
64 int (*write)(struct SDL_RWops *context, const void *ptr, int size, int num); 64 int (SDLCALL *write)(struct SDL_RWops *context, const void *ptr, int size, int num);
65 65
66 /* Close and free an allocated SDL_FSops structure */ 66 /* Close and free an allocated SDL_FSops structure */
67 int (*close)(struct SDL_RWops *context); 67 int (SDLCALL *close)(struct SDL_RWops *context);
68 68
69 Uint32 type; 69 Uint32 type;
70 union { 70 union {
71 struct { 71 struct {
72 int autoclose; 72 int autoclose;