Commit Graph

531 Commits

Author SHA1 Message Date
Huw Pascoe ea931428e1 rxml read from string and fix memory violation 2019-05-11 09:58:45 +01:00
Huw Pascoe cd714dbd0b image_texture_load_buffer 2019-05-11 09:58:45 +01: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
twinaphex cec06a0859 C89 buildfixes 2019-03-24 18:15:26 +01:00
Huw Pascoe 45069537fb Re-enable RXML and purge libxml
Fixed rxml to work with griffin.c
2019-03-17 03:04:35 +00:00
Hugo Hromic 0cfefdd2a8 (libretro-common/libchdr) Use int types and format aligned to the `chd_header` typedef 2019-03-14 18:12:10 +00:00
orbea 28ff4b391a Clean up white space. 2019-02-03 16:00:50 -08:00
orbea 4c56167446 Convert to linux line endings. 2019-02-03 15:43:42 -08:00
orbea e062b98088 Remove trailing blank lines.
find . -type f -exec sed -i '${/^[[:space:]]*$/d;}' {} \+
2019-01-17 19:39:38 -08:00
Twinaphex fab4834b82
Merge pull request #7959 from bparker06/json_playlist
add JSON playlist format
2019-01-14 03:14:54 +01:00
twinaphex 6ca9afbd57 Silence more warnings with CXX_BUILD 2019-01-12 18:51:06 +01:00
Brad Parker c7041260d7 add JSON playlist format 2019-01-09 17:13:13 -05: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
Francisco José García García 19549ddccf [ORBIS] Fix __assert 2018-12-27 20:18:53 +01:00
Twinaphex 93af9baf48 Remove warning 2018-09-01 04:04:15 +02:00
twinaphex 821ffc9962 Clang scan-build error fix 2018-08-19 16:13:13 +02:00
Brad Parker 2f87f669f1 fix null dereference (but scan-build still warns with "Assigned value is garbage or undefined") 2018-08-18 01:00:53 -04:00
Brad Parker fbe08aa0c5 fix double free 2018-08-18 00:51:07 -04:00
twinaphex 863204b343 Merge commit 'c68f2796b95838412610023611398d7c9968a3f3' 2018-06-21 08:22:10 +02:00
twinaphex d14a3f0d1f Merge commit '5c25cc90765cbf6ad7f01c0b635c72595bc7f457' 2018-06-21 08:18:08 +02:00
twinaphex 697531dbdd Merge commit '944cac83520c99e1ddf3d8cd3bf25990c8746d14' 2018-06-21 08:07:19 +02:00
twinaphex dd7ac99f27 Merge commit '6ff58826d8725e4e8788c22706de8b25cc89a4c2' 2018-05-12 18:05:31 +02:00
twinaphex 9d5472cecf Merge commit '37aad93a58efba6c340e13aa1d83ddf2df762b3d' 2018-05-12 18:03:49 +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 3c73183a04 Cleanups - fix warnings 2018-05-07 15:05:59 +02:00
Twinaphex b41c4ed624 Update 2018-04-23 10:22:54 +02:00
twinaphex 997c24ae0c Make FLAC, zlib and LZMA support in libchdr optional 2018-04-22 20:19:07 +02:00
twinaphex fc169cf4fe Split up libchdr_chd.c into several files 2018-04-22 19:50:14 +02:00
twinaphex 8e2dfa6184 Cleanups 2018-04-22 19:19:27 +02:00
twinaphex 8a1f2f5cf2 Update libretro-common 2018-04-22 18:36:30 +02:00
twinaphex 7bef8746a3 Add chd_precache code to libchdr 2018-04-22 18:04:45 +02:00
twinaphex 1fd2cf1ff5 Update libchdr chd 2018-04-22 17:43:57 +02:00
twinaphex db314ff82f Uniquely namespace libchdr source files 2018-04-22 12:10:15 +02:00
twinaphex 88d62c7766 Update 2018-04-21 06:31:07 +02:00
twinaphex e5d90eebd7 Updates to libretro-common 2018-04-21 06:29:56 +02:00
twinaphex d8fd499f3d Update count 2018-04-19 23:41:15 +02:00
twinaphex 835e491c62 Use int64_t type for feeding to filestream_read 2018-04-19 22:26:40 +02:00
twinaphex be7eb4de1c Update libretro-common 2018-04-16 08:57:17 +02:00
twinaphex bb05af0d92 (libchdr) Prevent memory leak 2018-04-15 18:39:42 +02:00
Twinaphex 91ba0765e6 (libchdr) Silnces xcode warning 2018-04-09 05:58:32 +02:00
twinaphex 3d0e768e71 Silence some Coverity errors 2018-02-04 19:30:34 +01:00
twinaphex d5ec046c63 Use calloc 2018-01-23 03:43:38 +01:00
twinaphex 6a47669d21 Prevent some heap corruptions/exceptions 2018-01-23 03:41:25 +01:00
twinaphex 93561a042b Cleanups 2018-01-23 03:35:23 +01:00
twinaphex f680f00098 Indent nit 2018-01-23 03:31:28 +01:00
twinaphex 625ddc5e52 Prevent some null pointer dereferences 2018-01-23 03:30:55 +01:00
twinaphex 27f34bf420 Some stability fixes 2018-01-23 03:23:49 +01:00
twinaphex a80fb7c969 Add some safeguards here 2018-01-22 21:48:28 +01:00
twinaphex bd73d4b98a Cleanups 2018-01-17 06:44:16 +01:00
twinaphex 61ff51be2f Start using string_is_equal predominantly 2018-01-16 22:53:38 +01:00
orbea df885fce31 libchdr: Backport "backported chd_file::guess_unitbytes from upstream to set unitbytes and unitcount fields for pre-v5 headers"
Backports 13444fc72f
2018-01-05 16:08:29 -08:00
orbea eeb6230ebd libchdr: Trivial cleanup 2018-01-05 16:08:29 -08:00
Twinaphex f4250a1ad5 Silence unused variable warnings 2018-01-05 14:13:58 +01:00
orbea 2d19885a17 C89_BUILD: Fix some clang compiler errors
Fixes the following -Werror warnings with C89_BUILD=1 and clang.

gfx/common/x11_common.c:407:17: warning: ISO C90 forbids mixing declarations and code [-Wdeclaration-after-statement]
         Status status = 0;
                ^
libretro-common/formats/libchdr/chd.c:639:12: warning: ISO C90 forbids mixing declarations and code [-Wdeclaration-after-statement]
                uint8_t *sector = &dest[framenum * CD_FRAME_SIZE];
                         ^
libretro-common/formats/libchdr/chd.c:723:12: warning: ISO C90 forbids mixing declarations and code [-Wdeclaration-after-statement]
                uint8_t *sector = &dest[framenum * CD_FRAME_SIZE];
                         ^
2018-01-03 16:53:11 -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
twinaphex a1ce8b58c4 Simply formats/xml/rxml.c 2017-12-11 18:01:56 +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 d0eef2579e remove this - shouldn't be necessary 2017-11-25 00:54:51 +01:00
Twinaphex 5136ec2df0 Updates 2017-11-06 05:37:32 +01:00
Brad Parker 20850a7f92 travis: add mingw build targets 2017-10-24 00:37:31 -04:00
twinaphex 20da0f0666 Cleanups 2017-10-06 05:28:35 +02:00
twinaphex 608bc45388 Prevent another memory leak 2017-10-06 05:25:05 +02:00
Alcaro 3d9d5320ad typo 2017-10-06 02:15:49 +02:00
twinaphex 6013e25b2b Cleanups 2017-10-06 01:59:16 +02:00
Alcaro 76283edd07 fix buncha ignored errors and whatever 2017-10-06 01:53:00 +02:00
twinaphex 7959cd3993 Use malloc 2017-09-29 22:47:45 +02:00
Twinaphex 3c04a9776c (OSX) Add FLAC and CHD support 2017-09-22 04:41:09 +02:00
twinaphex 46b79ccd78 Compilation fixes - headers need to be moved to separate include dir 2017-09-21 19:34:46 +02:00
twinaphex c0de19f23d Update 2017-09-21 19:29:13 +02:00
twinaphex c3b5981dc0 Create minmax.h for libchdr 2017-09-21 19:28:32 +02:00
twinaphex df60512a0d Cleanup our dep version of 7zip - we don't want non-stdint types.
Other misc. cleanups
2017-09-21 19:23:09 +02:00
twinaphex 49cf80db10 Fix resource leaks 2017-09-18 15:57:05 +02:00
Brian Koropoff 3b7a202934 Fix libchdr build on Windows 2017-09-17 22:04:11 -07:00
twinaphex 4e71b75a7d include retro_inline.h 2017-09-17 18:38:51 +02:00
twinaphex f67641c52c (libchdr) Can't have C++ comments
(config.params.sh) Have to disable FLAC for now; still doesn't
compile for Windows due to fseeko/ftello errors
2017-09-17 18:36:55 +02:00
Brian Koropoff d41ea34d6b upgrade libchdr 2017-09-17 02:02:04 -07:00
twinaphex 3c758609b5 Updates 2017-08-08 18:51:01 +02:00
twinaphex e979eece1c Updates 2017-08-08 18:45:56 +02:00
ensra 6a36453f20 Cast ctype args to unsigned char 2017-08-08 12:21:48 +01:00
twinaphex e58eee37bc Cleanups 2017-06-28 05:44:59 +02:00
twinaphex 688414c5bb Get rid of some retro_assert usage 2017-06-26 05:38:51 +02:00
twinaphex 558181e7dd (jsonsax_full.c) Silence some warnings 2017-05-31 04:23:28 +02:00
twinaphex 79bcc5efc9 Style nits 2017-05-19 19:16:05 +02:00
Twinaphex 808b973752 (OSX) Silence warnings 2017-05-16 08:44:17 +02: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 3593256a76 MSVC Buildfix 2017-05-09 02:29:24 +02:00
twinaphex 8e3d0612d2 Try to fix MSVC error 2017-05-08 21:12:55 +02:00
twinaphex fec24bd47b Cleanup rwav 2017-05-08 18:45:37 +02:00
twinaphex dd517f4660 Try to avoid directly calling strcmp 2017-04-21 13:56:15 +02:00
twinaphex 2712b60de0 (rjpeg) Cleanup 2017-04-10 06:11:53 +02:00
twinaphex a84540515c Cleanup 2017-04-10 06:03:49 +02:00
twinaphex 51581e1578 Include string.h instead 2017-03-09 01:50:27 +01:00
Brad Parker bd6ca986d8 msvc buildfix 2017-03-05 14:19:38 -05:00
Brad Parker 21fe0c8499 bake in johnanthonyowens/jsonsax as jsonsax_full 2017-03-05 14:19:35 -05: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 22dfa1ca7c Fix C89_BUILD 2017-01-30 19:32:02 +01:00