Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
313edeff
Commit
313edeff
authored
Aug 10, 2011
by
Markus Kauppila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing previous commit. Forgot to add a few files.
parent
b96fa6da
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
0 deletions
+44
-0
TestSupportRWops.h
test/test-automation/tests/testrwops/TestSupportRWops.h
+12
-0
TestSupportRWops_Generic.c
...est-automation/tests/testrwops/TestSupportRWops_Generic.c
+31
-0
read
test/test-automation/tests/testrwops/read
+1
-0
No files found.
test/test-automation/tests/testrwops/TestSupportRWops.h
0 → 100644
View file @
313edeff
#ifndef TestSupportRWops_h
#define TestSupportRWops_h
#include <stdio.h>
#include <SDL/SDL.h>
FILE
*
TestSupportRWops_OpenFPFromReadDir
(
const
char
*
file
,
const
char
*
mode
);
FILE
*
TestSupportRWops_OpenFPFromWriteDir
(
const
char
*
file
,
const
char
*
mode
);
SDL_RWops
*
TestSupportRWops_OpenRWopsFromReadDir
(
const
char
*
file
,
const
char
*
mode
);
SDL_RWops
*
TestSupportRWops_OpenRWopsFromWriteDir
(
const
char
*
file
,
const
char
*
mode
);
#endif
test/test-automation/tests/testrwops/TestSupportRWops_Generic.c
0 → 100644
View file @
313edeff
/* Generic implementation for file opening routines.
* Customizations for specific platforms should go in alternative files.
*/
// quiet windows compiler warnings
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <SDL/SDL.h>
#include "TestSupportRWops.h"
FILE
*
TestSupportRWops_OpenFPFromReadDir
(
const
char
*
file
,
const
char
*
mode
)
{
return
fopen
(
file
,
mode
);
}
FILE
*
TestSupportRWops_OpenFPFromWriteDir
(
const
char
*
file
,
const
char
*
mode
)
{
return
fopen
(
file
,
mode
);
}
SDL_RWops
*
TestSupportRWops_OpenRWopsFromReadDir
(
const
char
*
file
,
const
char
*
mode
)
{
return
SDL_RWFromFile
(
file
,
mode
);
}
SDL_RWops
*
TestSupportRWops_OpenRWopsFromWriteDir
(
const
char
*
file
,
const
char
*
mode
)
{
return
SDL_RWFromFile
(
file
,
mode
);
}
test/test-automation/tests/testrwops/read
0 → 100644
View file @
313edeff
Hello World!
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment