fix header defines

master
an 2019-12-02 10:00:56 -05:00
parent 55aef43175
commit 2473e7d835
66 changed files with 199 additions and 276 deletions

View File

@ -109,7 +109,6 @@ set(srcs
source/r_sprite.c source/r_sprite.c
source/r_world.c source/r_world.c
source/render.h source/render.h
source/resource.h
source/sbar.c source/sbar.c
source/sbar.h source/sbar.h
source/screen.h source/screen.h
@ -173,6 +172,7 @@ set(srcs_windows
source/windows/net_wipx.c source/windows/net_wipx.c
source/windows/net_wipx.h source/windows/net_wipx.h
source/windows/pl_win.c source/windows/pl_win.c
source/windows/resource.h
source/windows/sys_sdl_win.c source/windows/sys_sdl_win.c
source/windows/wsaerror.h) source/windows/wsaerror.h)

View File

@ -24,8 +24,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#ifndef ARCHDEFS_H #ifndef spingle__arch_def_h
#define ARCHDEFS_H #define spingle__arch_def_h
/* core ports */ /* core ports */
#define PLATFRM_BSD 0 #define PLATFRM_BSD 0

View File

@ -22,8 +22,8 @@
* *
*/ */
#ifndef _BGMUSIC_H_ #ifndef spingle__bgmusic_h
#define _BGMUSIC_H_ #define spingle__bgmusic_h
extern bool bgmloop; extern bool bgmloop;
extern cvar_t bgm_extmusic; extern cvar_t bgm_extmusic;
@ -39,5 +39,4 @@ void BGM_Resume(void);
void BGM_PlayCDtrack(byte track, bool looping); void BGM_PlayCDtrack(byte track, bool looping);
#endif /* _BGMUSIC_H_ */ #endif

View File

@ -20,8 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef __BSPFILE_H #ifndef spingle__bspfile_h
#define __BSPFILE_H #define spingle__bspfile_h
// upper design bounds // upper design bounds
@ -310,5 +310,4 @@ typedef struct
//============================================================================ //============================================================================
#endif /* __BSPFILE_H */ #endif

View File

@ -19,8 +19,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef __CDAUDIO_H #ifndef spingle__cdaudio_h
#define __CDAUDIO_H #define spingle__cdaudio_h
int32_t CDAudio_Init(void); int32_t CDAudio_Init(void);
int32_t CDAudio_Play(byte track, bool looping); int32_t CDAudio_Play(byte track, bool looping);
@ -31,5 +31,4 @@ void CDAudio_Resume(void);
void CDAudio_Shutdown(void); void CDAudio_Shutdown(void);
void CDAudio_Update(void); void CDAudio_Update(void);
#endif /* __CDAUDIO_H */ #endif

View File

@ -19,8 +19,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#ifndef __CFGFILE_H #ifndef spingle__cfgfile_h
#define __CFGFILE_H #define spingle__cfgfile_h
int32_t CFG_OpenConfig(const char *cfg_name); int32_t CFG_OpenConfig(const char *cfg_name);
// opens the given config file. only one open config file is // opens the given config file. only one open config file is
@ -39,4 +39,4 @@ void CFG_ReadCvarOverrides(const char **vars, int32_t num_vars);
// the config file. call this after CFG_ReadCvars() and before // the config file. call this after CFG_ReadCvars() and before
// locking your cvars. // locking your cvars.
#endif /* __CFGFILE_H */ #endif

View File

@ -20,8 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef _CLIENT_H_ #ifndef spingle__client_h
#define _CLIENT_H_ #define spingle__client_h
// client.h // client.h
@ -379,5 +379,4 @@ void TraceLine(vec3_t start, vec3_t end, vec3_t impact);
void Chase_UpdateForClient(void); //johnfitz void Chase_UpdateForClient(void); //johnfitz
void Chase_UpdateForDrawing(void); //johnfitz void Chase_UpdateForDrawing(void); //johnfitz
#endif /* _CLIENT_H_ */ #endif

View File

@ -20,8 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef _QUAKE_CMD_H #ifndef spingle__cmd_h
#define _QUAKE_CMD_H #define spingle__cmd_h
// cmd.h -- Command buffer and command execution // cmd.h -- Command buffer and command execution
@ -123,5 +123,4 @@ void Cmd_Print(const char *text);
// used by command functions to send output to either the graphics console or // used by command functions to send output to either the graphics console or
// passed as a print message to the client // passed as a print message to the client
#endif /* _QUAKE_CMD_H */ #endif

View File

@ -20,8 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef _Q_COMMON_H #ifndef spingle__common_h
#define _Q_COMMON_H #define spingle__common_h
// comndef.h -- general definitions // comndef.h -- general definitions
@ -285,5 +285,4 @@ extern bool standard_quake, rogue, hipnotic;
struct cvar_s; struct cvar_s;
#endif /* _Q_COMMON_H */ #endif

View File

@ -20,8 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef __CONSOLE_H #ifndef spingle__console_h
#define __CONSOLE_H #define spingle__console_h
// //
// console // console
@ -65,5 +65,4 @@ void LOG_Init(quakeparms_t *parms);
void LOG_Close(void); void LOG_Close(void);
void Con_DebugLog(const char *msg); void Con_DebugLog(const char *msg);
#endif /* __CONSOLE_H */ #endif

View File

@ -19,8 +19,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef _QUAKE_CRC_H #ifndef spingle__crc_h
#define _QUAKE_CRC_H #define spingle__crc_h
/* crc.h */ /* crc.h */
@ -29,5 +29,4 @@ void CRC_ProcessByte(uint16_t *crcvalue, byte data);
uint16_t CRC_Value(uint16_t crcvalue); uint16_t CRC_Value(uint16_t crcvalue);
uint16_t CRC_Block(const byte *start, int32_t count); //johnfitz -- texture crc uint16_t CRC_Block(const byte *start, int32_t count); //johnfitz -- texture crc
#endif /* _QUAKE_CRC_H */ #endif

View File

@ -20,8 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef __CVAR_H__ #ifndef spingle__cvar_h
#define __CVAR_H__ #define spingle__cvar_h
/* /*
cvar_t variables are used to hold scalar or string variables that can cvar_t variables are used to hold scalar or string variables that can
@ -139,5 +139,4 @@ const char *Cvar_CompleteVariable(const char *partial);
// attempts to match a partial variable name for command line completion // attempts to match a partial variable name for command line completion
// returns NULL if nothing fits // returns NULL if nothing fits
#endif /* __CVAR_H__ */ #endif

View File

@ -20,8 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef _QUAKE_DRAW_H #ifndef spingle__draw_h
#define _QUAKE_DRAW_H #define spingle__draw_h
// draw.h -- these are the only functions outside the refresh allowed // draw.h -- these are the only functions outside the refresh allowed
// to touch the vid buffer // to touch the vid buffer
@ -44,5 +44,4 @@ void Draw_NewGame(void);
void GL_SetCanvas(canvastype newcanvas); //johnfitz void GL_SetCanvas(canvastype newcanvas); //johnfitz
#endif /* _QUAKE_DRAW_H */ #endif

View File

@ -24,8 +24,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#ifndef FILENAMES_H #ifndef spingle__filenames_h
#define FILENAMES_H #define spingle__filenames_h
#include <string.h> #include <string.h>
@ -80,4 +80,4 @@ static inline char *FIND_LAST_DIRSEP(const char *_the_path)
} }
#endif #endif
#endif /* FILENAMES_H */ #endif

View File

@ -20,8 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef __MODEL__ #ifndef spingle__gl_model_h
#define __MODEL__ #define spingle__gl_model_h
#include "modelgen.h" #include "modelgen.h"
#include "spritegn.h" #include "spritegn.h"
@ -519,4 +519,4 @@ byte *Mod_NoVisPVS(qmodel_t *model);
void Mod_SetExtraFlags(qmodel_t *mod); void Mod_SetExtraFlags(qmodel_t *mod);
#endif // __MODEL__ #endif

View File

@ -19,8 +19,8 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef _GL_TEXMAN_H #ifndef spingle__gl_texmgr_h
#define _GL_TEXMAN_H #define spingle__gl_texmgr_h
//gl_texmgr.h -- fitzquake's texture manager. manages opengl texture images //gl_texmgr.h -- fitzquake's texture manager. manages opengl texture images
@ -107,5 +107,4 @@ void GL_EnableMultitexture(void); //selects texture unit 1
void GL_Bind(gltexture_t *texture); void GL_Bind(gltexture_t *texture);
void GL_ClearBindings(void); void GL_ClearBindings(void);
#endif /* _GL_TEXMAN_H */ #endif

View File

@ -21,8 +21,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef __GLQUAKE_H #ifndef spingle__glquake_h
#define __GLQUAKE_H #define spingle__glquake_h
void GL_BeginRendering(int32_t *x, int32_t *y, int32_t *width, int32_t *height); void GL_BeginRendering(int32_t *x, int32_t *y, int32_t *width, int32_t *height);
void GL_EndRendering(void); void GL_EndRendering(void);
@ -376,5 +376,4 @@ void R_ScaleView_DeleteTexture(void);
float GL_WaterAlphaForSurface(msurface_t *fa); float GL_WaterAlphaForSurface(msurface_t *fa);
#endif /* __GLQUAKE_H */ #endif

View File

@ -20,8 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef GL_IMAGE_H #ifndef spingle__image_h
#define GL_IMAGE_H #define spingle__image_h
//image.h -- image reading / writing //image.h -- image reading / writing
@ -34,5 +34,4 @@ bool Image_WriteTGA(const char *name, byte *data, int32_t width, int32_t height,
bool Image_WritePNG(const char *name, byte *data, int32_t width, int32_t height, int32_t bpp, bool upsidedown); bool Image_WritePNG(const char *name, byte *data, int32_t width, int32_t height, int32_t bpp, bool upsidedown);
bool Image_WriteJPG(const char *name, byte *data, int32_t width, int32_t height, int32_t bpp, int32_t quality, bool upsidedown); bool Image_WriteJPG(const char *name, byte *data, int32_t width, int32_t height, int32_t bpp, int32_t quality, bool upsidedown);
#endif /* GL_IMAGE_H */ #endif

View File

@ -19,8 +19,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef _QUAKE_INPUT_H #ifndef spingle__input_h
#define _QUAKE_INPUT_H #define spingle__input_h
// input.h -- external (non-keyboard) input devices // input.h -- external (non-keyboard) input devices
@ -53,5 +53,4 @@ void IN_Activate();
// called when the app becomes inactive // called when the app becomes inactive
void IN_Deactivate(bool free_cursor); void IN_Deactivate(bool free_cursor);
#endif /* _QUAKE_INPUT_H */ #endif

View File

@ -20,8 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef _QUAKE_KEYS_H #ifndef spingle__keys_h
#define _QUAKE_KEYS_H #define spingle__keys_h
// //
// these are the key numbers that should be passed to Key_Event // these are the key numbers that should be passed to Key_Event
@ -196,5 +196,4 @@ int32_t Key_GetChatMsgLen(void);
void History_Init(void); void History_Init(void);
void History_Shutdown(void); void History_Shutdown(void);
#endif /* _QUAKE_KEYS_H */ #endif

View File

@ -23,8 +23,8 @@ freely, subject to the following restrictions:
distribution. distribution.
*/ */
#ifndef LODEPNG_H #ifndef spingle__lodepng_h
#define LODEPNG_H #define spingle__lodepng_h
#include <string.h> /*for size_t*/ #include <string.h> /*for size_t*/
@ -769,7 +769,7 @@ TODO:
[ ] allow user to give data (void*) to custom allocator [ ] allow user to give data (void*) to custom allocator
*/ */
#endif /*LODEPNG_H inclusion guard*/ #endif
/* /*
LodePNG Documentation LodePNG Documentation

View File

@ -21,8 +21,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef __MATHLIB_H #ifndef spingle__mathlib_h
#define __MATHLIB_H #define spingle__mathlib_h
// mathlib.h // mathlib.h
@ -103,21 +103,11 @@ int32_t BoxOnPlaneSide(vec3_t emins, vec3_t emaxs, struct mplane_s *plane);
float anglemod(float a); float anglemod(float a);
#define BOX_ON_PLANE_SIDE(emins, emaxs, p) \ #define BOX_ON_PLANE_SIDE(emins, emaxs, p) \
(((p)->type < 3)? \ (((p)->type < 3) \
( \ ? (((p)->dist <= (emins)[(p)->type]) \
((p)->dist <= (emins)[(p)->type])? \ ? 1 \
1 \ : (((p)->dist >= (emaxs)[(p)->type]) ? 2 : 3)) \
: \ : BoxOnPlaneSide((emins), (emaxs), (p)))
( \
((p)->dist >= (emaxs)[(p)->type])?\
2 \
: \
3 \
) \
) \
: \
BoxOnPlaneSide( (emins), (emaxs), (p)))
#endif /* __MATHLIB_H */
#endif

View File

@ -20,8 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef _QUAKE_MENU_H #ifndef spingle__menu_h
#define _QUAKE_MENU_H #define spingle__menu_h
enum m_state_e enum m_state_e
{ {
@ -72,5 +72,4 @@ void M_DrawPic(int32_t x, int32_t y, qpic_t *pic);
void M_DrawTransPic(int32_t x, int32_t y, qpic_t *pic); void M_DrawTransPic(int32_t x, int32_t y, qpic_t *pic);
void M_DrawCheckbox(int32_t x, int32_t y, int32_t on); void M_DrawCheckbox(int32_t x, int32_t y, int32_t on);
#endif /* _QUAKE_MENU_H */ #endif

View File

@ -19,8 +19,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef _MODELGEN_H #ifndef spingle__modelgen_h
#define _MODELGEN_H #define spingle__modelgen_h
// //
// modelgen.h: header file for model generation program // modelgen.h: header file for model generation program
@ -36,12 +36,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define ALIAS_ONSEAM 0x0020 #define ALIAS_ONSEAM 0x0020
// must match definition in spritegn.h
#ifndef SYNCTYPE_T
#define SYNCTYPE_T
typedef enum {ST_SYNC = 0, ST_RAND } synctype_t;
#endif
typedef enum { ALIAS_SINGLE = 0, ALIAS_GROUP } aliasframetype_t; typedef enum { ALIAS_SINGLE = 0, ALIAS_GROUP } aliasframetype_t;
typedef enum { ALIAS_SKIN_SINGLE = 0, ALIAS_SKIN_GROUP } aliasskintype_t; typedef enum { ALIAS_SKIN_SINGLE = 0, ALIAS_SKIN_GROUP } aliasskintype_t;
@ -133,5 +127,4 @@ typedef struct
#define IDPOLYHEADER (('O'<<24)+('P'<<16)+('D'<<8)+'I') #define IDPOLYHEADER (('O'<<24)+('P'<<16)+('D'<<8)+'I')
// little-endian "IDPO" // little-endian "IDPO"
#endif /* _MODELGEN_H */ #endif

View File

@ -28,8 +28,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
whole engine whole engine
*/ */
#ifndef _QUAKE_NET_H #ifndef spingle__quake_net_h
#define _QUAKE_NET_H #define spingle__quake_net_h
#define NET_NAMELEN 64 #define NET_NAMELEN 64
@ -111,5 +111,4 @@ extern bool tcpipAvailable;
extern char my_ipx_address[NET_NAMELEN]; extern char my_ipx_address[NET_NAMELEN];
extern char my_tcpip_address[NET_NAMELEN]; extern char my_tcpip_address[NET_NAMELEN];
#endif /* _QUAKE_NET_H */ #endif

View File

@ -21,8 +21,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#ifndef __NET_DEFS_H #ifndef spingle__net_defs_h
#define __NET_DEFS_H #define spingle__net_defs_h
struct qsockaddr struct qsockaddr
{ {
@ -256,5 +256,4 @@ typedef struct _PollProcedure
void SchedulePollProcedure(PollProcedure *pp, double timeOffset); void SchedulePollProcedure(PollProcedure *pp, double timeOffset);
#endif /* __NET_DEFS_H */ #endif

View File

@ -19,8 +19,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef __NET_DATAGRAM_H #ifndef spingle__net_dgrm_h
#define __NET_DATAGRAM_H #define spingle__net_dgrm_h
int32_t Datagram_Init(void); int32_t Datagram_Init(void);
void Datagram_Listen(bool state); void Datagram_Listen(bool state);
@ -35,5 +35,4 @@ bool Datagram_CanSendUnreliableMessage(qsocket_t *sock);
void Datagram_Close(qsocket_t *sock); void Datagram_Close(qsocket_t *sock);
void Datagram_Shutdown(void); void Datagram_Shutdown(void);
#endif /* __NET_DATAGRAM_H */ #endif

View File

@ -19,8 +19,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef __NET_LOOP_H #ifndef spingle__net_loop_h
#define __NET_LOOP_H #define spingle__net_loop_h
// net_loop.h // net_loop.h
int32_t Loop_Init(void); int32_t Loop_Init(void);
@ -36,5 +36,4 @@ bool Loop_CanSendUnreliableMessage(qsocket_t *sock);
void Loop_Close(qsocket_t *sock); void Loop_Close(qsocket_t *sock);
void Loop_Shutdown(void); void Loop_Shutdown(void);
#endif /* __NET_LOOP_H */ #endif

View File

@ -19,8 +19,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#ifndef __NET_SYS_H__ #ifndef spingle__net_sys_h
#define __NET_SYS_H__ #define spingle__net_sys_h
#include <sys/types.h> #include <sys/types.h>
#include <errno.h> #include <errno.h>
@ -127,5 +127,4 @@ _Static_assert(offsetof(struct sockaddr, sa_family) == SA_FAM_OFFSET,
#endif /* MAXHOSTNAMELEN */ #endif /* MAXHOSTNAMELEN */
#endif /* __NET_SYS_H__ */ #endif

View File

@ -21,8 +21,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef _QUAKE_PLATFORM_H #ifndef spingle__platform_h
#define _QUAKE_PLATFORM_H #define spingle__platform_h
/* platform dependent way to set the window icon */ /* platform dependent way to set the window icon */
void PL_SetWindowIcon(void); void PL_SetWindowIcon(void);
@ -36,5 +36,4 @@ char *PL_GetClipboardData(void);
/* show an error dialog */ /* show an error dialog */
void PL_ErrorDialog(const char *text); void PL_ErrorDialog(const char *text);
#endif /* _QUAKE_PLATFORM_H */ #endif

View File

@ -19,8 +19,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef __PR_COMP_H #ifndef spingle__pr_comp_h
#define __PR_COMP_H #define spingle__pr_comp_h
// this file is shared by quake and qcc // this file is shared by quake and qcc
@ -192,5 +192,4 @@ typedef struct
int32_t entityfields; int32_t entityfields;
} dprograms_t; } dprograms_t;
#endif /* __PR_COMP_H */ #endif

View File

@ -19,8 +19,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef __PROGDEFS_H #ifndef spingle__progdefs_h
#define __PROGDEFS_H #define spingle__progdefs_h
typedef struct typedef struct
{ {
@ -164,4 +164,4 @@ typedef struct
#define PROGHEADER_CRC 5927 #define PROGHEADER_CRC 5927
#endif /* __PROGDEFS_H */ #endif

View File

@ -20,8 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef _QUAKE_PROGS_H #ifndef spingle__progs_h
#define _QUAKE_PROGS_H #define spingle__progs_h
#include "pr_comp.h" /* defs shared with qcc */ #include "pr_comp.h" /* defs shared with qcc */
#include "progdefs.h" /* generated by program cdefs */ #include "progdefs.h" /* generated by program cdefs */
@ -137,5 +137,4 @@ void ED_PrintNum(int32_t ent);
eval_t *GetEdictFieldValue(edict_t *ed, const char *field); eval_t *GetEdictFieldValue(edict_t *ed, const char *field);
#endif /* _QUAKE_PROGS_H */ #endif

View File

@ -20,10 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef _QUAKE_PROTOCOL_H #ifndef spingle__protocol_h
#define _QUAKE_PROTOCOL_H #define spingle__protocol_h
// protocol.h -- communications protocols
#define PROTOCOL_NETQUAKE 15 //johnfitz -- standard quake protocol #define PROTOCOL_NETQUAKE 15 //johnfitz -- standard quake protocol
#define PROTOCOL_FITZQUAKE 666 //johnfitz -- added new protocol for fitzquake 0.85 #define PROTOCOL_FITZQUAKE 666 //johnfitz -- added new protocol for fitzquake 0.85
@ -253,5 +251,4 @@ typedef struct
float upmove; float upmove;
} usercmd_t; } usercmd_t;
#endif /* _QUAKE_PROTOCOL_H */ #endif

View File

@ -17,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#ifndef Q_CTYPE_H #ifndef spingle__q_ctype_h
#define Q_CTYPE_H #define spingle__q_ctype_h
static inline int32_t q_isascii(int32_t c) static inline int32_t q_isascii(int32_t c)
{ {
@ -101,4 +101,4 @@ static inline int32_t q_toupper(int32_t c)
return ((q_islower(c)) ? (c & ~('a' - 'A')) : c); return ((q_islower(c)) ? (c & ~('a' - 'A')) : c);
} }
#endif /* Q_CTYPE_H */ #endif

View File

@ -22,10 +22,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
// sound.h -- client sound i/o functions // sound.h -- client sound i/o functions
#ifndef __QUAKE_SOUND__ #ifndef spingle__q_sound_h
#define __QUAKE_SOUND__ #define spingle__q_sound_h
/* !!! if this is changed, it must be changed in asm_i386.h too !!! */
typedef struct typedef struct
{ {
int32_t left; int32_t left;
@ -186,5 +185,4 @@ wavinfo_t GetWavinfo(const char *name, byte *wav, int32_t wavlength);
void SND_InitScaletable(void); void SND_InitScaletable(void);
#endif /* __QUAKE_SOUND__ */ #endif

View File

@ -26,8 +26,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#ifndef __QSTDINC_H #ifndef spingle__q_stdinc_h
#define __QSTDINC_H #define spingle__q_stdinc_h
#include "arch_def.h" #include "arch_def.h"
@ -101,4 +101,4 @@ typedef vec_t vec5_t[5];
#define arraysizeof(a) (sizeof(a) / sizeof(*a)) #define arraysizeof(a) (sizeof(a) / sizeof(*a))
#define strsizeof(a) (sizeof(a) - 1) #define strsizeof(a) (sizeof(a) - 1)
#endif /* __QSTDINC_H */ #endif

View File

@ -21,8 +21,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef QUAKEDEFS_H #ifndef spingle__quakedef_h
#define QUAKEDEFS_H #define spingle__quakedef_h
// quakedef.h -- primary header for client // quakedef.h -- primary header for client
@ -168,6 +168,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define SOUND_CHANNELS 8 #define SOUND_CHANNELS 8
typedef enum {ST_SYNC = 0, ST_RAND } synctype_t;
typedef struct typedef struct
{ {
const char *basedir; const char *basedir;
@ -287,5 +289,4 @@ extern int32_t current_skill; // skill level for currently loaded leve
extern bool isDedicated; extern bool isDedicated;
#endif /* QUAKEDEFS_H */ #endif

View File

@ -20,8 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef _QUAKE_RENDER_H #ifndef spingle__render_h
#define _QUAKE_RENDER_H #define spingle__render_h
// refresh.h -- public interface to refresh functions // refresh.h -- public interface to refresh functions
@ -174,5 +174,4 @@ void D_DeleteSurfaceCache(void);
void D_InitCaches(void *buffer, int32_t size); void D_InitCaches(void *buffer, int32_t size);
void R_SetVrect(vrect_t *pvrect, vrect_t *pvrectin, int32_t lineadj); void R_SetVrect(vrect_t *pvrect, vrect_t *pvrectin, int32_t lineadj);
#endif /* _QUAKE_RENDER_H */ #endif

View File

@ -20,8 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef _QUAKE_SBAR_H #ifndef spingle__sbar_h
#define _QUAKE_SBAR_H #define spingle__sbar_h
// the status bar is only redrawn if something has changed, but if anything // the status bar is only redrawn if something has changed, but if anything
// does, the entire thing will be redrawn for the next vid.numpages frames. // does, the entire thing will be redrawn for the next vid.numpages frames.
@ -42,5 +42,4 @@ void Sbar_IntermissionOverlay(void);
void Sbar_FinaleOverlay(void); void Sbar_FinaleOverlay(void);
#endif /* _QUAKE_SBAR_H */ #endif

View File

@ -20,8 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef _QUAKE_SCREEN_H #ifndef spingle__screen_h
#define _QUAKE_SCREEN_H #define spingle__screen_h
// screen.h // screen.h
@ -81,5 +81,4 @@ extern cvar_t scr_crosshairscale;
extern int32_t scr_tileclear_updates; //johnfitz extern int32_t scr_tileclear_updates; //johnfitz
#endif /* _QUAKE_SCREEN_H */ #endif

View File

@ -20,8 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef _QUAKE_SERVER_H #ifndef spingle__server_h
#define _QUAKE_SERVER_H #define spingle__server_h
// server.h // server.h
@ -228,5 +228,4 @@ void SV_RunClients(void);
void SV_SaveSpawnparms(); void SV_SaveSpawnparms();
void SV_SpawnServer(const char *server); void SV_SpawnServer(const char *server);
#endif /* _QUAKE_SERVER_H */ #endif

View File

@ -23,8 +23,8 @@
* *
*/ */
#ifndef _SND_CODEC_H_ #ifndef spingle__snd_codec_h
#define _SND_CODEC_H_ #define spingle__snd_codec_h
typedef struct snd_info_s typedef struct snd_info_s
{ {
@ -101,5 +101,4 @@ int32_t S_CodecIsAvailable(uint32_t type);
/* return 1 if available, 0 if codec failed init /* return 1 if available, 0 if codec failed init
* or -1 if no such codec is present. */ * or -1 if no such codec is present. */
#endif /* _SND_CODEC_H_ */ #endif

View File

@ -23,8 +23,8 @@
* *
*/ */
#ifndef _SND_CODECI_H_ #ifndef spingle__snd_codeci_h
#define _SND_CODECI_H_ #define spingle__snd_codeci_h
/* Codec internals */ /* Codec internals */
typedef bool (*CODEC_INIT)(void); typedef bool (*CODEC_INIT)(void);
@ -51,5 +51,4 @@ struct snd_codec_s
bool S_CodecForwardStream(snd_stream_t *stream, uint32_t type); bool S_CodecForwardStream(snd_stream_t *stream, uint32_t type);
/* Forward a stream to another codec of 'type' type. */ /* Forward a stream to another codec of 'type' type. */
#endif /* _SND_CODECI_H_ */ #endif

View File

@ -1,7 +1,7 @@
/* fLaC streaming music support. */ /* fLaC streaming music support. */
#ifndef _SND_FLAC_H_ #ifndef spingle__snd_flac_h
#define _SND_FLAC_H_ 1 #define spingle__snd_flac_h
#if defined(USE_CODEC_FLAC) #if defined(USE_CODEC_FLAC)
@ -9,5 +9,4 @@ extern snd_codec_t flac_codec;
#endif /* USE_CODEC_FLAC */ #endif /* USE_CODEC_FLAC */
#endif /* ! _SND_FLAC_H_ */ #endif

View File

@ -35,10 +35,10 @@
#define S_MIKMOD_initlib(c) MikMod_Init(c) #define S_MIKMOD_initlib(c) MikMod_Init(c)
#endif #endif
#ifndef DMODE_NOISEREDUCTION #if !defined(DMODE_NOISEREDUCTION)
#define DMODE_NOISEREDUCTION 0x1000 /* Low pass filtering */ #define DMODE_NOISEREDUCTION 0x1000 /* Low pass filtering */
#endif #endif
#ifndef DMODE_SIMDMIXER #if !defined(DMODE_SIMDMIXER)
#define DMODE_SIMDMIXER 0x0800 /* enable SIMD mixing */ #define DMODE_SIMDMIXER 0x0800 /* enable SIMD mixing */
#endif #endif

View File

@ -1,7 +1,7 @@
/* module tracker decoding support using libmikmod */ /* module tracker decoding support using libmikmod */
#ifndef _SND_MIKMOD_H_ #ifndef spingle__snd_mikmod_h
#define _SND_MIKMOD_H_ #define spingle__snd_mikmod_h
#if defined(USE_CODEC_MIKMOD) #if defined(USE_CODEC_MIKMOD)
@ -9,5 +9,4 @@ extern snd_codec_t mikmod_codec;
#endif /* USE_CODEC_MIKMOD */ #endif /* USE_CODEC_MIKMOD */
#endif /* ! _SND_MIKMOD_H_ */ #endif

View File

@ -1,7 +1,7 @@
/* MP3 decoding support using libmad or libmpg123. */ /* MP3 decoding support using libmad or libmpg123. */
#ifndef _SND_MP3_H_ #ifndef spingle__snd_mp3_h
#define _SND_MP3_H_ #define spingle__snd_mp3_h
#if defined(USE_CODEC_MP3) #if defined(USE_CODEC_MP3)
@ -9,5 +9,4 @@ extern snd_codec_t mp3_codec;
#endif /* USE_CODEC_MP3 */ #endif /* USE_CODEC_MP3 */
#endif /* ! _SND_MP3_H_ */ #endif

View File

@ -1,7 +1,7 @@
/* Ogg/Opus streaming music support. */ /* Ogg/Opus streaming music support. */
#ifndef _SND_OPUS_H_ #ifndef spingle__snd_opus
#define _SND_OPUS_H_ 1 #define spingle__snd_opus
#if defined(USE_CODEC_OPUS) #if defined(USE_CODEC_OPUS)
@ -9,5 +9,4 @@ extern snd_codec_t opus_codec;
#endif /* USE_CODEC_OPUS */ #endif /* USE_CODEC_OPUS */
#endif /* ! _SND_OPUS_H_ */ #endif

View File

@ -1,8 +1,7 @@
/* Unreal UMX format support */ /* Unreal UMX format support */
#ifndef _SND_UMX_H_ #ifndef spingle__snd_umx_h
#define _SND_UMX_H_ #define spingle__snd_umx_h
extern snd_codec_t umx_codec; extern snd_codec_t umx_codec;
#endif /* ! _SND_UMX_H_ */ #endif

View File

@ -152,7 +152,7 @@ static int32_t S_VORBIS_CodecReadStream(snd_stream_t *stream, int32_t bytes, voi
* the channels are interleaved in the output buffer. * the channels are interleaved in the output buffer.
*/ */
res = ov_read((OggVorbis_File *)stream->priv, ptr, rem, res = ov_read((OggVorbis_File *)stream->priv, ptr, rem,
#ifndef VORBIS_USE_TREMOR #if !defined(VORBIS_USE_TREMOR)
host_bigendian, host_bigendian,
VORBIS_SAMPLEWIDTH, VORBIS_SAMPLEWIDTH,
VORBIS_SIGNED_DATA, VORBIS_SIGNED_DATA,

View File

@ -1,7 +1,7 @@
/* Ogg/Vorbis streaming music support. */ /* Ogg/Vorbis streaming music support. */
#ifndef _SND_VORBIS_H_ #ifndef spingle__snd_vorbis_h
#define _SND_VORBIS_H_ 1 #define spingle__snd_vorbis_h
#if defined(USE_CODEC_VORBIS) #if defined(USE_CODEC_VORBIS)
@ -9,5 +9,4 @@ extern snd_codec_t vorbis_codec;
#endif /* USE_CODEC_VORBIS */ #endif /* USE_CODEC_VORBIS */
#endif /* ! _SND_VORBIS_H_ */ #endif

View File

@ -19,8 +19,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef __SPRITEGEN_H #ifndef spingle__spritegn_h
#define __SPRITEGEN_H #define spingle__spritegn_h
// //
// spritegn.h: header file for sprite generation program // spritegn.h: header file for sprite generation program
@ -49,12 +49,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define SPRITE_VERSION 1 #define SPRITE_VERSION 1
// must match definition in modelgen.h
#ifndef SYNCTYPE_T
#define SYNCTYPE_T
typedef enum {ST_SYNC = 0, ST_RAND } synctype_t;
#endif
// TODO: shorten these? // TODO: shorten these?
typedef struct typedef struct
{ {
@ -102,5 +96,4 @@ typedef struct
#define IDSPRITEHEADER (('P'<<24)+('S'<<16)+('D'<<8)+'I') #define IDSPRITEHEADER (('P'<<24)+('S'<<16)+('D'<<8)+'I')
// little-endian "IDSP" // little-endian "IDSP"
#endif /* __SPRITEGEN_H */ #endif

View File

@ -123,8 +123,8 @@ LICENSE
*/ */
#ifndef INCLUDE_STB_IMAGE_WRITE_H #ifndef spingle__stb_image_write_h
#define INCLUDE_STB_IMAGE_WRITE_H #define spingle__stb_image_write_h
#if defined(STB_IMAGE_WRITE_STATIC) #if defined(STB_IMAGE_WRITE_STATIC)
#define STBIWDEF static #define STBIWDEF static
@ -142,7 +142,7 @@ typedef void stbi_write_func(void *context, void *data, int32_t size);
STBIWDEF int32_t stbi_write_jpg_to_func(stbi_write_func *func, void *context, int32_t x, int32_t y, int32_t comp, const void *data, int32_t quality); STBIWDEF int32_t stbi_write_jpg_to_func(stbi_write_func *func, void *context, int32_t x, int32_t y, int32_t comp, const void *data, int32_t quality);
#endif #endif
#endif//INCLUDE_STB_IMAGE_WRITE_H #endif
#if defined(STB_IMAGE_WRITE_IMPLEMENTATION) #if defined(STB_IMAGE_WRITE_IMPLEMENTATION)

View File

@ -1,11 +1,10 @@
/* header file for BSD strlcat and strlcpy */ /* header file for BSD strlcat and strlcpy */
#ifndef __STRLFUNCS_H #ifndef spingle__strl_fn_h
#define __STRLFUNCS_H #define spingle__strl_fn_h
/* use our own copies of strlcpy and strlcat taken from OpenBSD */ /* use our own copies of strlcpy and strlcat taken from OpenBSD */
extern size_t q_strlcpy(char *dst, const char *src, size_t size); extern size_t q_strlcpy(char *dst, const char *src, size_t size);
extern size_t q_strlcat(char *dst, const char *src, size_t size); extern size_t q_strlcat(char *dst, const char *src, size_t size);
#endif /* __STRLFUNCS_H */ #endif

View File

@ -19,8 +19,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef _QUAKE_SYS_H #ifndef spingle__sys_h
#define _QUAKE_SYS_H #define spingle__sys_h
// sys.h -- non-portable functions // sys.h -- non-portable functions
@ -62,5 +62,4 @@ void Sys_Sleep(uint32_t msecs);
void Sys_SendKeyEvents(void); void Sys_SendKeyEvents(void);
// Perform Key_Event () callbacks until the input que is empty // Perform Key_Event () callbacks until the input que is empty
#endif /* _QUAKE_SYS_H */ #endif

View File

@ -19,8 +19,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef __net_udp_h #ifndef spingle__net_udp_h
#define __net_udp_h #define spingle__net_udp_h
sys_socket_t UDP_Init(void); sys_socket_t UDP_Init(void);
void UDP_Shutdown(void); void UDP_Shutdown(void);
@ -41,5 +41,4 @@ int32_t UDP_AddrCompare(struct qsockaddr *addr1, struct qsockaddr *addr2);
int32_t UDP_GetSocketPort(struct qsockaddr *addr); int32_t UDP_GetSocketPort(struct qsockaddr *addr);
int32_t UDP_SetSocketPort(struct qsockaddr *addr, int32_t port); int32_t UDP_SetSocketPort(struct qsockaddr *addr, int32_t port);
#endif /* __net_udp_h */ #endif

View File

@ -21,8 +21,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef __VID_DEFS_H #ifndef spingle__vid_h
#define __VID_DEFS_H #define spingle__vid_h
// vid.h -- video driver defs // vid.h -- video driver defs
@ -89,5 +89,4 @@ bool VID_HasMouseOrInputFocus(void);
bool VID_IsMinimized(void); bool VID_IsMinimized(void);
void VID_Lock(void); void VID_Lock(void);
#endif /* __VID_DEFS_H */ #endif

View File

@ -20,8 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef _QUAKE_VIEW_H #ifndef spingle__view_h
#define _QUAKE_VIEW_H #define spingle__view_h
extern cvar_t vid_gamma; extern cvar_t vid_gamma;
extern cvar_t vid_contrast; extern cvar_t vid_contrast;
@ -35,5 +35,4 @@ void V_UpdateBlend(void);
float V_CalcRoll(vec3_t angles, vec3_t velocity); float V_CalcRoll(vec3_t angles, vec3_t velocity);
//void V_UpdatePalette (void); //johnfitz //void V_UpdatePalette (void); //johnfitz
#endif /* _QUAKE_VIEW_H */ #endif

View File

@ -20,8 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef _QUAKE_WAD_H #ifndef spingle__wad_h
#define _QUAKE_WAD_H #define spingle__wad_h
//=============== //===============
// TYPES // TYPES
@ -78,5 +78,4 @@ void *W_GetLumpNum(int32_t num);
void SwapPic(qpic_t *pic); void SwapPic(qpic_t *pic);
#endif /* _QUAKE_WAD_H */ #endif

View File

@ -19,8 +19,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef __NET_WINSOCK_H #ifndef spingle__net_wins_h
#define __NET_WINSOCK_H #define spingle__net_wins_h
sys_socket_t WINS_Init(void); sys_socket_t WINS_Init(void);
void WINS_Shutdown(void); void WINS_Shutdown(void);
@ -41,5 +41,4 @@ int32_t WINS_AddrCompare(struct qsockaddr *addr1, struct qsockaddr *addr2);
int32_t WINS_GetSocketPort(struct qsockaddr *addr); int32_t WINS_GetSocketPort(struct qsockaddr *addr);
int32_t WINS_SetSocketPort(struct qsockaddr *addr, int32_t port); int32_t WINS_SetSocketPort(struct qsockaddr *addr, int32_t port);
#endif /* __NET_WINSOCK_H */ #endif

View File

@ -19,8 +19,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef __NET_WINIPX_H #ifndef spingle__net_wipx_h
#define __NET_WINIPX_H #define spingle__net_wipx_h
sys_socket_t WIPX_Init(void); sys_socket_t WIPX_Init(void);
void WIPX_Shutdown(void); void WIPX_Shutdown(void);
@ -41,5 +41,4 @@ int32_t WIPX_AddrCompare(struct qsockaddr *addr1, struct qsockaddr *addr2);
int32_t WIPX_GetSocketPort(struct qsockaddr *addr); int32_t WIPX_GetSocketPort(struct qsockaddr *addr);
int32_t WIPX_SetSocketPort(struct qsockaddr *addr, int32_t port); int32_t WIPX_SetSocketPort(struct qsockaddr *addr, int32_t port);
#endif /* __NET_WINIPX_H */ #endif

View File

@ -1,10 +1,9 @@
#ifndef _QUAKE_RESOURCE_H #ifndef spingle__resource_h
#define _QUAKE_RESOURCE_H #define spingle__resource_h
//{{NO_DEPENDENCIES}} //{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file. // Microsoft Developer Studio generated include file.
// Used by winquake.rc // Used by winquake.rc
//
#define IDS_STRING1 1 #define IDS_STRING1 1
#define IDI_ICON2 1 #define IDI_ICON2 1
#define IDD_DIALOG1 108 #define IDD_DIALOG1 108
@ -12,9 +11,8 @@
#define IDC_PROGRESS 1000 #define IDC_PROGRESS 1000
// Next default values for new objects // Next default values for new objects
//
#if defined(APSTUDIO_INVOKED) #if defined(APSTUDIO_INVOKED)
#ifndef APSTUDIO_READONLY_SYMBOLS #if !defined(APSTUDIO_READONLY_SYMBOLS)
#define _APS_NEXT_RESOURCE_VALUE 113 #define _APS_NEXT_RESOURCE_VALUE 113
#define _APS_NEXT_COMMAND_VALUE 40001 #define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1004 #define _APS_NEXT_CONTROL_VALUE 1004
@ -22,5 +20,4 @@
#endif #endif
#endif #endif
#endif /* _QUAKE_RESOURCE_H */ #endif

View File

@ -6,7 +6,7 @@
* http://www.sockets.com/err_lst1.htm * http://www.sockets.com/err_lst1.htm
*/ */
#ifndef __wsaerr_static #if !defined(__wsaerr_static)
#define __wsaerr_static static #define __wsaerr_static static
#endif /* static */ #endif /* static */

View File

@ -20,8 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef _QUAKE_WORLD_H #ifndef spingle__world_h
#define _QUAKE_WORLD_H #define spingle__world_h
typedef struct typedef struct
{ {
@ -83,5 +83,4 @@ trace_t SV_Move(vec3_t start, vec3_t mins, vec3_t maxs, vec3_t end, int32_t type
bool SV_RecursiveHullCheck(hull_t *hull, int32_t num, float p1f, float p2f, vec3_t p1, vec3_t p2, trace_t *trace); bool SV_RecursiveHullCheck(hull_t *hull, int32_t num, float p1f, float p2f, vec3_t p1, vec3_t p2, trace_t *trace);
#endif /* _QUAKE_WORLD_H */ #endif

View File

@ -20,8 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef __ZZONE_H #ifndef spingle__zone_h
#define __ZZONE_H #define spingle__zone_h
/* /*
memory allocation memory allocation
@ -130,5 +130,4 @@ void *Cache_Alloc(cache_user_t *c, int32_t size, const char *name);
void Cache_Report(void); void Cache_Report(void);
#endif /* __ZZONE_H */ #endif