pkgsrc-Changes archive

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

CVS commit: pkgsrc/emulators/mednafen



Module Name:    pkgsrc
Committed By:   nia
Date:           Thu Apr 18 09:12:41 UTC 2019

Modified Files:
        pkgsrc/emulators/mednafen: distinfo
Added Files:
        pkgsrc/emulators/mednafen/patches: patch-src_quicklz_quicklz.c

Log Message:
emulators/mednafen: Use standard inline keyword.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 pkgsrc/emulators/mednafen/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/emulators/mednafen/patches/patch-src_quicklz_quicklz.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/emulators/mednafen/distinfo
diff -u pkgsrc/emulators/mednafen/distinfo:1.18 pkgsrc/emulators/mednafen/distinfo:1.19
--- pkgsrc/emulators/mednafen/distinfo:1.18     Sun Feb 24 12:01:42 2019
+++ pkgsrc/emulators/mednafen/distinfo  Thu Apr 18 09:12:41 2019
@@ -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

Added files:

Index: pkgsrc/emulators/mednafen/patches/patch-src_quicklz_quicklz.c
diff -u /dev/null pkgsrc/emulators/mednafen/patches/patch-src_quicklz_quicklz.c:1.1
--- /dev/null   Thu Apr 18 09:12:41 2019
+++ pkgsrc/emulators/mednafen/patches/patch-src_quicklz_quicklz.c       Thu Apr 18 09:12:41 2019
@@ -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