libretroadmin
c4685e8c31
Cut down on strlcats
2024-06-16 19:15:07 +02:00
libretroadmin
3e85a17d7a
iFix warnings picked up by -fanalyzer
2024-05-23 23:50:23 +02:00
libretroadmin
8aa0679cbd
Fix regression
2023-07-17 17:49:49 +02:00
libretroadmin
40049274b2
string_list_join_concat - cut down on one strlcat
2023-07-17 10:33:01 +02:00
libretroadmin
631301b3f7
* Cut down on strlcat calls when possible and replace them with clever
...
usage of strlcpy (when position/offset of previous strlcpy/snprintf call
is known. strlcat implementation in libretro-common makes implicit strlen
call, using strlcpy avoids this
* Reduce a bunch of local char variables by use of said clever usage,
should save up on local stack size usage
2023-06-18 12:06:12 +02:00
libretroadmin
3fbcde000c
(string_list) Silence warning
2022-11-23 05:10:35 +01:00
libretroadmin
1c9d3ad0bf
Silence some warnings
2022-11-21 20:56:28 +01:00
LibretroAdmin
107c69ab9e
(libretro-common) More documentation refinement
2022-08-01 11:03:58 +02:00
LibretroAdmin
29774f5b7a
Small opts ( #14186 )
...
* (joypad_connection) Small optimizations -
* Turn functions static where possible
* Hose strlen call out of loop
* (input_driver.c) General cleanups:
* Some small code/style nits
task_screenshot.c:
* Move widget callback function for screenshots to task_screenshot.c
(file_path.c):
* Turn get_pathname_num_slashes into static function
* path_linked_list_free - always returns true, so get rid of return value
* path_linked_list_new - fix function signature
* path_get_archive_delim - do not NULL-terminate string, already done by strlcpy later on
General:
* Slight optimizations - use int/size_t for loop counter variable instead of unsigned
* Take advantage of fact that strlcpy already NULL-terminates, so don't do this explicitly
outside if we're just going to end up calling strlcpy/fill_pathname_join on it anyway
2022-07-19 10:01:33 +02:00
libretroadmin
0e85113eb3
(libretro-common) Style nits/cleanups
2022-07-10 18:13:49 +02:00
twinaphex
044209bc5a
Create string_separate_noalloc
2020-08-26 23:46:16 +02:00
twinaphex
61c94fe248
Simplify string_list_new/string_list_initialize
2020-08-26 17:50:18 +02:00
jdgleaver
7a07cc1305
Fix 'Set Core Association' regression
2020-08-26 15:18:39 +01:00
twinaphex
6df62bbccc
Create string_split_noalloc
2020-08-26 03:20:42 +02:00
twinaphex
a32d027f76
string_list_initialize - call deinitialize when function fails
2020-08-26 02:28:10 +02:00
jdgleaver
179e77c8b0
(string_list_join_concat) Prevent undefined behaviour if input string buffer is unterminated
2020-08-25 15:54:18 +01:00
twinaphex
91cfcd1b83
Improve string_list_deinitialize
2020-08-24 15:11:38 +02:00
twinaphex
cd6e1cf3fa
(libretro-common) string_list - add string_list_initialize
...
and string_list_deinitialize - takes a pointer to initialize
and deinitialize a string list, but importantly does not
implicitly allocate and deallocate the string list pointer
itself. This way, string lists can be put on the stack instead
of always implicitly being put on heap - the struct itself is
small enough to fit on stack
2020-08-24 00:43:55 +02:00
twinaphex
7cac61e5eb
Use malloc instead of calloc when possible
2020-06-24 18:52:42 +02:00
twinaphex
cd9ca691ca
(libretro-common) Update copyright
2020-01-31 15:43:42 +01:00
jdgleaver
5ac152a5f3
(glslang_util) Remove C++ 'isms' (where possible)
2019-08-12 13:10:50 +01:00
twinaphex
ce37405d29
(DirectSound) Add audio device selection - can set audio_device
...
either by name or by index
2019-07-26 02:36:41 +02:00
Brad Parker
9a52595ce3
cdrom: add function to get list of available drives (initial linux implementation), show list in "Dump Drive" menu entry
2019-07-03 14:19:32 -04:00
twinaphex
77e7bc7a1c
Move stirng_list_clone to libretro-common
2019-06-09 06:10:28 +02:00
twinaphex
15e7078361
string_list_free - try to be safer
2019-05-22 05:28:41 +02:00
twinaphex
bcb474b3a3
(runahead) Cleanups - create core_free_game_info and move it to
...
core_impl.c - get rid of free_string_list and just reuse
string_list_free
2019-05-22 04:04:58 +02:00
twinaphex
768ebbfdb5
Merge commit 'ce9ce1d35387ef8144e53bf071396fa075bfb6c5' as 'libretro-common'
2018-05-12 17:56:34 +02:00
twinaphex
0548349991
Remove libretro-common
2018-05-12 17:56:14 +02:00
twinaphex
be7eb4de1c
Update libretro-common
2018-04-16 08:57:17 +02:00
twinaphex
688414c5bb
Get rid of some retro_assert usage
2017-06-26 05:38:51 +02:00
twinaphex
dd1da5154f
Better implementation of string_is_equal_noncase and fix bug
...
in string_list
2017-04-21 14:53:01 +02:00
twinaphex
607ae71259
Turn string_is_equal_noncase into self-contained function
2017-04-21 14:17:47 +02:00
Twinaphex
b7b3b2cb5f
Try to prevent truckload of warnings on iOS
2017-02-26 10:33:03 +01:00
twinaphex
b15698e6d2
string_list - get rid of memset
2017-02-20 01:50:35 +01:00
twinaphex
64bb848daf
Update headers (pt. 2 - libretro-common)
2017-01-22 13:58:20 +01:00
twinaphex
3ec564f97c
Revert "(task_save.c) Cleanups"
...
This reverts commit d6aae88737ef84a8ca690ac669524f4928fc2274.
2016-12-27 20:11:22 +01:00
twinaphex
d6aae88737
(task_save.c) Cleanups
2016-12-26 18:25:42 +01:00
twinaphex
4fb6808321
libretro-common is MIT and we don't want individual copyright
...
per authors here; RetroArch is GPL and it's fine there
2016-10-27 19:52:58 +02:00
Brad Parker
d1d5584d18
update copyright
2016-10-27 11:47:10 -04:00
twinaphex
c1b59df7ae
Reduce size of char variables
2016-10-27 09:32:07 +02:00
twinaphex
45688b2a9d
Coverity doesn't understand retro_assert and these checks are
...
superfluous anyway
2016-10-26 09:53:15 +02:00
twinaphex
481ebced22
Prevent implicit memsets
2016-10-09 09:56:03 +02:00
Brad Parker
7c29fd6c33
create 7z archive backend, enables scanning of 7z content
2016-09-18 10:31:21 -04:00
Brad Parker
89f9b096e7
style cleanup and fix typos
2016-08-25 21:40:37 -04:00
Brad Parker
097f326298
simplify delimiting of compressed archive filenames
2016-08-25 16:18:29 -04:00
twinaphex
93b7dc1bdd
(libretro-common) move 'lists' files to lists/
2016-03-20 14:53:54 +01:00