diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-18 11:42:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-18 11:42:47 +0300 |
commit | 34b2fb221130af772356e47b047854c02b0bdef0 (patch) | |
tree | ffeed3638d9c08d587512aa56092eb66f6d83d21 /src | |
parent | f9a8845bbbfd5403a720dec46c7327c45dade4ea (diff) | |
download | plus-34b2fb221130af772356e47b047854c02b0bdef0.tar.gz plus-34b2fb221130af772356e47b047854c02b0bdef0.tar.bz2 plus-34b2fb221130af772356e47b047854c02b0bdef0.tar.xz plus-34b2fb221130af772356e47b047854c02b0bdef0.zip |
add restrict into physfscheckutils.
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/physfscheckutils.cpp | 10 | ||||
-rw-r--r-- | src/utils/physfscheckutils.h | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/utils/physfscheckutils.cpp b/src/utils/physfscheckutils.cpp index 61e6e68e7..6b443dc65 100644 --- a/src/utils/physfscheckutils.cpp +++ b/src/utils/physfscheckutils.cpp @@ -51,9 +51,9 @@ namespace std::map<void*, MemoryObject*> mRWops; } // namespace -static SDL_RWops *addRWops(SDL_RWops *const rwops, - const char *const name, - const char *const file, +static SDL_RWops *addRWops(SDL_RWops *restrict const rwops, + const char *restrict const name, + const char *restrict const file, const unsigned line) { if (!rwops) @@ -84,8 +84,8 @@ static void deleteRWops(SDL_RWops *const rwops) } } -SDL_RWops *FakePHYSFSRWOPS_openRead(const char *const name, - const char *const file, +SDL_RWops *FakePHYSFSRWOPS_openRead(const char *restrict const name, + const char *restrict const file, const unsigned line) { return addRWops(PHYSFSRWOPS_openRead(name), name, file, line); diff --git a/src/utils/physfscheckutils.h b/src/utils/physfscheckutils.h index 8b6bda6ea..df14fe093 100644 --- a/src/utils/physfscheckutils.h +++ b/src/utils/physfscheckutils.h @@ -26,8 +26,8 @@ #include <SDL.h> -SDL_RWops *FakePHYSFSRWOPS_openRead(const char *const name, - const char *const file, +SDL_RWops *FakePHYSFSRWOPS_openRead(const char *restrict const name, + const char *restrict const file, const unsigned line); void FakePhysFSClose(SDL_RWops *const rwops); |