extern inline -> static inlinediff -r1.8 -r1.9 pkgsrc/games/xracer/distinfo
(joerg)
@@ -1,23 +1,25 @@ | @@ -1,23 +1,25 @@ | |||
1 | $NetBSD: distinfo,v 1.8 2006/02/28 17:45:55 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.9 2012/10/26 20:22:12 joerg Exp $ | |
2 | 2 | |||
3 | SHA1 (xracer-0.96.9.tar.gz) = 8c7a4f0be46ee83bbb588f6c5834340f519a3059 | 3 | SHA1 (xracer-0.96.9.tar.gz) = 8c7a4f0be46ee83bbb588f6c5834340f519a3059 | |
4 | RMD160 (xracer-0.96.9.tar.gz) = 1e9611dd55b1a3f0bf681a7051fcbb37bec47a6e | 4 | RMD160 (xracer-0.96.9.tar.gz) = 1e9611dd55b1a3f0bf681a7051fcbb37bec47a6e | |
5 | Size (xracer-0.96.9.tar.gz) = 1550085 bytes | 5 | Size (xracer-0.96.9.tar.gz) = 1550085 bytes | |
6 | SHA1 (patch-aa) = bd73584734449a4de330982f2cd2fa2c93ecfba4 | 6 | SHA1 (patch-aa) = bd73584734449a4de330982f2cd2fa2c93ecfba4 | |
7 | SHA1 (patch-ab) = 397213618e38a9d8b6a02b66c0bd6dfa8e9088f2 | 7 | SHA1 (patch-ab) = 397213618e38a9d8b6a02b66c0bd6dfa8e9088f2 | |
8 | SHA1 (patch-ac) = 8ca84cea66a44b700d32633151767c7ecfacbefc | 8 | SHA1 (patch-ac) = 8ca84cea66a44b700d32633151767c7ecfacbefc | |
9 | SHA1 (patch-ad) = 89fba91a07db5222ddb21717205a16613710e12b | 9 | SHA1 (patch-ad) = 89fba91a07db5222ddb21717205a16613710e12b | |
10 | SHA1 (patch-ae) = f14f54d246370382255c2ebe4e907d9110f95a5e | 10 | SHA1 (patch-ae) = f14f54d246370382255c2ebe4e907d9110f95a5e | |
11 | SHA1 (patch-af) = 05122f93b7f9ed1481a8d20696f75c35356db8a4 | 11 | SHA1 (patch-af) = 05122f93b7f9ed1481a8d20696f75c35356db8a4 | |
12 | SHA1 (patch-ag) = 129497c5e5b041b32c545493ea97afe9db996e33 | 12 | SHA1 (patch-ag) = 129497c5e5b041b32c545493ea97afe9db996e33 | |
13 | SHA1 (patch-ah) = b97883d599ac070385883e1356ac53382f15fbaa | 13 | SHA1 (patch-ah) = b97883d599ac070385883e1356ac53382f15fbaa | |
14 | SHA1 (patch-aj) = 020d915445d310e3f744afe0179e70cafebbf84e | 14 | SHA1 (patch-aj) = 020d915445d310e3f744afe0179e70cafebbf84e | |
15 | SHA1 (patch-ak) = baa49f9b0f6cd161aab8a97c3234577654c191a4 | 15 | SHA1 (patch-ak) = baa49f9b0f6cd161aab8a97c3234577654c191a4 | |
16 | SHA1 (patch-al) = cc441eb5150f8f709a6ad2a9fca0d1c12b8fb420 | 16 | SHA1 (patch-al) = cc441eb5150f8f709a6ad2a9fca0d1c12b8fb420 | |
17 | SHA1 (patch-am) = 0d48fe70e1685df586d5369fb74caf439f6b3de0 | 17 | SHA1 (patch-am) = 0d48fe70e1685df586d5369fb74caf439f6b3de0 | |
18 | SHA1 (patch-an) = 3d2d4183ad578af11b478ccd943cb113424893c0 | 18 | SHA1 (patch-an) = 3d2d4183ad578af11b478ccd943cb113424893c0 | |
19 | SHA1 (patch-ao) = f2bc14651fd4f2137ea7e144701c90e5fb3a6689 | 19 | SHA1 (patch-ao) = f2bc14651fd4f2137ea7e144701c90e5fb3a6689 | |
20 | SHA1 (patch-ap) = 491cf858882cedc2fce86503240b6ccb63e72c77 | 20 | SHA1 (patch-ap) = 491cf858882cedc2fce86503240b6ccb63e72c77 | |
21 | SHA1 (patch-aq) = 90dd0c5a669439b47ca489117b9efa19c656f40a | 21 | SHA1 (patch-aq) = 90dd0c5a669439b47ca489117b9efa19c656f40a | |
22 | SHA1 (patch-ar) = be958b29fdf3fdb82df9b0cc6f1c152371c7a858 | 22 | SHA1 (patch-ar) = be958b29fdf3fdb82df9b0cc6f1c152371c7a858 | |
23 | SHA1 (patch-as) = 5f22c78bec9b9fab9feb2cae73afc251f4367066 | 23 | SHA1 (patch-as) = 5f22c78bec9b9fab9feb2cae73afc251f4367066 | |
24 | SHA1 (patch-include_xracer-craft.h) = b53a6f89f29263451ea111a44a5b84eb91721c1f | |||
25 | SHA1 (patch-include_xracer-player.h) = 6a7f33c926d74c1d2ee9dc21d91acbf269b57f6c |
$NetBSD: patch-include_xracer-craft.h,v 1.1 2012/10/26 20:22:12 joerg Exp $
--- include/xracer-craft.h.orig 2012-10-26 13:35:24.000000000 +0000
+++ include/xracer-craft.h
@@ -68,9 +68,7 @@ extern const struct xrCraft *xrCraftGetD
extern const struct xrCraft *xrCraftGetNext (const struct xrCraft *);
/* Call display function for craft. */
-extern void xrCraftDisplay (const struct xrCraft *craft);
-
-extern inline void
+static inline void
xrCraftDisplay (const struct xrCraft *craft)
{
craft->display ();
$NetBSD: patch-include_xracer-player.h,v 1.1 2012/10/26 20:22:12 joerg Exp $
--- include/xracer-player.h.orig 2012-10-26 13:35:56.000000000 +0000
+++ include/xracer-player.h
@@ -130,79 +130,59 @@ extern void xrPlayerEndGame (void);
extern void xrPlayerUpdate (const struct xrGameControls *controls);
/* Inline structure accessors. */
-extern int xrPlayerHasExternalShield (const struct xrPlayer *player);
-
-extern inline int
+static inline int
xrPlayerHasExternalShield (const struct xrPlayer *player)
{
return player->has_external_shield;
}
-extern int xrPlayerHasAutoPilot (const struct xrPlayer *player);
-
-extern inline int
+static inline int
xrPlayerHasAutoPilot (const struct xrPlayer *player)
{
return player->has_autopilot;
}
/* This always returns the position of the midpoint of the back line. */
-extern const GLfloat *xrPlayerGetPosition (const struct xrPlayer *player);
-
-extern inline const GLfloat *
+static inline const GLfloat *
xrPlayerGetPosition (const struct xrPlayer *player)
{
return player->backline_midpoint;
}
-extern int xrPlayerGetSegment (const struct xrPlayer *player);
-
-extern inline int
+static inline int
xrPlayerGetSegment (const struct xrPlayer *player)
{
return player->seg[0];
}
/* Return the eye position, accounting for OOBE, if necessary. */
-extern const GLfloat *xrPlayerGetCameraEye (const struct xrPlayer *player,
- int oobe);
-
-extern inline const GLfloat *
+static inline const GLfloat *
xrPlayerGetCameraEye (const struct xrPlayer *player, int oobe)
{
return oobe ? player->eye_oobe : player->backline_midpoint;
}
/* Return the camera centre point, accounting for OOBE, if necessary. */
-extern const GLfloat *xrPlayerGetCameraCentre (const struct xrPlayer *player,
- int oobe);
-
-extern inline const GLfloat *
+static inline const GLfloat *
xrPlayerGetCameraCentre (const struct xrPlayer *player, int oobe)
{
return oobe ? player->centre_oobe : player->posn[0];
}
/* Return the camera up vector (this is unaffected by OOBE). */
-extern const GLfloat *xrPlayerGetCameraUp (const struct xrPlayer *player);
-
-extern inline const GLfloat *
+static inline const GLfloat *
xrPlayerGetCameraUp (const struct xrPlayer *player)
{
return player->up;
}
-extern int xrPlayerGetSpeed (const struct xrPlayer *player);
-
-extern inline int
+static inline int
xrPlayerGetSpeed (const struct xrPlayer *player)
{
return xrMagnitude (player->momentum[0]) * 500.;
}
-extern int xrPlayerGetPowerup (const struct xrPlayer *player);
-
-extern inline int
+static inline int
xrPlayerGetPowerup (const struct xrPlayer *player)
{
return player->powerup;
@@ -211,18 +191,14 @@ xrPlayerGetPowerup (const struct xrPlaye
/* Return the player's current lap, counting from 1. After the player has
* completed the game, this can return NR_LAPS + 1, so beware.
*/
-extern int xrPlayerGetCurrentLap (const struct xrPlayer *player);
-
-extern inline int
+static inline int
xrPlayerGetCurrentLap (const struct xrPlayer *player)
{
return player->displayed_current_lap + 1;
}
/* Return the player's current lap time. */
-extern double xrPlayerGetCurrentLapTime (const struct xrPlayer *player);
-
-extern inline double
+static inline double
xrPlayerGetCurrentLapTime (const struct xrPlayer *player)
{
return xrCurrentTime - player->start_of_lap_time;
@@ -232,9 +208,7 @@ xrPlayerGetCurrentLapTime (const struct
* Note: the LAP argument starts counting from 1, and must be <= NR_LAPS.
* This function does not return the current lap time.
*/
-extern double xrPlayerGetLapTime (const struct xrPlayer *player, int lap);
-
-extern inline double
+static inline double
xrPlayerGetLapTime (const struct xrPlayer *player, int lap)
{
lap--;