76 Commits

Author SHA1 Message Date
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
twinaphex
71b423c572 Don't use mmap for libretrodb - using mmap seems
to have adverse performance impact
2018-02-13 07:34:19 +01:00
Alcaro
12ed6b8657 oh right, that's what it wants. 2017-12-28 04:13:00 +01:00
Alcaro
c29d5906d2 okay so why exactly are we using seek instead of tell/size 2017-12-28 04:08:41 +01:00
twinaphex
6622cb0810 Update libretro API 2017-12-16 14:12:38 +01:00
Alcaro
ecf5d55a25 Rename this one, to not codify policy in what should be a frontend decision 2017-12-14 21:21:18 +01:00
twinaphex
61d3f90cae Add hint defines to libretro.h 2017-12-11 12:53:47 +01:00
twinaphex
318f17c4cb Start using VFS API constant defines 2017-12-11 12:15:00 +01:00
twinaphex
2e979ec537 Replace function signatures of file_stream file functions 2017-12-10 22:25:38 +01:00
twinaphex
8238545bef Cleanups 2017-10-04 06:53:47 +02:00
twinaphex
3090f3ff3a (task_database.c) Rewrite char arrays 2017-09-29 20:47:54 +02:00
Brad Parker
0a1b3fedc0 VC6 support (targets NT 3.51) 2017-09-06 23:03:02 -04:00
twinaphex
8eca08c6ac Start using string_is_equal_fast/string_is_not_equal_fast macros
instead of straight memcmp
2017-05-16 03:20:59 +02: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
96c8ca5a09 Header update #1 2017-01-22 13:40:32 +01:00
twinaphex
68bb87f392 Try to fix Coverity warning 'uninitialized scalar variable' 2017-01-17 14:21:41 +01:00
twinaphex
eeae9a186f Revert "Use string_is_equal"
This reverts commit 49a290c3e66e593169989da962289da71d0cb3a5.
2016-10-04 10:29:32 +02:00
twinaphex
49a290c3e6 Use string_is_equal 2016-10-04 10:24:17 +02:00
twinaphex
414ced5901 (libretrodb) Prevent uninitialized scalar variable 2016-06-05 19:18:54 +02:00
twinaphex
7b04375c9b Fix 'dereference after null check' 2016-06-02 20:52:30 +02:00
twinaphex
ffdad57318 Fix double frees and resource leaks 2016-06-01 02:40:58 +02:00
twinaphex
e8a02dd448 C89_BUILD fix 2016-05-27 06:03:38 +02:00
twinaphex
4f98cf05f4 Fix uninitialized scalar variable warnings 2016-05-26 17:32:27 +02:00
twinaphex
0f954fd4c8 Resource leaks fixes (catched by Coverity) 2016-05-26 17:26:55 +02:00
twinaphex
42971febba Fix resource leaks (pointed out by Coverity) 2016-05-24 22:01:43 +02:00
twinaphex
8d4c06e133 (libretro-db) Namespace bintree and libretrodb 2016-05-24 01:07:41 +02:00
Twinaphex
eeeec23c66 (OSX) Static code analyzer cleanups 2016-05-02 16:57:53 +02:00
twinaphex
1b289c0f05 (libretro-common) Update 2016-03-24 04:23:17 +01:00
twinaphex
e41127459e Rename 'filestream' functions 2016-03-24 04:09:25 +01:00
twinaphex
12e51eb4b5 (libretrodb) Add headers and cleanups 2016-03-21 18:16:05 +01:00
twinaphex
3720cf87e7 Rename retro_file to file_stream 2016-03-20 16:29:14 +01:00
twinaphex
0c03ee0afa Style nits 2016-02-04 11:05:34 +01:00
aliaspider
8207ab56c1 (libretro-db) plug memory leak. 2016-01-23 01:25:09 +01:00
Higor Eurípedes
eb7b46c7c1 (retro_file) Implement RFILE_HINT_MMAP 2015-11-14 16:03:49 -03:00
Higor Eurípedes
533f41259a (retro_file) Implement RFILE_HINT_UNBUFFERED 2015-11-14 16:03:49 -03:00
twinaphex
350dee9f51 (libretro-db) Don't use off_t 2015-09-21 17:47:02 +02:00
twinaphex
9093cd4aba (libretro-db) Use retro_endianness.h functions completely 2015-09-21 11:37:31 +02:00
twinaphex
077fb3d32d (libretro-db) Replace strcpy 2015-09-19 03:46:41 +02:00
twinaphex
a547fdef50 Fix libretrodb_open - change mode to RFILE_MODE_READ - use
buffered I/O by default
2015-09-18 03:25:53 +02:00
twinaphex
dd58492fa6 Remove fcntl.h 2015-09-17 22:30:01 +02:00
twinaphex
82e15d1377 CLeanups/fixes 2015-09-17 20:24:49 +02:00
twinaphex
483a4264e5 (libretrodb) Silence warnings 2015-09-17 20:10:04 +02:00
twinaphex
55e54a30b4 Create retro_file, and have libretrodb use it 2015-09-17 19:58:06 +02:00
twinaphex
caa01d5fee (libretrodb) Move MAGIC_NUMBER out of header 2015-09-17 10:57:05 +02:00
twinaphex
6e4a6ab4b1 (libretrodb) Cleanup 2015-09-17 10:21:29 +02:00
twinaphex
2b2767017c (platform_linux.c) CXX_BUILD fix 2015-09-17 10:14:57 +02:00
twinaphex
d8243945f2 libretrodb_find_entry - small cleanup 2015-09-17 09:50:34 +02:00
twinaphex
da54b5dedf (libretrodb.c) Indenting nits 2015-09-17 09:47:48 +02:00
twinaphex
2ce025884f (libretro-db) libretrodb.c - cleanups 2015-09-17 09:46:26 +02:00