diff decoders/shn.c @ 401:c42ac9ee2ce4

Fixed "inline" keyword to compile.
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 12 Jul 2002 23:16:24 +0000
parents fb519e6028e3
children b4abd7c48b6e
line wrap: on
line diff
--- a/decoders/shn.c	Thu Jul 11 05:28:52 2002 +0000
+++ b/decoders/shn.c	Fri Jul 12 23:16:24 2002 +0000
@@ -323,11 +323,11 @@
 } /* ulong_get */
 
 
-static inline int uint_get(int nbit, shn_t *shn, SDL_RWops *rw, Sint32 *word)
+static __inline__ int uint_get(int nbit, shn_t *shn, SDL_RWops *rw, Sint32 *w)
 {
     return((shn->version == 0) ?
-                uvar_get(nbit, shn, rw, word) :
-                ulong_get(shn, rw, word));
+                uvar_get(nbit, shn, rw, w) :
+                ulong_get(shn, rw, w));
 } /* uint_get */
 
 
@@ -347,7 +347,7 @@
  * Look through the whole file for a SHN magic number. This is costly, so
  *  it should only be done if the user SWEARS they have a Shorten stream...
  */
-static inline int extended_shn_magic_search(Sound_Sample *sample)
+static __inline__ int extended_shn_magic_search(Sound_Sample *sample)
 {
     SDL_RWops *rw = ((Sound_SampleInternal *) sample->opaque)->rw;
     Uint32 word = 0;
@@ -369,7 +369,8 @@
 
 
 /* look for the magic number in the RWops and see what kind of file this is. */
-static inline int determine_shn_version(Sound_Sample *sample, const char *ext)
+static __inline__ int determine_shn_version(Sound_Sample *sample,
+                                            const char *ext)
 {
     SDL_RWops *rw = ((Sound_SampleInternal *) sample->opaque)->rw;
     Uint32 magic;
@@ -433,7 +434,7 @@
 } /* init_shn_offset */
 
 
-static inline Uint16 cvt_shnftype_to_sdlfmt(Sint16 shntype)
+static __inline__ Uint16 cvt_shnftype_to_sdlfmt(Sint16 shntype)
 {
     switch (shntype)
     {
@@ -465,7 +466,7 @@
 } /* cvt_shnftype_to_sdlfmt */
 
 
-static inline int skip_bits(shn_t *shn, SDL_RWops *rw)
+static __inline__ int skip_bits(shn_t *shn, SDL_RWops *rw)
 {
     int i;
     Sint32 skip;
@@ -543,7 +544,7 @@
 } /* verb_ReadLE16 */
 
 
-static inline int parse_riff_header(shn_t *shn, Sound_Sample *sample)
+static __inline__ int parse_riff_header(shn_t *shn, Sound_Sample *sample)
 {
     Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque;
     SDL_RWops *rw = internal->rw;