Mercurial > sdl-ios-xcode
annotate test/automated/rwops/TestSupportRWops_Generic.c @ 4620:f4a93bde905f
Fixed compiling without XRender enabled
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 28 Jul 2010 01:14:48 -0700 |
parents | 033c455bbe99 |
children | 27ab20a36eba |
rev | line source |
---|---|
4451
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
1 /* Generic implementation for file opening routines. |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
2 * Customizations for specific platforms should go in alternative files. |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
3 */ |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
4 #include <stdio.h> |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
5 #include "SDL.h" |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
6 |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
7 const char* RWOPS_READ = "rwops/read"; |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
8 const char* RWOPS_WRITE = "rwops/write"; |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
9 |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
10 FILE* TestSupportRWops_OpenFPFromReadDir(const char *file, const char *mode) |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
11 { |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
12 return fopen(file, mode); |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
13 } |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
14 |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
15 FILE* TestSupportRWops_OpenFPFromWriteDir(const char *file, const char *mode) |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
16 { |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
17 return fopen(file, mode); |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
18 } |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
19 |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
20 SDL_RWops* TestSupportRWops_OpenRWopsFromReadDir(const char *file, const char *mode) |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
21 { |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
22 return SDL_RWFromFile(file, mode); |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
23 } |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
24 |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
25 SDL_RWops* TestSupportRWops_OpenRWopsFromWriteDir(const char *file, const char *mode) |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
26 { |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
27 return SDL_RWFromFile(file, mode); |
033c455bbe99
Refactored automated rwops tests so read and write directories can be more easily customized.
Eric Wing <ewing . public |-at-| gmail . com>
parents:
diff
changeset
|
28 } |