diff options
author | joerg <joerg> | 2012-12-20 21:59:20 +0000 |
---|---|---|
committer | joerg <joerg> | 2012-12-20 21:59:20 +0000 |
commit | 75a4ab80a3d44d6bb4e97b35f5d42613af593b1d (patch) | |
tree | 6efeea6f996bde0b70868f887ed101f29141c9b8 /emulators/generator | |
parent | c4cb8e2dbbd642ec73b07001f6594105ea037682 (diff) | |
download | pkgsrc-75a4ab80a3d44d6bb4e97b35f5d42613af593b1d.tar.gz |
Fix inline usage.
Diffstat (limited to 'emulators/generator')
-rw-r--r-- | emulators/generator/distinfo | 5 | ||||
-rw-r--r-- | emulators/generator/patches/patch-main_event.c | 13 | ||||
-rw-r--r-- | emulators/generator/patches/patch-main_vdp.c | 22 | ||||
-rw-r--r-- | emulators/generator/patches/patch-ym2612_support.h | 13 |
4 files changed, 52 insertions, 1 deletions
diff --git a/emulators/generator/distinfo b/emulators/generator/distinfo index 6dbf8913c54..4eb24160129 100644 --- a/emulators/generator/distinfo +++ b/emulators/generator/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.9 2009/10/29 17:58:50 joerg Exp $ +$NetBSD: distinfo,v 1.10 2012/12/20 21:59:20 joerg Exp $ SHA1 (generator-0.35.tar.gz) = a61138579efd97028d3a69c54c3c6fcd0a3d74ab RMD160 (generator-0.35.tar.gz) = 6b448018b8ed0fd9755ddb850f48892304d12e78 @@ -10,3 +10,6 @@ SHA1 (patch-ae) = 4e689421fe66aa7f635191e9f0100cd98daf8a76 SHA1 (patch-af) = ef1c72b6da1ae93209a13b6836d5a85f66ffa51c SHA1 (patch-ag) = 2837e5f931326b1ac4fb7b045c05a81d809693e4 SHA1 (patch-ah) = 4e76b9cd2fd377dee83273bafe930bec77b9bef1 +SHA1 (patch-main_event.c) = 6016e3c5de1b0c027f637962f740238f0a1e4573 +SHA1 (patch-main_vdp.c) = 0d5ef7815c8c4e03b2df8692af31739c9a1f773c +SHA1 (patch-ym2612_support.h) = 1bf38d55f289881468cb2e7eb0fa02c7ec08dd1c diff --git a/emulators/generator/patches/patch-main_event.c b/emulators/generator/patches/patch-main_event.c new file mode 100644 index 00000000000..e7212d8dafc --- /dev/null +++ b/emulators/generator/patches/patch-main_event.c @@ -0,0 +1,13 @@ +$NetBSD: patch-main_event.c,v 1.1 2012/12/20 21:59:21 joerg Exp $ + +--- main/event.c.orig 2012-12-20 19:12:33.000000000 +0000 ++++ main/event.c +@@ -16,7 +16,7 @@ + + /* time for next event - update vdp_event - return when to call again */ + +-inline void event_nextevent(void) ++static inline void event_nextevent(void) + { + /* call this when it *is* time for the next event as dictated by vdp_event, + so we switch on it and update vdp_event at the same time */ diff --git a/emulators/generator/patches/patch-main_vdp.c b/emulators/generator/patches/patch-main_vdp.c new file mode 100644 index 00000000000..70db58c1f02 --- /dev/null +++ b/emulators/generator/patches/patch-main_vdp.c @@ -0,0 +1,22 @@ +$NetBSD: patch-main_vdp.c,v 1.1 2012/12/20 21:59:21 joerg Exp $ + +--- main/vdp.c.orig 2012-12-20 19:12:50.000000000 +0000 ++++ main/vdp.c +@@ -90,7 +90,7 @@ void vdp_describe(void); + void vdp_eventinit(void); + void vdp_layer_simple(unsigned int layer, unsigned int priority, + uint8 *fielddata, unsigned int lineoffset); +-inline void vdp_plotcell(uint8 *patloc, uint8 palette, uint8 flags, ++static inline void vdp_plotcell(uint8 *patloc, uint8 palette, uint8 flags, + uint8 *cellloc, unsigned int lineoffset); + void vdp_sprites(unsigned int line, uint8 *pridata, uint8 *outdata); + int vdp_sprite_simple(unsigned int priority, uint8 *framedata, +@@ -1705,7 +1705,7 @@ void vdp_endfield(void) + vdp_event_endline); */ + } + +-inline void vdp_plotcell(uint8 *patloc, uint8 palette, uint8 flags, ++static inline void vdp_plotcell(uint8 *patloc, uint8 palette, uint8 flags, + uint8 *cellloc, unsigned int lineoffset) + { + int y, x; diff --git a/emulators/generator/patches/patch-ym2612_support.h b/emulators/generator/patches/patch-ym2612_support.h new file mode 100644 index 00000000000..4e1370182c4 --- /dev/null +++ b/emulators/generator/patches/patch-ym2612_support.h @@ -0,0 +1,13 @@ +$NetBSD: patch-ym2612_support.h,v 1.1 2012/12/20 21:59:21 joerg Exp $ + +--- ym2612/support.h.orig 2012-12-20 19:09:12.000000000 +0000 ++++ ym2612/support.h +@@ -3,7 +3,7 @@ + #include "config.h" + + #define errorlog 0 +-#define INLINE inline ++#define INLINE static inline + #define HAS_YM2612 1 + #define YM2612UpdateRequest(x) + #define AY8910_set_clock(chip,clock) /* */ |