pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators/libretro-mupen64plus Fix some C99 compat iss...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6b4fd1f4f579
branches:  trunk
changeset: 363838:6b4fd1f4f579
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Jun 17 19:42:03 2017 +0000

description:
Fix some C99 compat issues.

diffstat:

 emulators/libretro-mupen64plus/distinfo                                             |   3 +-
 emulators/libretro-mupen64plus/patches/patch-mupen64plus-video-angrylion_n64video.c |  95 ++++++++++
 2 files changed, 97 insertions(+), 1 deletions(-)

diffs (113 lines):

diff -r 039bdb812e31 -r 6b4fd1f4f579 emulators/libretro-mupen64plus/distinfo
--- a/emulators/libretro-mupen64plus/distinfo   Sat Jun 17 19:40:18 2017 +0000
+++ b/emulators/libretro-mupen64plus/distinfo   Sat Jun 17 19:42:03 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2015/11/03 20:30:59 agc Exp $
+$NetBSD: distinfo,v 1.5 2017/06/17 19:42:03 joerg Exp $
 
 SHA1 (mupen64plus-libretro-20150204.zip) = 85599e878094348163d68fdd704c5bc7edf78e44
 RMD160 (mupen64plus-libretro-20150204.zip) = 6c08b86834a8f6d548c85eaa34ca38e779b6a0d2
@@ -6,3 +6,4 @@
 Size (mupen64plus-libretro-20150204.zip) = 3286777 bytes
 SHA1 (patch-glide2gl_src_Glide64_Util.h) = d3bceef0ba895af8309bfe9435d701d76ca31a27
 SHA1 (patch-libretro_libco_armeabi.c) = dbce5604b0a160dfbdae82506957e2c852d4ca9d
+SHA1 (patch-mupen64plus-video-angrylion_n64video.c) = 7781b2aaa5efb2d0c670438130ad9ef59aa711fc
diff -r 039bdb812e31 -r 6b4fd1f4f579 emulators/libretro-mupen64plus/patches/patch-mupen64plus-video-angrylion_n64video.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-mupen64plus/patches/patch-mupen64plus-video-angrylion_n64video.c       Sat Jun 17 19:42:03 2017 +0000
@@ -0,0 +1,95 @@
+$NetBSD: patch-mupen64plus-video-angrylion_n64video.c,v 1.1 2017/06/17 19:42:03 joerg Exp $
+
+C99's inline has different semantic.
+
+--- mupen64plus-video-angrylion/n64video.c.orig        2017-06-16 12:04:46.824147448 +0000
++++ mupen64plus-video-angrylion/n64video.c
+@@ -218,7 +218,7 @@ static void compute_cvg_flip(INT32 scanl
+ STRICTINLINE UINT32 z_decompress(UINT32 rawz);
+ STRICTINLINE UINT32 dz_decompress(UINT32 compresseddz);
+ STRICTINLINE UINT32 dz_compress(UINT32 value);
+-INLINE void z_build_com_table(void);
++void z_build_com_table(void);
+ static void precalc_cvmask_derivatives(void);
+ STRICTINLINE UINT16 decompress_cvmask_frombyte(UINT8 byte);
+ STRICTINLINE void lookup_cvmask_derivatives(UINT32 mask, UINT8* offx, UINT8* offy, UINT32* curpixel_cvg, UINT32* curpixel_cvbit);
+@@ -698,7 +698,7 @@ INLINE void SET_SUBA_RGB_INPUT(INT32 **i
+     }
+ }
+ 
+-INLINE void SET_SUBB_RGB_INPUT(INT32 **input_r, INT32 **input_g, INT32 **input_b, int code)
++void SET_SUBB_RGB_INPUT(INT32 **input_r, INT32 **input_g, INT32 **input_b, int code)
+ {
+     switch (code & 0xf)
+     {
+@@ -717,7 +717,7 @@ INLINE void SET_SUBB_RGB_INPUT(INT32 **i
+     }
+ }
+ 
+-INLINE void SET_MUL_RGB_INPUT(INT32 **input_r, INT32 **input_g, INT32 **input_b, int code)
++void SET_MUL_RGB_INPUT(INT32 **input_r, INT32 **input_g, INT32 **input_b, int code)
+ {
+     switch (code & 0x1f)
+     {
+@@ -745,7 +745,7 @@ INLINE void SET_MUL_RGB_INPUT(INT32 **in
+     }
+ }
+ 
+-INLINE void SET_ADD_RGB_INPUT(INT32 **input_r, INT32 **input_g, INT32 **input_b, int code)
++void SET_ADD_RGB_INPUT(INT32 **input_r, INT32 **input_g, INT32 **input_b, int code)
+ {
+     switch (code & 0x7)
+     {
+@@ -760,7 +760,7 @@ INLINE void SET_ADD_RGB_INPUT(INT32 **in
+     }
+ }
+ 
+-INLINE void SET_SUB_ALPHA_INPUT(INT32 **input, int code)
++void SET_SUB_ALPHA_INPUT(INT32 **input, int code)
+ {
+     switch (code & 0x7)
+     {
+@@ -775,7 +775,7 @@ INLINE void SET_SUB_ALPHA_INPUT(INT32 **
+     }
+ }
+ 
+-INLINE void SET_MUL_ALPHA_INPUT(INT32 **input, int code)
++void SET_MUL_ALPHA_INPUT(INT32 **input, int code)
+ {
+     switch (code & 0x7)
+     {
+@@ -1129,7 +1129,7 @@ static void precalculate_everything(void
+     return;
+ }
+ 
+-INLINE void SET_BLENDER_INPUT(int cycle, int which, INT32 **input_r, INT32 **input_g, INT32 **input_b, INT32 **input_a, int a, int b)
++void SET_BLENDER_INPUT(int cycle, int which, INT32 **input_r, INT32 **input_g, INT32 **input_b, INT32 **input_a, int a, int b)
+ {
+ 
+     switch (a & 0x3)
+@@ -5837,7 +5837,7 @@ STRICTINLINE UINT32 z_decompress(UINT32 
+     return (z_complete_dec_table[zb >> 2]);
+ }
+ 
+-INLINE void z_build_com_table(void)
++void z_build_com_table(void)
+ {
+     register int z;
+     UINT16 altmem = 0;
+@@ -6220,14 +6220,14 @@ STRICTINLINE INT32 CLIP(INT32 value,INT3
+         return value;
+ }
+ 
+-INLINE void calculate_clamp_diffs(UINT32 i)
++void calculate_clamp_diffs(UINT32 i)
+ {
+     tile[i].f.clampdiffs = ((tile[i].sh >> 2) - (tile[i].sl >> 2)) & 0x3ff;
+     tile[i].f.clampdifft = ((tile[i].th >> 2) - (tile[i].tl >> 2)) & 0x3ff;
+ }
+ 
+ 
+-INLINE void calculate_tile_derivs(UINT32 i)
++void calculate_tile_derivs(UINT32 i)
+ {
+     tile[i].f.clampens = tile[i].cs || !tile[i].mask_s;
+     tile[i].f.clampent = tile[i].ct || !tile[i].mask_t;



Home | Main Index | Thread Index | Old Index