Home
last modified time | relevance | path

Searched refs:SDL_malloc (Results 1 – 25 of 124) sorted by relevance

12345

/third_party/flutter/skia/third_party/externals/sdl/visualtest/src/
Dparsehelper.c95 tokens[index] = (char*)SDL_malloc(max_token_len); in TokenizeHelper()
194 tokens = (char**)SDL_malloc(sizeof(char*) * (num_tokens + 1)); in SDLVisualTest_Tokenize()
215 argv = (char**)SDL_malloc((num_tokens + 2) * sizeof(char*)); in SDLVisualTest_ParseArgsToArgv()
Dscreenshot.c48 verify_path = (char*)SDL_malloc(verify_len * sizeof(char)); in SDLVisualTest_VerifyScreenshots()
78 test_path = (char*)SDL_malloc(test_len * sizeof(char)); in SDLVisualTest_VerifyScreenshots()
Daction_configparser.c53 node = (SDLVisualTest_ActionNode*)SDL_malloc( in SDLVisualTest_EnqueueAction()
344 path = (char*)SDL_malloc(sizeof(char) * (len + 1)); in SDLVisualTest_ParseActionConfig()
358 args = (char*)SDL_malloc(sizeof(char) * (len + 1)); in SDLVisualTest_ParseActionConfig()
/third_party/flutter/skia/third_party/externals/sdl/src/filesystem/unix/
DSDL_sysfilesystem.c99 retvalargs = SDL_malloc(len); in SDL_GetBasePath()
105 retval = SDL_malloc(PATH_MAX + 1); in SDL_GetBasePath()
201 retval = (char *) SDL_malloc(len); in SDL_GetPrefPath()
/third_party/flutter/skia/third_party/externals/sdl/src/haptic/darwin/
DSDL_syshaptic.c498 SDL_malloc(sizeof(*haptic->hwdata)); in SDL_SYS_HapticOpenFromService()
538 SDL_malloc(sizeof(struct haptic_effect) * haptic->neffects); in SDL_SYS_HapticOpenFromService()
727 rglDir = SDL_malloc(sizeof(LONG) * naxes); in SDL_SYS_SetDirection()
798 envelope = SDL_malloc(sizeof(FFENVELOPE)); in SDL_SYS_ToFFEFFECT()
809 axes = SDL_malloc(sizeof(DWORD) * dest->cAxes); in SDL_SYS_ToFFEFFECT()
828 constant = SDL_malloc(sizeof(FFCONSTANTFORCE)); in SDL_SYS_ToFFEFFECT()
872 periodic = SDL_malloc(sizeof(FFPERIODIC)); in SDL_SYS_ToFFEFFECT()
919 condition = SDL_malloc(sizeof(FFCONDITION) * dest->cAxes); in SDL_SYS_ToFFEFFECT()
963 ramp = SDL_malloc(sizeof(FFRAMPFORCE)); in SDL_SYS_ToFFEFFECT()
1001 custom = SDL_malloc(sizeof(FFCUSTOMFORCE)); in SDL_SYS_ToFFEFFECT()
[all …]
/third_party/flutter/skia/third_party/externals/sdl/src/filesystem/haiku/
DSDL_sysfilesystem.cc60 char *retval = (char *) SDL_malloc(len + 2); in SDL_GetBasePath()
80 char *retval = (char *) SDL_malloc(len); in SDL_GetPrefPath()
/third_party/flutter/skia/third_party/externals/sdl/src/haptic/windows/
DSDL_dinputhaptic.c298 haptic->hwdata = (struct haptic_hwdata *)SDL_malloc(sizeof(*haptic->hwdata)); in SDL_DINPUT_HapticOpenFromDevice()
413 SDL_malloc(sizeof(struct haptic_effect) * haptic->neffects); in SDL_DINPUT_HapticOpenFromDevice()
573 rglDir = SDL_malloc(sizeof(LONG) * naxes); in SDL_SYS_SetDirection()
640 envelope = SDL_malloc(sizeof(DIENVELOPE)); in SDL_SYS_ToDIEFFECT()
651 axes = SDL_malloc(sizeof(DWORD) * dest->cAxes); in SDL_SYS_ToDIEFFECT()
669 constant = SDL_malloc(sizeof(DICONSTANTFORCE)); in SDL_SYS_ToDIEFFECT()
712 periodic = SDL_malloc(sizeof(DIPERIODIC)); in SDL_SYS_ToDIEFFECT()
758 condition = SDL_malloc(sizeof(DICONDITION) * dest->cAxes); in SDL_SYS_ToDIEFFECT()
800 ramp = SDL_malloc(sizeof(DIRAMPFORCE)); in SDL_SYS_ToDIEFFECT()
838 custom = SDL_malloc(sizeof(DICUSTOMFORCE)); in SDL_SYS_ToDIEFFECT()
[all …]
DSDL_xinputhaptic.c83 item = (SDL_hapticlist_item *)SDL_malloc(sizeof(SDL_hapticlist_item)); in SDL_XINPUT_MaybeAddDevice()
180 SDL_malloc(sizeof(struct haptic_effect) * haptic->neffects); in SDL_XINPUT_HapticOpenFromUserIndex()
188 haptic->hwdata = (struct haptic_hwdata *) SDL_malloc(sizeof(*haptic->hwdata)); in SDL_XINPUT_HapticOpenFromUserIndex()
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/haiku/
DSDL_haikujoystick.cc120 SDL_malloc(sizeof(*joystick->hwdata)); in SDL_SYS_JoystickOpen()
143 SDL_malloc(joystick->naxes * sizeof(int16)); in SDL_SYS_JoystickOpen()
145 SDL_malloc(joystick->nhats * sizeof(uint8)); in SDL_SYS_JoystickOpen()
/third_party/flutter/skia/third_party/externals/sdl/src/
DSDL_hints.c84 hint = (SDL_Hint *)SDL_malloc(sizeof(*hint)); in SDL_SetHintWithPriority()
152 entry = (SDL_HintWatch *)SDL_malloc(sizeof(*entry)); in SDL_AddHintCallback()
167 hint = (SDL_Hint *)SDL_malloc(sizeof(*hint)); in SDL_AddHintCallback()
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/
DSDL_joystick.c126 joystick = (SDL_Joystick *) SDL_malloc((sizeof *joystick)); in SDL_JoystickOpen()
145 joystick->axes = (Sint16 *) SDL_malloc(joystick->naxes * sizeof(Sint16)); in SDL_JoystickOpen()
146 joystick->axes_zero = (Sint16 *) SDL_malloc(joystick->naxes * sizeof(Sint16)); in SDL_JoystickOpen()
149 joystick->hats = (Uint8 *) SDL_malloc in SDL_JoystickOpen()
153 joystick->balls = (struct balldelta *) SDL_malloc in SDL_JoystickOpen()
157 joystick->buttons = (Uint8 *) SDL_malloc in SDL_JoystickOpen()
DSDL_gamecontroller.c537 char *pchGUID = SDL_malloc(pFirstComma - pMapping + 1); in SDL_PrivateGetControllerGUIDFromMappingString()
566 pchName = SDL_malloc(pSecondComma - pFirstComma); in SDL_PrivateGetControllerNameFromMappingString()
650 pControllerMapping = SDL_malloc(sizeof(*pControllerMapping)); in SDL_PrivateAddMappingForGUID()
728 buf = (char *)SDL_malloc(db_size + 1); in SDL_GameControllerAddMappingsFromRW()
845 pMappingString = SDL_malloc(needed); in SDL_GameControllerMappingForGUID()
874 char *pUserMappings = SDL_malloc(nchHints + 1); in SDL_GameControllerLoadHints()
999 gamecontroller = (SDL_GameController *) SDL_malloc((sizeof *gamecontroller)); in SDL_GameControllerOpen()
/third_party/flutter/skia/third_party/externals/sdl/src/thread/
DSDL_thread.c188 entry = (SDL_TLSEntry *)SDL_malloc(sizeof(*entry)); in SDL_Generic_SetTLSData()
243 errbuf = (SDL_error *)SDL_malloc(sizeof(*errbuf)); in SDL_GetErrBuf()
324 thread = (SDL_Thread *) SDL_malloc(sizeof(*thread)); in SDL_CreateThreadWithStackSize()
344 args = (thread_args *) SDL_malloc(sizeof(*args)); in SDL_CreateThreadWithStackSize()
/third_party/flutter/skia/third_party/externals/sdl/src/video/windows/
DSDL_windowsshape.c32 SDL_WindowShaper* result = (SDL_WindowShaper *)SDL_malloc(sizeof(SDL_WindowShaper)); in Win32_CreateShaper()
37 result->driverdata = (SDL_ShapeData*)SDL_malloc(sizeof(SDL_ShapeData)); in Win32_CreateShaper()
/third_party/flutter/skia/third_party/externals/sdl/src/audio/disk/
DSDL_diskaudio.c136 SDL_malloc(sizeof(*this->hidden)); in DISKAUDIO_OpenDevice()
156 this->hidden->mixbuf = (Uint8 *) SDL_malloc(this->spec.size); in DISKAUDIO_OpenDevice()
/third_party/flutter/skia/third_party/externals/sdl/visualtest/src/windows/
Dwindows_process.c61 working_directory = (char*)SDL_malloc(path_length + 1); in SDL_LaunchProcess()
80 command_line = (char*)SDL_malloc(path_length + args_length + 2); in SDL_LaunchProcess()
/third_party/flutter/skia/third_party/externals/sdl/src/audio/emscripten/
DSDL_emscriptenaudio.c88 this->hidden->mixbuf = SDL_malloc(this->hidden->mixlen); in HandleAudioProcess()
111 this->hidden->mixbuf = SDL_malloc(this->hidden->mixlen); in HandleAudioProcess()
153 this->hidden->mixbuf = (Uint8 *) SDL_malloc(this->spec.size); in HandleCaptureProcess()
297 SDL_malloc((sizeof *this->hidden)); in EMSCRIPTENAUDIO_OpenDevice()
/third_party/flutter/skia/third_party/externals/sdl/src/audio/sun/
DSDL_sunaudio.c211 SDL_malloc((sizeof *this->hidden)); in SUNAUDIO_OpenDevice()
316 this->hidden->ulaw_buf = (Uint8 *) SDL_malloc(this->hidden->fragsize); in SUNAUDIO_OpenDevice()
336 this->hidden->mixbuf = (Uint8 *) SDL_malloc(this->spec.size); in SUNAUDIO_OpenDevice()
/third_party/flutter/skia/third_party/externals/sdl/src/filesystem/android/
DSDL_sysfilesystem.c49 char *fullpath = (char *)SDL_malloc(pathlen); in SDL_GetPrefPath()
/third_party/flutter/skia/third_party/externals/sdl/test/
Dtestnative.c188 positions = (SDL_Rect *) SDL_malloc(NUM_SPRITES * sizeof(SDL_Rect)); in main()
189 velocities = (SDL_Rect *) SDL_malloc(NUM_SPRITES * sizeof(SDL_Rect)); in main()
Dtestsprite2.c333 (SDL_Texture **) SDL_malloc(state->num_windows * sizeof(*sprites)); in main()
348 positions = (SDL_Rect *) SDL_malloc(num_sprites * sizeof(SDL_Rect)); in main()
349 velocities = (SDL_Rect *) SDL_malloc(num_sprites * sizeof(SDL_Rect)); in main()
/third_party/flutter/skia/third_party/externals/sdl/src/stdlib/
DSDL_getenv.c97 new_variable = (char *) SDL_malloc(len); in SDL_setenv()
127 new_variable = (char *) SDL_malloc(len); in SDL_setenv()
/third_party/flutter/skia/third_party/externals/sdl/src/filesystem/emscripten/
DSDL_sysfilesystem.c50 retval = (char *) SDL_malloc(len); in SDL_GetPrefPath()
/third_party/flutter/skia/third_party/externals/sdl/src/audio/esd/
DSDL_esdaudio.c219 SDL_malloc((sizeof *this->hidden)); in ESD_OpenDevice()
277 this->hidden->mixbuf = (Uint8 *) SDL_malloc(this->hidden->mixlen); in ESD_OpenDevice()
/third_party/flutter/skia/third_party/externals/sdl/src/filesystem/cocoa/
DSDL_sysfilesystem.m59 retval = (char *) SDL_malloc(len);
83 retval = (char *) SDL_malloc(len);

12345