pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/mednafen emulators/mednafen: Use standard in...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2ab16687ec13
branches:  trunk
changeset: 332608:2ab16687ec13
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Apr 18 09:12:41 2019 +0000

description:
emulators/mednafen: Use standard inline keyword.

diffstat:

 emulators/mednafen/distinfo                            |   3 +-
 emulators/mednafen/patches/patch-src_quicklz_quicklz.c |  48 ++++++++++++++++++
 2 files changed, 50 insertions(+), 1 deletions(-)

diffs (64 lines):

diff -r 7dc848354e73 -r 2ab16687ec13 emulators/mednafen/distinfo
--- a/emulators/mednafen/distinfo       Thu Apr 18 08:41:13 2019 +0000
+++ b/emulators/mednafen/distinfo       Thu Apr 18 09:12:41 2019 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.18 2019/02/24 12:01:42 nia Exp $
+$NetBSD: distinfo,v 1.19 2019/04/18 09:12:41 nia Exp $
 
 SHA1 (mednafen-1.22.1.tar.xz) = 0f668f80a8c94fabf03339fb086f64f57232eead
 RMD160 (mednafen-1.22.1.tar.xz) = dab2b0798318191b582874977dc420c084724fdf
 SHA512 (mednafen-1.22.1.tar.xz) = 4e6890b984a812e188a42582e79dfdac28e101ce3bd658044b68f267d5c8b3799ea3f4de3dcac5314a615f17591a537b51e64f6bd165fec01f028b201eb32763
 Size (mednafen-1.22.1.tar.xz) = 3270596 bytes
+SHA1 (patch-src_quicklz_quicklz.c) = aae8b3d088e74eeb879801a1e5e142b6ed222fef
diff -r 7dc848354e73 -r 2ab16687ec13 emulators/mednafen/patches/patch-src_quicklz_quicklz.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/mednafen/patches/patch-src_quicklz_quicklz.c    Thu Apr 18 09:12:41 2019 +0000
@@ -0,0 +1,48 @@
+$NetBSD: patch-src_quicklz_quicklz.c,v 1.1 2019/04/18 09:12:41 nia Exp $
+
+Use standard inline keyword.
+
+--- src/quicklz/quicklz.c.orig 2019-01-28 06:52:37.000000000 +0000
++++ src/quicklz/quicklz.c
+@@ -39,12 +39,12 @@ int qlz_get_setting(int setting)
+       return -1;
+ }
+ 
+-__inline unsigned int hash_func(unsigned int i)
++static inline unsigned int hash_func(unsigned int i)
+ {
+       return ((i >> 12) ^ i) & 0x0fff;
+ }
+ 
+-__inline unsigned int fast_read(void const *src, unsigned int bytes)
++static inline unsigned int fast_read(void const *src, unsigned int bytes)
+ {
+ #ifndef X86X64
+       unsigned char *p = (unsigned char*)src;
+@@ -68,7 +68,7 @@ __inline unsigned int fast_read(void con
+ #endif
+ }
+ 
+-__inline void fast_write(unsigned int f, void *dst, unsigned int bytes)
++static inline void fast_write(unsigned int f, void *dst, unsigned int bytes)
+ {
+ #ifndef X86X64
+       unsigned char *p = (unsigned char*)dst;
+@@ -118,7 +118,7 @@ __inline void fast_write(unsigned int f,
+ #endif
+ }
+ 
+-__inline void memcpy_up(unsigned char *dst, const unsigned char *src, unsigned int n)
++static inline void memcpy_up(unsigned char *dst, const unsigned char *src, unsigned int n)
+ {
+       // cannot be replaced by overlap handling of memmove() due to LZSS algorithm
+ #ifndef X86X64
+@@ -151,7 +151,7 @@ __inline void memcpy_up(unsigned char *d
+ #endif
+ }
+ 
+-__inline unsigned int fast_read_safe(void const *src, unsigned int bytes, const unsigned char *invalid)
++static inline unsigned int fast_read_safe(void const *src, unsigned int bytes, const unsigned char *invalid)
+ {
+ #ifdef memory_safe 
+       if ((const unsigned char *)src + 4 > (const unsigned char *)invalid)



Home | Main Index | Thread Index | Old Index