mirror of
https://github.com/shadps4-emu/ext-SDL.git
synced 2024-11-26 19:40:23 +00:00
Remove SDL_RESTRICT in favor of doc comments
This commit is contained in:
parent
731939fca1
commit
d6caf2abe7
@ -225,13 +225,3 @@
|
||||
#define SDL_ALLOC_SIZE2(p1, p2)
|
||||
#endif
|
||||
#endif /* SDL_ALLOC_SIZE2 not defined */
|
||||
|
||||
#ifndef SDL_RESTRICT
|
||||
#if defined(__GNUC__)
|
||||
#define SDL_RESTRICT __restrict__
|
||||
#elif defined(_MSC_VER)
|
||||
#define SDL_RESTRICT __restrict
|
||||
#else
|
||||
#define SDL_RESTRICT
|
||||
#endif
|
||||
#endif
|
||||
|
@ -1756,7 +1756,7 @@ extern SDL_DECLSPEC int SDLCALL SDL_strncasecmp(const char *str1, const char *st
|
||||
*
|
||||
* \since This function is available since SDL 3.0.0.
|
||||
*/
|
||||
extern SDL_DECLSPEC char * SDLCALL SDL_strpbrk(const char * SDL_RESTRICT str, const char * SDL_RESTRICT breakset);
|
||||
extern SDL_DECLSPEC char * SDLCALL SDL_strpbrk(const char *str, const char *breakset);
|
||||
|
||||
/**
|
||||
* The Unicode REPLACEMENT CHARACTER codepoint.
|
||||
|
@ -180,7 +180,6 @@ def main():
|
||||
func = re.sub(r" SDL_RELEASE\(.*\)", "", func);
|
||||
func = re.sub(r" SDL_RELEASE_SHARED\(.*\)", "", func);
|
||||
func = re.sub(r" SDL_RELEASE_GENERIC\(.*\)", "", func);
|
||||
func = func.replace(" SDL_RESTRICT", "");
|
||||
|
||||
# Should be a valid function here
|
||||
match = reg_parsing_function.match(func)
|
||||
|
Loading…
Reference in New Issue
Block a user