py-sdl2 / sdl2 /

Diff from to


 Sint64 = c_int64
 Uint64 = c_uint64
-_libc = None
-if sys.platform in ("win32", "cli"):
-    _libc = cdll.msvcrt
-    _libc = cdll.LoadLibrary(find_library("c"))
-SDL_malloc = _bind("SDL_malloc", [c_size_t], c_void_p,
-SDL_calloc = _bind("SDL_calloc", [c_size_t, c_size_t], c_void_p, _libc.calloc)
-SDL_realloc = _bind("SDL_realloc", [c_void_p, c_size_t], c_void_p, _libc.realloc)
-SDL_free = _bind("SDL_free", [c_void_p], None,
-SDL_getenv = _bind("SDL_getenv", [c_char_p], c_char_p, _libc.getenv)
+SDL_malloc = _bind("SDL_malloc", [c_size_t], c_void_p)
+SDL_calloc = _bind("SDL_calloc", [c_size_t, c_size_t], c_void_p)
+SDL_realloc = _bind("SDL_realloc", [c_void_p, c_size_t], c_void_p)
+SDL_free = _bind("SDL_free", [c_void_p], None)
+SDL_getenv = _bind("SDL_getenv", [c_char_p], c_char_p)
 SDL_setenv = _bind("SDL_setenv", [c_char_p, c_char_p, c_int], c_int)
 SDL_abs = abs
 SDL_min = min
 SDL_max = max
-SDL_memset = _bind("SDL_memset", [c_void_p, c_int, c_size_t], c_void_p, _libc.memset)
-SDL_memcpy = _bind("SDL_memcpy", [c_void_p, c_void_p, c_size_t], c_void_p, _libc.memcpy)
+SDL_memset = _bind("SDL_memset", [c_void_p, c_int, c_size_t], c_void_p)
+SDL_memcpy = _bind("SDL_memcpy", [c_void_p, c_void_p, c_size_t], c_void_p)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.