Merge branch 'gcc-compiling-cleanup' into 'master'

Compiling cleanup and fixes

See merge request STJr/SRB2!311
This commit is contained in:
Monster Iestyn 2018-11-10 13:56:17 -05:00
commit 51df32dd3d
19 changed files with 151 additions and 138 deletions

View File

@ -15,7 +15,9 @@
#define DEALIGNED #define DEALIGNED
#endif #endif
#ifndef _BIG_ENDIAN #include "endian.h"
#ifndef SRB2_BIG_ENDIAN
// //
// Little-endian machines // Little-endian machines
// //
@ -75,7 +77,7 @@
#define READANGLE(p) *((angle_t *)p)++ #define READANGLE(p) *((angle_t *)p)++
#endif #endif
#else //_BIG_ENDIAN #else //SRB2_BIG_ENDIAN
// //
// definitions for big-endian machines with alignment constraints. // definitions for big-endian machines with alignment constraints.
// //
@ -144,7 +146,7 @@ FUNCINLINE static ATTRINLINE UINT32 readulong(void *ptr)
#define READCHAR(p) ({ char *p_tmp = ( char *)p; char b = *p_tmp; p_tmp++; p = (void *)p_tmp; b; }) #define READCHAR(p) ({ char *p_tmp = ( char *)p; char b = *p_tmp; p_tmp++; p = (void *)p_tmp; b; })
#define READFIXED(p) ({ fixed_t *p_tmp = (fixed_t *)p; fixed_t b = readlong(p); p_tmp++; p = (void *)p_tmp; b; }) #define READFIXED(p) ({ fixed_t *p_tmp = (fixed_t *)p; fixed_t b = readlong(p); p_tmp++; p = (void *)p_tmp; b; })
#define READANGLE(p) ({ angle_t *p_tmp = (angle_t *)p; angle_t b = readulong(p); p_tmp++; p = (void *)p_tmp; b; }) #define READANGLE(p) ({ angle_t *p_tmp = (angle_t *)p; angle_t b = readulong(p); p_tmp++; p = (void *)p_tmp; b; })
#endif //_BIG_ENDIAN #endif //SRB2_BIG_ENDIAN
#undef DEALIGNED #undef DEALIGNED

View File

@ -170,7 +170,7 @@ void D_PostEvent(const event_t *ev)
eventhead = (eventhead+1) & (MAXEVENTS-1); eventhead = (eventhead+1) & (MAXEVENTS-1);
} }
// just for lock this function // just for lock this function
#ifndef DOXYGEN #if defined (PC_DOS) && !defined (DOXYGEN)
void D_PostEvent_end(void) {}; void D_PostEvent_end(void) {};
#endif #endif
@ -764,10 +764,6 @@ static inline void D_CleanFile(void)
} }
} }
#ifndef _MAX_PATH
#define _MAX_PATH MAX_WADPATH
#endif
// ========================================================================== // ==========================================================================
// Identify the SRB2 version, and IWAD file to use. // Identify the SRB2 version, and IWAD file to use.
// ========================================================================== // ==========================================================================

View File

@ -40,8 +40,8 @@ void D_SRB2Main(void);
// Called by IO functions when input is detected. // Called by IO functions when input is detected.
void D_PostEvent(const event_t *ev); void D_PostEvent(const event_t *ev);
#ifndef DOXYGEN #if defined (PC_DOS) && !defined (DOXYGEN)
FUNCMATH void D_PostEvent_end(void); // delimiter for locking memory void D_PostEvent_end(void); // delimiter for locking memory
#endif #endif
void D_ProcessEvents(void); void D_ProcessEvents(void);

View File

@ -7769,7 +7769,7 @@ fixed_t get_number(const char *word)
#endif #endif
} }
void FUNCMATH DEH_Check(void) void DEH_Check(void)
{ {
#if defined(_DEBUG) || defined(PARANOIA) #if defined(_DEBUG) || defined(PARANOIA)
const size_t dehstates = sizeof(STATE_LIST)/sizeof(const char*); const size_t dehstates = sizeof(STATE_LIST)/sizeof(const char*);

View File

@ -44,12 +44,13 @@
typedef long ssize_t; typedef long ssize_t;
/* Older Visual C++ headers don't have the Win64-compatible typedefs... */ /* Older Visual C++ headers don't have the Win64-compatible typedefs... */
#if ((_MSC_VER <= 1200) && (!defined(DWORD_PTR))) #if (_MSC_VER <= 1200)
#define DWORD_PTR DWORD #ifndef DWORD_PTR
#endif #define DWORD_PTR DWORD
#endif
#if ((_MSC_VER <= 1200) && (!defined(PDWORD_PTR))) #ifndef PDWORD_PTR
#define PDWORD_PTR PDWORD #define PDWORD_PTR PDWORD
#endif
#endif #endif
#elif defined (_arch_dreamcast) // KOS Dreamcast #elif defined (_arch_dreamcast) // KOS Dreamcast
#include <arch/types.h> #include <arch/types.h>
@ -97,12 +98,14 @@ typedef long ssize_t;
#define NOIPX #define NOIPX
#endif #endif
/* Strings and some misc platform specific stuff */
#if defined (_MSC_VER) || defined (__OS2__) #if defined (_MSC_VER) || defined (__OS2__)
// Microsoft VisualC++ // Microsoft VisualC++
#ifdef _MSC_VER #ifdef _MSC_VER
#if (_MSC_VER <= 1800) // MSVC 2013 and back #if (_MSC_VER <= 1800) // MSVC 2013 and back
#define snprintf _snprintf #define snprintf _snprintf
#if (_MSC_VER <= 1200) // MSVC 2012 and back #if (_MSC_VER <= 1200) // MSVC 6.0 and back
#define vsnprintf _vsnprintf #define vsnprintf _vsnprintf
#endif #endif
#endif #endif
@ -178,6 +181,8 @@ size_t strlcpy(char *dst, const char *src, size_t siz);
// not the number of bytes in the buffer. // not the number of bytes in the buffer.
#define STRBUFCPY(dst,src) strlcpy(dst, src, sizeof dst) #define STRBUFCPY(dst,src) strlcpy(dst, src, sizeof dst)
/* Boolean type definition */
// \note __BYTEBOOL__ used to be set above if "macintosh" was defined, // \note __BYTEBOOL__ used to be set above if "macintosh" was defined,
// if macintosh's version of boolean type isn't needed anymore, then isn't this macro pointless now? // if macintosh's version of boolean type isn't needed anymore, then isn't this macro pointless now?
#ifndef __BYTEBOOL__ #ifndef __BYTEBOOL__
@ -185,7 +190,7 @@ size_t strlcpy(char *dst, const char *src, size_t siz);
//faB: clean that up !! //faB: clean that up !!
#if defined( _MSC_VER) && (_MSC_VER >= 1800) // MSVC 2013 and forward #if defined( _MSC_VER) && (_MSC_VER >= 1800) // MSVC 2013 and forward
#include "stdbool.h" #include "stdbool.h"
#elif (defined (_WIN32) || (defined (_WIN32_WCE) && !defined (__GNUC__))) && !defined (_XBOX) #elif (defined (_WIN32) || (defined (_WIN32_WCE) && !defined (__GNUC__))) && !defined (_XBOX)
#define false FALSE // use windows types #define false FALSE // use windows types
#define true TRUE #define true TRUE
@ -240,93 +245,71 @@ size_t strlcpy(char *dst, const char *src, size_t siz);
#define UINT64_MAX 0xffffffffffffffffULL /* 18446744073709551615ULL */ #define UINT64_MAX 0xffffffffffffffffULL /* 18446744073709551615ULL */
#endif #endif
union FColorRGBA /* Compiler-specific attributes and other macros */
{
UINT32 rgba;
struct
{
UINT8 red;
UINT8 green;
UINT8 blue;
UINT8 alpha;
} s;
} ATTRPACK;
typedef union FColorRGBA RGBA_t;
typedef enum
{
postimg_none,
postimg_water,
postimg_motion,
postimg_flip,
postimg_heat
} postimg_t;
typedef UINT32 lumpnum_t; // 16 : 16 unsigned long (wad num: lump num)
#define LUMPERROR UINT32_MAX
typedef UINT32 tic_t;
#define INFTICS UINT32_MAX
#ifdef _BIG_ENDIAN
#define UINT2RGBA(a) a
#else
#define UINT2RGBA(a) (UINT32)((a&0xff)<<24)|((a&0xff00)<<8)|((a&0xff0000)>>8)|(((UINT32)a&0xff000000)>>24)
#endif
#ifdef __GNUC__ // __attribute__ ((X)) #ifdef __GNUC__ // __attribute__ ((X))
#define FUNCNORETURN __attribute__ ((noreturn)) #define FUNCNORETURN __attribute__ ((noreturn))
#if ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)) && defined (__MINGW32__)
#include "inttypes.h" #if ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)) && defined (__MINGW32__) // MinGW, >= GCC 4.1
#if 0 //defined (__USE_MINGW_ANSI_STDIO) && __USE_MINGW_ANSI_STDIO > 0 #include "inttypes.h"
#define FUNCPRINTF __attribute__ ((format(gnu_printf, 1, 2))) #if 0 //defined (__USE_MINGW_ANSI_STDIO) && __USE_MINGW_ANSI_STDIO > 0
#define FUNCDEBUG __attribute__ ((format(gnu_printf, 2, 3))) #define FUNCPRINTF __attribute__ ((format(gnu_printf, 1, 2)))
#define FUNCIERROR __attribute__ ((format(gnu_printf, 1, 2),noreturn)) #define FUNCDEBUG __attribute__ ((format(gnu_printf, 2, 3)))
#elif (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) #define FUNCIERROR __attribute__ ((format(gnu_printf, 1, 2),noreturn))
#define FUNCPRINTF __attribute__ ((format(ms_printf, 1, 2))) #elif (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) // >= GCC 4.4
#define FUNCDEBUG __attribute__ ((format(ms_printf, 2, 3))) #define FUNCPRINTF __attribute__ ((format(ms_printf, 1, 2)))
#define FUNCIERROR __attribute__ ((format(ms_printf, 1, 2),noreturn)) #define FUNCDEBUG __attribute__ ((format(ms_printf, 2, 3)))
#else #define FUNCIERROR __attribute__ ((format(ms_printf, 1, 2),noreturn))
#define FUNCPRINTF __attribute__ ((format(printf, 1, 2))) #else
#define FUNCDEBUG __attribute__ ((format(printf, 2, 3))) #define FUNCPRINTF __attribute__ ((format(printf, 1, 2)))
#define FUNCIERROR __attribute__ ((format(printf, 1, 2),noreturn)) #define FUNCDEBUG __attribute__ ((format(printf, 2, 3)))
#endif #define FUNCIERROR __attribute__ ((format(printf, 1, 2),noreturn))
#else #endif
#define FUNCPRINTF __attribute__ ((format(printf, 1, 2))) #else
#define FUNCDEBUG __attribute__ ((format(printf, 2, 3))) #define FUNCPRINTF __attribute__ ((format(printf, 1, 2)))
#define FUNCIERROR __attribute__ ((format(printf, 1, 2),noreturn)) #define FUNCDEBUG __attribute__ ((format(printf, 2, 3)))
#endif #define FUNCIERROR __attribute__ ((format(printf, 1, 2),noreturn))
#ifndef FUNCIERROR #endif
#define FUNCIERROR __attribute__ ((noreturn))
#endif #ifndef FUNCIERROR
#define FUNCMATH __attribute__((const)) #define FUNCIERROR __attribute__ ((noreturn))
#if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) #endif
#define FUNCDEAD __attribute__ ((deprecated))
#define FUNCINLINE __attribute__((always_inline)) #define FUNCMATH __attribute__((const))
#define FUNCNONNULL __attribute__((nonnull))
#endif #if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) // >= GCC 3.1
#define FUNCNOINLINE __attribute__((noinline)) #define FUNCDEAD __attribute__ ((deprecated))
#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) #define FUNCINLINE __attribute__((always_inline))
#ifdef __i386__ // i386 only #define FUNCNONNULL __attribute__((nonnull))
#define FUNCTARGET(X) __attribute__ ((__target__ (X))) #endif
#endif
#endif #define FUNCNOINLINE __attribute__((noinline))
#if defined (__MINGW32__) && ((__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#define ATTRPACK __attribute__((packed, gcc_struct)) #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) // >= GCC 4.4
#else #ifdef __i386__ // i386 only
#define ATTRPACK __attribute__((packed)) #define FUNCTARGET(X) __attribute__ ((__target__ (X)))
#endif #endif
#define ATTRUNUSED __attribute__((unused)) #endif
#ifdef _XBOX
#define FILESTAMP I_OutputMsg("%s:%d\n",__FILE__,__LINE__); #if defined (__MINGW32__) && ((__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) // MinGW, >= GCC 3.4
#define XBOXSTATIC static #define ATTRPACK __attribute__((packed, gcc_struct))
#endif #else
#define ATTRPACK __attribute__((packed))
#endif
#define ATTRUNUSED __attribute__((unused))
// Xbox-only macros
#ifdef _XBOX
#define FILESTAMP I_OutputMsg("%s:%d\n",__FILE__,__LINE__);
#define XBOXSTATIC static
#endif
#elif defined (_MSC_VER) #elif defined (_MSC_VER)
#define ATTRNORETURN __declspec(noreturn) #define ATTRNORETURN __declspec(noreturn)
#define ATTRINLINE __forceinline #define ATTRINLINE __forceinline
#if _MSC_VER > 1200 #if _MSC_VER > 1200 // >= MSVC 6.0
#define ATTRNOINLINE __declspec(noinline) #define ATTRNOINLINE __declspec(noinline)
#endif #endif
#endif #endif
#ifndef FUNCPRINTF #ifndef FUNCPRINTF
@ -380,4 +363,43 @@ typedef UINT32 tic_t;
#ifndef FILESTAMP #ifndef FILESTAMP
#define FILESTAMP #define FILESTAMP
#endif #endif
/* Miscellaneous types that don't fit anywhere else (Can this be changed?) */
union FColorRGBA
{
UINT32 rgba;
struct
{
UINT8 red;
UINT8 green;
UINT8 blue;
UINT8 alpha;
} s;
} ATTRPACK;
typedef union FColorRGBA RGBA_t;
typedef enum
{
postimg_none,
postimg_water,
postimg_motion,
postimg_flip,
postimg_heat
} postimg_t;
typedef UINT32 lumpnum_t; // 16 : 16 unsigned long (wad num: lump num)
#define LUMPERROR UINT32_MAX
typedef UINT32 tic_t;
#define INFTICS UINT32_MAX
#include "endian.h" // This is needed to make sure the below macro acts correctly in big endian builds
#ifdef SRB2_BIG_ENDIAN
#define UINT2RGBA(a) a
#else
#define UINT2RGBA(a) (UINT32)((a&0xff)<<24)|((a&0xff00)<<8)|((a&0xff0000)>>8)|(((UINT32)a&0xff000000)>>24)
#endif
#endif //__DOOMTYPE__ #endif //__DOOMTYPE__

View File

@ -1401,6 +1401,7 @@ void F_StartGameEnd(void)
// //
void F_GameEndDrawer(void) void F_GameEndDrawer(void)
{ {
// this function does nothing
} }
// //

View File

@ -35,7 +35,7 @@ void F_CutsceneTicker(void);
void F_TitleDemoTicker(void); void F_TitleDemoTicker(void);
// Called by main loop. // Called by main loop.
FUNCMATH void F_GameEndDrawer(void); void F_GameEndDrawer(void);
void F_IntroDrawer(void); void F_IntroDrawer(void);
void F_TitleScreenDrawer(void); void F_TitleScreenDrawer(void);

View File

@ -84,7 +84,7 @@ void HU_Init(void);
void HU_LoadGraphics(void); void HU_LoadGraphics(void);
// reset heads up when consoleplayer respawns. // reset heads up when consoleplayer respawns.
FUNCMATH void HU_Start(void); void HU_Start(void);
boolean HU_Responder(event_t *ev); boolean HU_Responder(event_t *ev);

View File

@ -445,7 +445,7 @@ boolean P_SupermanLook4Players(mobj_t *actor);
void P_DestroyRobots(void); void P_DestroyRobots(void);
void P_SnowThinker(precipmobj_t *mobj); void P_SnowThinker(precipmobj_t *mobj);
void P_RainThinker(precipmobj_t *mobj); void P_RainThinker(precipmobj_t *mobj);
FUNCMATH void P_NullPrecipThinker(precipmobj_t *mobj); void P_NullPrecipThinker(precipmobj_t *mobj);
void P_RemovePrecipMobj(precipmobj_t *mobj); void P_RemovePrecipMobj(precipmobj_t *mobj);
void P_SetScale(mobj_t *mobj, fixed_t newscale); void P_SetScale(mobj_t *mobj, fixed_t newscale);
void P_XYMovement(mobj_t *mo); void P_XYMovement(mobj_t *mo);

View File

@ -87,7 +87,7 @@ extern lighttable_t **planezlight;
extern fixed_t *yslope; extern fixed_t *yslope;
extern fixed_t distscale[MAXVIDWIDTH]; extern fixed_t distscale[MAXVIDWIDTH];
FUNCMATH void R_InitPlanes(void); void R_InitPlanes(void);
void R_PortalStoreClipValues(INT32 start, INT32 end, INT16 *ceil, INT16 *floor, fixed_t *scale); void R_PortalStoreClipValues(INT32 start, INT32 end, INT16 *ceil, INT16 *floor, fixed_t *scale);
void R_PortalRestoreClipValues(INT32 start, INT32 end, INT16 *ceil, INT16 *floor, fixed_t *scale); void R_PortalRestoreClipValues(INT32 start, INT32 end, INT16 *ceil, INT16 *floor, fixed_t *scale);
void R_ClearPlanes(void); void R_ClearPlanes(void);

View File

@ -63,11 +63,7 @@ typedef struct floorsplat_s
fixed_t P_SegLength(seg_t *seg); fixed_t P_SegLength(seg_t *seg);
// call at P_SetupLevel() // call at P_SetupLevel()
#if !(defined (WALLSPLATS) || defined (FLOORSPLATS))
FUNCMATH void R_ClearLevelSplats(void);
#else
void R_ClearLevelSplats(void); void R_ClearLevelSplats(void);
#endif
#ifdef WALLSPLATS #ifdef WALLSPLATS
void R_AddWallSplat(line_t *wallline, INT16 sectorside, const char *patchname, fixed_t top, void R_AddWallSplat(line_t *wallline, INT16 sectorside, const char *patchname, fixed_t top,

View File

@ -71,11 +71,7 @@ consvar_t cv_scr_depth = {"scr_depth", "16 bits", CV_SAVE, scr_depth_cons_t, NUL
#endif #endif
consvar_t cv_renderview = {"renderview", "On", 0, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL}; consvar_t cv_renderview = {"renderview", "On", 0, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
#ifdef DIRECTFULLSCREEN
static FUNCMATH void SCR_ChangeFullscreen (void);
#else
static void SCR_ChangeFullscreen (void); static void SCR_ChangeFullscreen (void);
#endif
consvar_t cv_fullscreen = {"fullscreen", "Yes", CV_SAVE|CV_CALL, CV_YesNo, SCR_ChangeFullscreen, 0, NULL, NULL, 0, 0, NULL}; consvar_t cv_fullscreen = {"fullscreen", "Yes", CV_SAVE|CV_CALL, CV_YesNo, SCR_ChangeFullscreen, 0, NULL, NULL, 0, 0, NULL};

View File

@ -12,19 +12,19 @@ consvar_t cd_volume = {"cd_volume","31",CV_SAVE,soundvolume_cons_t, NULL, 0, NUL
consvar_t cdUpdate = {"cd_update","1",CV_SAVE, NULL, NULL, 0, NULL, NULL, 0, 0, NULL}; consvar_t cdUpdate = {"cd_update","1",CV_SAVE, NULL, NULL, 0, NULL, NULL, 0, 0, NULL};
FUNCMATH void I_InitCD(void){} void I_InitCD(void){}
FUNCMATH void I_StopCD(void){} void I_StopCD(void){}
FUNCMATH void I_PauseCD(void){} void I_PauseCD(void){}
FUNCMATH void I_ResumeCD(void){} void I_ResumeCD(void){}
FUNCMATH void I_ShutdownCD(void){} void I_ShutdownCD(void){}
FUNCMATH void I_UpdateCD(void){} void I_UpdateCD(void){}
FUNCMATH void I_PlayCD(UINT8 track, UINT8 looping) void I_PlayCD(UINT8 track, UINT8 looping)
{ {
(void)track; (void)track;
(void)looping; (void)looping;

View File

@ -1930,14 +1930,14 @@ void I_StartupMouse2(void)
// //
// I_Tactile // I_Tactile
// //
FUNCMATH void I_Tactile(FFType pFFType, const JoyFF_t *FFEffect) void I_Tactile(FFType pFFType, const JoyFF_t *FFEffect)
{ {
// UNUSED. // UNUSED.
(void)pFFType; (void)pFFType;
(void)FFEffect; (void)FFEffect;
} }
FUNCMATH void I_Tactile2(FFType pFFType, const JoyFF_t *FFEffect) void I_Tactile2(FFType pFFType, const JoyFF_t *FFEffect)
{ {
// UNUSED. // UNUSED.
(void)pFFType; (void)pFFType;
@ -1948,7 +1948,7 @@ FUNCMATH void I_Tactile2(FFType pFFType, const JoyFF_t *FFEffect)
*/ */
static ticcmd_t emptycmd; static ticcmd_t emptycmd;
FUNCMATH ticcmd_t *I_BaseTiccmd(void) ticcmd_t *I_BaseTiccmd(void)
{ {
return &emptycmd; return &emptycmd;
} }
@ -1957,7 +1957,7 @@ FUNCMATH ticcmd_t *I_BaseTiccmd(void)
*/ */
static ticcmd_t emptycmd2; static ticcmd_t emptycmd2;
FUNCMATH ticcmd_t *I_BaseTiccmd2(void) ticcmd_t *I_BaseTiccmd2(void)
{ {
return &emptycmd2; return &emptycmd2;
} }
@ -2051,7 +2051,7 @@ tic_t I_GetTime (void)
// //
//I_StartupTimer //I_StartupTimer
// //
FUNCMATH void I_StartupTimer(void) void I_StartupTimer(void)
{ {
#ifdef _WIN32 #ifdef _WIN32
// for win2k time bug // for win2k time bug
@ -2150,11 +2150,11 @@ void I_WaitVBL(INT32 count)
SDL_Delay(count); SDL_Delay(count);
} }
FUNCMATH void I_BeginRead(void) void I_BeginRead(void)
{ {
} }
FUNCMATH void I_EndRead(void) void I_EndRead(void)
{ {
} }
@ -2942,5 +2942,5 @@ const CPUInfoFlags *I_CPUInfo(void)
} }
// note CPUAFFINITY code used to reside here // note CPUAFFINITY code used to reside here
FUNCMATH void I_RegisterSysCommands(void) {} void I_RegisterSysCommands(void) {}
#endif #endif

View File

@ -1055,7 +1055,7 @@ void I_SetPalette(RGBA_t *palette)
} }
// return number of fullscreen + X11 modes // return number of fullscreen + X11 modes
FUNCMATH INT32 VID_NumModes(void) INT32 VID_NumModes(void)
{ {
if (USE_FULLSCREEN && numVidModes != -1) if (USE_FULLSCREEN && numVidModes != -1)
return numVidModes - firstEntry; return numVidModes - firstEntry;
@ -1063,7 +1063,7 @@ FUNCMATH INT32 VID_NumModes(void)
return MAXWINMODES; return MAXWINMODES;
} }
FUNCMATH const char *VID_GetModeName(INT32 modeNum) const char *VID_GetModeName(INT32 modeNum)
{ {
#if 0 #if 0
if (USE_FULLSCREEN && numVidModes != -1) // fullscreen modes if (USE_FULLSCREEN && numVidModes != -1) // fullscreen modes
@ -1093,7 +1093,7 @@ FUNCMATH const char *VID_GetModeName(INT32 modeNum)
return &vidModeName[modeNum][0]; return &vidModeName[modeNum][0];
} }
FUNCMATH INT32 VID_GetModeForSize(INT32 w, INT32 h) INT32 VID_GetModeForSize(INT32 w, INT32 h)
{ {
int i; int i;
for (i = 0; i < MAXWINMODES; i++) for (i = 0; i < MAXWINMODES; i++)

View File

@ -143,7 +143,7 @@ void I_ShutdownSound(void)
#endif #endif
} }
FUNCMATH void I_UpdateSound(void) void I_UpdateSound(void)
{ {
} }
@ -512,7 +512,7 @@ static void mix_gme(void *udata, Uint8 *stream, int len)
/// Music System /// Music System
/// ------------------------ /// ------------------------
FUNCMATH void I_InitMusic(void) void I_InitMusic(void)
{ {
} }

View File

@ -219,7 +219,7 @@ static void Snd_UnlockAudio(void) //Alam: Unlock audio data and reinstall audio
#endif #endif
} }
FUNCMATH static inline Uint16 Snd_LowerRate(Uint16 sr) static inline Uint16 Snd_LowerRate(Uint16 sr)
{ {
if (sr <= audio.freq) // already lowered rate? if (sr <= audio.freq) // already lowered rate?
return sr; // good then return sr; // good then

View File

@ -236,7 +236,7 @@ static void Snd_UnlockAudio(void) //Alam: Unlock audio data and reinstall audio
#endif #endif
} }
FUNCMATH static inline Uint16 Snd_LowerRate(Uint16 sr) static inline Uint16 Snd_LowerRate(Uint16 sr)
{ {
if (sr <= audio.freq) // already lowered rate? if (sr <= audio.freq) // already lowered rate?
return sr; // good then return sr; // good then

View File

@ -24,7 +24,7 @@
// //
// Called by main loop. // Called by main loop.
FUNCMATH void ST_Ticker(void); void ST_Ticker(void);
// Called by main loop. // Called by main loop.
void ST_Drawer(void); void ST_Drawer(void);