Commit Graph

91 Commits

Author SHA1 Message Date
libretroadmin
1c9d3ad0bf Silence some warnings 2022-11-21 20:56:28 +01:00
reallibretroadmin
0033224c25 Fix some implicit conversion signedness warnings 2022-10-02 03:22:34 +02:00
LibretroAdmin
6894600d41 (stdstring) word_wrap - use strlcpy instead of strcpy 2022-08-24 15:06:03 +02:00
LibretroAdmin
e769436876 (word wrap functions in stdstring.c) Avoid implicit strlens, caller
should pass the 'length' to the function instead
2022-08-23 17:06:01 +02:00
LibretroAdmin
ec6f4c1f55 (libretro-common) refinements to documentation 2022-08-01 13:06:35 +02:00
LibretroAdmin
c7a1d83675 (libretro-common) Start documenting leaf functon calls in function documentation
(libretro-common) docs - document when string has to be non-NULL or else UB (undefined behavior)
(libretro-common) stdstring.c - string_hex_to_unsigned - make strlen call unneeded
2022-08-01 09:52:39 +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
Cthulhu-throwaway
98ca6232aa
(String) Some function fixes (#14171) 2022-07-12 22:32:58 +02:00
Cthulhu-throwaway
f39df40728
(String) Do not assume char is unsigned (#14168) 2022-07-12 02:55:56 +02:00
libretroadmin
7b83636b64 Remove variables that are never used because the return value
of the function is already used instead
2022-07-11 18:15:08 +02:00
libretroadmin
0e85113eb3 (libretro-common) Style nits/cleanups 2022-07-10 18:13:49 +02:00
Tony
044e1ec655
(WinRaw) Fix multiple light guns (#13840)
* (WinRaw) Fix multiple light guns

* Strip non-ASCII characters from mouse display names
2022-04-08 21:46:00 +02:00
pkos
a192064403 (Database) Serial scanning for Gamecube/MegaCD/SegaCD/Saturn/PSX/PSP/Dreamcast/Wii 2021-12-31 21:35:16 -05:00
toshixm
4fab84ca9e improve message wrapping with CJK languages 2021-06-03 21:09:35 +09:00
toshixm
a39c38f267 refactor word_wrap() 2021-05-27 19:55:37 +09:00
twinaphex
ee474b4feb Add missing string.h header include 2020-10-24 17:01:55 +02:00
twinaphex
c744baeb89 Add ctype variants to stdstring and use it in RA 2020-09-27 22:15:32 +02:00
twinaphex
5a8da81d07 Simplify string_set 2020-08-20 19:12:38 +02:00
twinaphex
fa6d5333f7 More silencing of warnings 2020-07-23 06:39:21 +02:00
twinaphex
1ae20ea17c Style nits - turn macro names into upper-case - some while style nits 2020-06-26 20:00:19 +02:00
twinaphex
899c21257c (Video layout) move init_string and set_string to stdstring -
rename them - cleanup strcmp usage in video layout and other
code cleanups
2020-03-05 11:19:44 +01:00
twinaphex
cd9ca691ca (libretro-common) Update copyright 2020-01-31 15:43:42 +01:00
twinaphex
eb4e365820 (libretro-common) Cleanups 2020-01-27 17:00:18 +01:00
jdgleaver
695749f155 (Core Updater) Only download when new core is available + add option to update all installed cores 2019-12-23 17:34:44 +00:00
jdgleaver
170397456c Add manual content scanner 2019-11-29 17:14:46 +00:00
jdgleaver
58ad81f063 Menu drop-down lists: Add proper titles, and remember last postion when navigating core options 2019-09-24 17:41:06 +01:00
jdgleaver
3da96deec3 Enable per-playlist thumbnail selection 2019-08-15 18:05:31 +01:00
jdgleaver
5ac152a5f3 (glslang_util) Remove C++ 'isms' (where possible) 2019-08-12 13:10:50 +01:00
Nathan S
775c272029 Menu widgets stuff + vulkan sanity check (#8710)
* task_screenshot: fix hang with menu widgets

* word_wrap: add max_lines parameter

* vulkan: better instance creation sanity check
2019-05-06 21:10:57 +02:00
twinaphex
c98b2e2292 Buildfixes and more static code analysis warning fixes 2019-01-10 22:24:43 +01:00
Twinaphex
65535a1259 Cleanups 2018-09-01 01:03:58 +02:00
Brad Parker
fe6dda917a word_wrap: hack to workaround long lines without spaces 2018-08-09 23:54:16 -04:00
twinaphex
697531dbdd Merge commit '944cac83520c99e1ddf3d8cd3bf25990c8746d14' 2018-06-21 08:07:19 +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
08a54e45f2 Get rid of a lot of implicit conversions 2018-04-09 15:56:45 +02:00
gblues
6904101c44 Clean up trailing whitespace
== DETAILS

Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
Brad Parker
6b5d863136 check for end of string before trying to read more 2017-09-30 01:47:51 -04:00
Andrés
f6bedeeb7c Revert "cut on underscores too, might be required to add other delimiters so …" 2017-09-09 01:04:32 -05:00
radius
4a4de389d1 cut on underscores too, might be required to add other delimiters so it doesn't get stuck on an endless loop on long strings 2017-09-09 00:24:59 -05:00
ensra
6a36453f20 Cast ctype args to unsigned char 2017-08-08 12:21:48 +01:00
Brad Parker
6b369775cf add unicode-aware option for word_wrap (only needed for xmb) 2017-08-06 03:33:13 -04:00
twinaphex
06f98fcd16 (stdstring) Turn some functions into static inline functions 2017-04-21 13:35:26 +02:00
Twinaphex
4b796ae740 Silence warnings 2017-03-06 12:12:00 +01:00
twinaphex
df1313bc37 Change signature for word_wrap 2017-03-05 19:15:04 +01:00
twinaphex
bb15b14388 word_wrap - Dont' call strlen once every loop iteration 2017-03-05 19:09:31 +01:00
twinaphex
c70b8c42c5 Cleanups to word_wrap 2017-03-05 19:02:32 +01:00
twinaphex
63973a52e0 Simplify word_wrap 2017-03-05 19:01:44 +01:00
twinaphex
64bb848daf Update headers (pt. 2 - libretro-common) 2017-01-22 13:58:20 +01:00