1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-03 00:38:44 +00:00
Commit Graph

81 Commits

Author SHA1 Message Date
Grisly Glee
4202f8650d
Fix trivial signedness warnings (#15377)
* Fix trivial signedness warnings

* Followup on trivial signedness warnings
2023-06-14 04:43:11 +02:00
libretroadmin
2d48cbaec6 (libretro-db) Cleanups/style nits 2023-02-18 18:04:55 +01:00
libretroadmin
6624126885 (MSVC) silence warnings 2023-02-18 17:04:23 +01:00
libretroadmin
1dcf3b328a (libretro-db) Cleanups 2023-02-17 16:43:00 +01:00
LibretroAdmin
6f738d4fbd Gradually get rid of strcpy_literal
Reasons:
1 - Just a macro for strcpy
1.2 - doesn't have a return type unlike strlcpy, can't be used
for string concatenation
1.3 - unsafe compared to strlcpy

Do either manual string assignment per character or strlcpy, no
inbetween by resorting to strcpy
2022-08-23 15:04:47 +02:00
twinaphex
c744baeb89 Add ctype variants to stdstring and use it in RA 2020-09-27 22:15:32 +02:00
twinaphex
f1432db433 Cleanup 2020-09-27 20:44:31 +02:00
twinaphex
e9e25aae7d res.val.bool_ was being set a second time to 0 unnecessarily 2020-09-27 20:41:02 +02:00
twinaphex
edf8fd99c7 (libretro-db) query.c - get rid of strlen call in query_peek 2020-09-27 20:38:08 +02:00
twinaphex
b829c7c1f8 (libretro-db) Cleanups - get rid of some goto labels, simplify one
conditional
2020-09-27 20:21:54 +02:00
twinaphex
1296fc4745 use strlcpy_literal for string literal copies 2020-09-19 23:28:01 +02:00
twinaphex
f934aaa78d Reordre structs, alignment 2020-08-15 18:42:27 +02:00
Twinaphex
faa468d87f Get rid of unused variables 2020-08-04 04:07:42 +02:00
twinaphex
77cf0ad524 (libretro-db) Small cleanups 2020-08-03 17:13:54 +02:00
twinaphex
1f0529a275 (libz) Silence some warnings - use INT64_C/UINT64_C 2020-07-29 04:41:13 +02:00
twinaphex
a3c1d4ac98 (query.c) Cleanups 2020-07-05 04:21:27 +02:00
twinaphex
c1634914d6 (libretro-db) Cleanup 2020-07-05 02:52:56 +02:00
twinaphex
69b457a427 (libretro-db) Pass tmp_error_buff around to other functions 2020-07-05 02:50:46 +02:00
twinaphex
5e3b353987 (libretro-db) Avoid callocs when possible 2020-06-26 20:24:05 +02:00
twinaphex
110339c1cc (libretro-db) Add TODO/FIXME notes 2020-06-05 18:13:25 +02:00
twinaphex
3e72c502a8 strlen optimizations :
- use STRLEN_CONST for constant strings, translates to sizeof
which should be computed at compile-time
- found some places where we are needlessly calling strlen two
times instead of just once
2019-04-27 04:21:10 +02:00
orbea
bfc366decc Squeeze extra blank lines with cat(1).
Example:

find . -type f -iname '*.c' | while read -r i; do
  cat -s "$i" > "$i.new"
  mv "$i.new" "$i"
done
2019-01-08 11:04:58 -08: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
Alcaro
e21de200a6
fix missing %s 2017-11-27 17:15:58 +01:00
Alcaro
da9cddd833
#5802 2017-11-27 17:08:41 +01:00
twinaphex
c68db61188 Silence more Clang warnings 2017-10-11 22:49:13 +02:00
Alcaro
dc4c2cd6d9 Wipe out a buncha warnings and pointless ifdefs (some warnings will remain until #5497 is fixed) 2017-10-03 00:26:29 +02:00
Brad Parker
0a1b3fedc0 VC6 support (targets NT 3.51) 2017-09-06 23:03:02 -04:00
Twinaphex
216e7bcdaf Silence more warnings on iOS 2017-02-26 21:46:19 +01:00
Twinaphex
b7b3b2cb5f Try to prevent truckload of warnings on iOS 2017-02-26 10:33:03 +01:00
twinaphex
7ee65bfe5d (libretro-db) Get rid of some memsets 2017-02-19 19:44:45 +01:00
twinaphex
96c8ca5a09 Header update #1 2017-01-22 13:40:32 +01:00
twinaphex
eeae9a186f Revert "Use string_is_equal"
This reverts commit 49a290c3e6.
2016-10-04 10:29:32 +02:00
twinaphex
49a290c3e6 Use string_is_equal 2016-10-04 10:24:17 +02:00
twinaphex
70d4da3e32 (libretro-db/query.c) Cleanup 2016-09-22 20:48:49 +02:00
twinaphex
1c1cac328d (libretro-db/query.c) Prevent warning 'use-after-free' 2016-09-22 20:47:26 +02:00
Sebastien Ronsse
2824057652 query: Fix arguments memory leak 2016-05-24 11:53:45 +10:00
twinaphex
4717a2df64 query.c - namespace functions 2016-05-24 00:58:41 +02:00
twinaphex
faef7b498d (Coverity) Fix some resource leaks 2016-05-23 21:28:43 +02:00
twinaphex
12e51eb4b5 (libretrodb) Add headers and cleanups 2016-03-21 18:16:05 +01:00
twinaphex
5d27033b2e Nit 2016-02-04 11:12:57 +01:00
twinaphex
0c03ee0afa Style nits 2016-02-04 11:05:34 +01:00
twinaphex
23e276376a Backports/rewrites wmarquesr pt. 2 2015-12-04 10:35:33 +01:00
Twinaphex
1cd1ecfc5c More C89_BUILD buildfixes 2015-11-19 13:43:48 +01:00
Twinaphex
8c66106ee7 (C89_BUILD) Some C89_BUILD buildfixes (tested on OSX/Clang) 2015-11-19 13:41:07 +01:00
twinaphex
f95e31dabd (libretro-db) Move struct definitions around 2015-10-10 10:51:12 +02:00
twinaphex
350dee9f51 (libretro-db) Don't use off_t 2015-09-21 17:47:02 +02:00
twinaphex
e1fadcd813 (libretro-db) Cleanups 2015-09-21 17:39:06 +02:00
twinaphex
951a8903c3 (query.c) Use strlcpy
(font_renderer/freetype) Add Vera.ttf fallback
2015-09-21 16:29:05 +02:00
twinaphex
031190ed14 (libretro-db/query.c) Update this - should fix crash 2015-09-21 16:23:08 +02:00