Mercurial > sdl-ios-xcode
annotate test/automated/rwops/TestSupportRWops_Generic.c @ 4956:e0bd00bfd118
Fixed problem with trailing space
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 04 Jan 2011 12:49:48 -0800 |
parents | 27ab20a36eba |
children | e8916fe9cfc8 |
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 */ |
4884
27ab20a36eba
- added directx include path to VS2008 solution
Andreas Schiffler <aschiffler@ferzkopp.net>
parents:
4451
diff
changeset
|
4 |
27ab20a36eba
- added directx include path to VS2008 solution
Andreas Schiffler <aschiffler@ferzkopp.net>
parents:
4451
diff
changeset
|
5 // quiet win32 compiler warnings |
27ab20a36eba
- added directx include path to VS2008 solution
Andreas Schiffler <aschiffler@ferzkopp.net>
parents:
4451
diff
changeset
|
6 #define _CRT_SECURE_NO_WARNINGS |
27ab20a36eba
- added directx include path to VS2008 solution
Andreas Schiffler <aschiffler@ferzkopp.net>
parents:
4451
diff
changeset
|
7 |
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
|
8 #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
|
9 #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
|
10 |
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 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
|
12 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
|
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 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
|
15 { |
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 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
|
17 } |
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 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
|
20 { |
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 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
|
22 } |
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 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
|
25 { |
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 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
|
27 } |
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 |
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
|
29 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
|
30 { |
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
|
31 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
|
32 } |