2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-01 01:25:38 +03:00

Merge pull request #371 from Sh1ft0x0EF/coderev-pragma

Use pragma once for headers.
This commit is contained in:
Lev 2017-02-18 20:49:01 +05:00 committed by GitHub
commit 8960c2ec5e
68 changed files with 88 additions and 394 deletions

View File

@ -1,5 +1,4 @@
#ifndef __APIPROXY__
#define __APIPROXY__
#pragma once
#include "netadr.h"
#include "Sequence.h"
@ -934,6 +933,3 @@ typedef struct validator_s
#define k_nChecksumCompensator 0x36a8f09c // Don't change this value: it's hardcorded in cdll_int.cpp,
#define k_nModuleVersionCur 0x43210004
#endif // __APIPROXY__

View File

@ -462,4 +462,3 @@ extern void NullDst(void);
#ifdef __cplusplus
}
#endif

View File

@ -26,11 +26,7 @@
*
*/
#ifndef CLIENT_H
#define CLIENT_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "common.h"
@ -351,5 +347,3 @@ int GetTimesTutorMessageShown(int id);
void RegisterTutorMessageShown(int mid);
void ResetTutorMessageDecayData(void);
void SetCareerAudioState(int state);
#endif // CLIENT_H

View File

@ -25,6 +25,7 @@
* version.
*
*/
#pragma once
#include "maintypes.h"

View File

@ -26,11 +26,7 @@
*
*/
#ifndef CMODEL_H
#define CMODEL_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "model.h"
@ -63,5 +59,3 @@ unsigned char *CM_LeafPAS(int leafnum);
void CM_FreePAS(void);
void CM_CalcPAS(model_t *pModel);
qboolean CM_HeadnodeVisible(mnode_t *node, unsigned char *visbits, int *first_visible_leafnum);
#endif // CMODEL_H

View File

@ -26,18 +26,11 @@
*
*/
#ifndef COM_CUSTOM_H
#define COM_CUSTOM_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "custom.h"
void COM_ClearCustomizationList(customization_t *pHead, qboolean bCleanDecals);
qboolean COM_CreateCustomization(customization_t *pListHead, resource_t *pResource, int playernumber, int flags, customization_t **pCustomization, int *nLumps);
int COM_SizeofResourceList(resource_t *pList, resourceinfo_t *ri);
#endif // COM_CUSTOM_H

View File

@ -1,4 +1,3 @@
#pragma once
/*
*
* This program is free software; you can redistribute it and/or modify it
@ -26,6 +25,9 @@
* version.
*
*/
#pragma once
#include "common_rehlds.h"
#include "bspfile.h"
#include "FileSystem.h"

View File

@ -26,11 +26,7 @@
*
*/
#ifndef CONSISTENCY_H
#define CONSISTENCY_H
#ifdef _WIN32
#pragma once
#endif
#define MAX_CONSISTENCY_LIST 512
@ -44,5 +40,3 @@ typedef struct consistency_s
float mins[3];
float maxs[3];
} consistency_t;
#endif // CONSISTENCY_H

View File

@ -12,8 +12,11 @@
* without written permission from Valve LLC.
*
****/
// Customization.h
#pragma once
#include "custom.h"
void COM_ClearCustomizationList( struct customization_s *pHead, qboolean bCleanDecals);

View File

@ -26,17 +26,12 @@
*
*/
#ifndef CVAR_H
#define CVAR_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "cvardef.h"
#include "FileSystem.h"
#define MAX_CVAR_VALUE 1024
#ifdef HOOK_ENGINE
@ -67,5 +62,3 @@ void Cmd_CvarList_f(void);
NOXREF int Cvar_CountServerVariables(void);
void Cvar_UnlinkExternals(void);
void Cvar_CmdInit(void);
#endif // CVAR_H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef DECAL_H
#define DECAL_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "model.h"
@ -99,5 +95,3 @@ qboolean Draw_ValidateCustomLogo(cachewad_t *wad, unsigned char *data, lumpinfo_
qboolean Draw_CacheLoadFromCustom(char *clean, cachewad_t *wad, void *raw, int rawsize, cachepic_t *pic);
NOXREF int Draw_CacheIndex(cachewad_t *wad, char *path);
NOXREF int Draw_CacheFindIndex(cachewad_t *wad, char *path);
#endif // DECAL_H

View File

@ -25,6 +25,7 @@
* version.
*
*/
#pragma once
#include "maintypes.h"

View File

@ -26,11 +26,7 @@
*
*/
#ifndef DELTA_PACKET_H
#define DELTA_PACKET_H
#ifdef _WIN32
#pragma once
#endif
#include "entity_state.h"
@ -40,5 +36,3 @@ typedef struct packet_entities_s
unsigned char flags[32];
entity_state_t *entities;
} packet_entities_t;
#endif // DELTA_PACKET_H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef EVENT_H
#define EVENT_H
#ifdef _WIN32
#pragma once
#endif
typedef struct event_s
{
@ -39,5 +35,3 @@ typedef struct event_s
int filesize;
const char *pszScript;
} event_t;
#endif // EVENT_H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef FILESYSTEM__H
#define FILESYSTEM__H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "iregistry.h"
@ -67,5 +63,3 @@ int FileSystem_SetGameDirectory(const char *pDefaultDir, const char *pGameDir);
int FileSystem_AddFallbackGameDir(const char *pGameDir);
int FileSystem_Init(char *basedir, void *voidfilesystemFactory);
void FileSystem_Shutdown(void);
#endif // FILESYSTEM__H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef _FILESYSTEM_INTERNAL_H
#define _FILESYSTEM_INTERNAL_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "FileSystem.h"
@ -88,6 +84,3 @@ void FS_ReleaseReadBuffer(FileHandle_t file, void *buffer);
void FS_Unlink(const char *filename);
void FS_Rename(const char *originalName, const char *newName);
void *FS_LoadLibrary(const char *dllName);
#endif // _FILESYSTEM_INTERNAL_H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef FILTER_H
#define FILTER_H
#ifdef _WIN32
#pragma once
#endif
#include "userid.h"
@ -62,5 +58,3 @@ typedef struct userfilter_s
float banEndTime;
float banTime;
} userfilter_t;
#endif // FILTER_H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef HASHPAK_H
#define HASHPAK_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "custom.h"
@ -101,5 +97,3 @@ NOXREF char *HPAK_GetItem(int item);
void HPAK_CheckSize(char *pakname);
void HPAK_ValidatePak(char *fullpakname);
void HPAK_CheckIntegrity(char *pakname);
#endif // HASHPAK_H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef HOST_H
#define HOST_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "filesystem_internal.h"
@ -150,5 +146,3 @@ qboolean Host_IsServerActive(void);
void Host_Version(void);
int Host_Init(quakeparms_t *parms);
void Host_Shutdown(void);
#endif // HOST_H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef HOST_CMD_H
#define HOST_CMD_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "eiface.h"
@ -212,5 +208,3 @@ void Host_Crash_f(void);
void Host_InitCommands(void);
void SV_CheckBlendingInterface(void);
void SV_CheckSaveGameCommentInterface(void);
#endif // HOST_CMD_H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef IENGINE_H
#define IENGINE_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
@ -69,5 +65,3 @@ public:
};
extern IEngine *eng;
#endif // IENGINE_H

View File

@ -26,17 +26,13 @@
*
*/
#ifndef INFO__H
#define INFO__H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
// Max key/value length (with a NULL char)
#define MAX_KV_LEN 127
// Key + value + 2 x slash + NULL
#define MAX_INFO_STRING 256
@ -60,5 +56,3 @@ qboolean Info_IsValid(const char *s);
#ifdef REHLDS_FIXES
void Info_CollectFields(char *destInfo, const char *srcInfo, const char *collectedKeysOfFields);
#endif
#endif // INFO__H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef INST_BASELINE_H
#define INST_BASELINE_H
#ifdef _WIN32
#pragma once
#endif
#include "entity_state.h"
@ -42,5 +38,3 @@ typedef struct extra_baselines_s
int classname[NUM_BASELINES];
entity_state_t baseline[NUM_BASELINES];
} extra_baselines_t;
#endif // INST_BASELINE_H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef IPRATELIMIT_H
#define IPRATELIMIT_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "net.h"
@ -70,5 +66,3 @@ private:
};
//extern bool (__fastcall *pCIPRateLimit__CheckIP)(CIPRateLimit *obj, int none, netadr_t adr);
#endif // IPRATELIMIT_H

View File

@ -25,6 +25,7 @@
* version.
*
*/
#pragma once
#include "maintypes.h"
@ -39,8 +40,4 @@ extern int(*pCheckIP)(netadr_t adr);
extern class CIPRateLimit rateChecker;
int CheckIP(netadr_t adr);

View File

@ -26,11 +26,7 @@
*
*/
#ifndef L_STUDIO_H
#define L_STUDIO_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "studio_rehlds.h"
@ -47,7 +43,4 @@
//extern int giTextureSize;
void Mod_LoadStudioModel(model_t * mod, void * buffer);
#endif // L_STUDIO_H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef MATHLIB_E_H
#define MATHLIB_E_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "model.h"
@ -49,7 +45,6 @@
#define vec3_origin (*pvec3_origin)
#endif // HOOK_ENGINE
extern vec3_t vec3_origin;
static const int nanmask = 0x7F800000;
@ -146,5 +141,3 @@ void R_ConcatTransforms(float in1[3][4], float in2[3][4], float out[3][4]);
NOBODY void FloorDivMod(double numer, double denom, int *quotient, int *rem);
NOBODY int GreatestCommonDivisor(int i1, int i2);
NOBODY fixed16_t Invert24To16(fixed16_t val);
#endif // MATHLIB_E_H

View File

@ -26,12 +26,7 @@
*
*/
#ifndef MEM__H
#define MEM__H
#ifdef _WIN32
#pragma once
#endif
void *Mem_Malloc(size_t size);
void *Mem_ZeroMalloc(size_t size);
@ -39,5 +34,3 @@ void *Mem_Realloc(void *memblock, size_t size);
void *Mem_Calloc(int num, size_t size);
char *Mem_Strdup(const char *strSource);
void Mem_Free(void *p);
#endif // MEM__H

View File

@ -25,6 +25,7 @@
* version.
*
*/
#pragma once
/*

View File

@ -26,11 +26,7 @@
*
*/
#ifndef MODINFO_H
#define MODINFO_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
@ -56,5 +52,3 @@ typedef struct modinfo_s
int num_edicts;
qboolean clientcrccheck;
} modinfo_t;
#endif // MODINFO_H

View File

@ -26,18 +26,13 @@
*
*/
#ifndef GS_NET_H
#define GS_NET_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "common.h"
#include "enums.h"
#include "netadr.h"
#define PROTOCOL_VERSION 48
// MAX_CHALLENGES is made large to prevent a denial
@ -403,5 +398,3 @@ typedef struct netchan_s
#else // REHLDS_FIXES
#define Con_NetPrintf Con_Printf
#endif // REHLDS_FIXES
#endif // GS_NET_H

View File

@ -26,17 +26,12 @@
*
*/
#ifndef NET_CHAN_H
#define NET_CHAN_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "cvar.h"
#include "net.h"
#ifdef HOOK_ENGINE
#define gDownloadFile (*pgDownloadFile)
@ -63,8 +58,6 @@ extern cvar_t net_chokeloopback;
extern cvar_t sv_filetransfercompression;
extern cvar_t sv_filetransfermaxsize;
void Netchan_UnlinkFragment(fragbuf_t *buf, fragbuf_t **list);
void Netchan_OutOfBand(netsrc_t sock, netadr_t adr, int length, byte *data);
void Netchan_OutOfBandPrint(netsrc_t sock, netadr_t adr, char *format, ...);
@ -100,5 +93,3 @@ NOXREF void Netchan_UpdateProgress(netchan_t *chan);
void Netchan_Init(void);
NOXREF qboolean Netchan_CompressPacket(sizebuf_t *chan);
NOXREF qboolean Netchan_DecompressPacket(sizebuf_t *chan);
#endif // NET_CHAN_H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef NET_WS_H
#define NET_WS_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "enums.h"
@ -269,5 +265,3 @@ void NET_ClearLagData(qboolean bClient, qboolean bServer);
void NET_Shutdown(void);
qboolean NET_JoinGroup(netsrc_t sock, netadr_t& addr);
qboolean NET_LeaveGroup(netsrc_t sock, netadr_t& addr);
#endif // NET_WS_H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef PMOVE_H
#define PMOVE_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "cvar.h"
@ -61,5 +57,3 @@ extern movevars_t movevars;
qboolean PM_AddToTouched(pmtrace_t tr, vec_t *impactvelocity);
void PM_StuckTouch(int hitent, pmtrace_t *ptraceresult);
void PM_Init(playermove_t *ppm);
#endif // PMOVE_H

View File

@ -26,18 +26,13 @@
*
*/
#ifndef PMOVETST_H
#define PMOVETST_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "pm_defs.h"
#include "model.h"
#include "world.h"
#ifdef HOOK_ENGINE
#define g_contentsresult (*pg_contentsresult)
#define box_hull_0 (*pbox_hull_0)
@ -50,8 +45,6 @@ extern hull_t box_hull_0;
extern box_clipnodes_t box_clipnodes_0;
extern box_planes_t box_planes_0;
float PM_TraceModel(physent_t *pEnt, vec_t *start, vec_t *end, trace_t *trace);
void PM_GetModelBounds(struct model_s *mod, vec_t *mins, vec_t *maxs);
int PM_GetModelType(struct model_s *mod);
@ -73,5 +66,3 @@ pmtrace_t PM_PlayerTraceEx(vec_t *start, vec_t *end, int traceFlags, int(*pfnIgn
struct pmtrace_s *PM_TraceLine(float *start, float *end, int flags, int usehull, int ignore_pe);
struct pmtrace_s *PM_TraceLineEx(float *start, float *end, int flags, int usehull, int(*pfnIgnore)(physent_t *));
qboolean PM_RecursiveHullCheck(hull_t *hull, int num, float p1f, float p2f, const vec_t *p1, const vec_t *p2, pmtrace_t *trace);
#endif // PMOVETST_H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef PR_CMDS_H
#define PR_CMDS_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "const.h"
@ -39,9 +35,9 @@
#include "common.h"
#include "server.h"
#define MAX_RANDOM_RANGE 0x7FFFFFFFUL
// TODO: Make enum with bits
#define AMBIENT_SOUND_STATIC 0 // medium radius attenuation
#define AMBIENT_SOUND_EVERYWHERE 1
#define AMBIENT_SOUND_SMALLRADIUS 2
@ -215,5 +211,3 @@ void QueryClientCvarValue(const edict_t *player, const char *cvarName);
void QueryClientCvarValue2(const edict_t *player, const char *cvarName, int requestID);
int hudCheckParm(char *parm, char **ppnext);
int EngCheckParm(const char *pchCmdLineToken, char **pchNextVal);
#endif // PR_CMDS_H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef PR_DLLS_H
#define PR_DLLS_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "eiface.h"
@ -51,5 +47,3 @@ typedef struct extensiondll_s
typedef void(*ENTITYINIT)(struct entvars_s *);
typedef void(*DISPATCHFUNCTION)(struct entvars_s *, void *);
typedef void(*FIELDIOFUNCTION)(SAVERESTOREDATA *, const char *, void *, TYPEDESCRIPTION *, int);
#endif // PR_DLLS_H

View File

@ -26,18 +26,13 @@
*
*/
#ifndef PR_EDICT_H
#define PR_EDICT_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "cvar.h"
#include "pm_defs.h"
#include "progdefs.h"
void ED_ClearEdict(edict_t *e);
edict_t *ED_Alloc(void);
void ED_Free(edict_t *ed);
@ -71,5 +66,3 @@ void CVarRegister(cvar_t *pCvar);
int AllocEngineString(const char *szValue);
void SaveSpawnParms(edict_t *pEdict);
void *GetModelPtr(edict_t *pEdict);
#endif // PR_EDICT_H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef SERVER_H
#define SERVER_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
@ -81,6 +77,7 @@
#define MSG_FL_ONE BIT(7) // Send to single client
#define RESOURCE_INDEX_BITS 12
#ifdef REHLDS_FIXES
#define RESOURCE_MAX_COUNT (1 << RESOURCE_INDEX_BITS)
#endif // REHLDS_FIXES
@ -804,5 +801,3 @@ char *SV_GetClientIDString(client_t *client);
int GetGameAppID(void);
qboolean IsGameSubscribed(const char *gameName);
NOXREF qboolean BIsValveGame(void);
#endif // SERVER_H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef SERVER_STATIC_H
#define SERVER_STATIC_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "netadr.h"
@ -75,5 +71,3 @@ typedef struct server_static_s
server_stats_t stats;
qboolean isSecure;
} server_static_t;
#endif // SERVER_STATIC_H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef SOUND_H
#define SOUND_H
#ifdef _WIN32
#pragma once
#endif
#include "quakedef.h"
@ -69,5 +65,3 @@ void Voice_RegisterCvars();
void Voice_Deinit();
void Voice_Idle(float frametime);
qboolean Voice_RecordStop();
#endif // SOUND_H

View File

@ -14,7 +14,9 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#pragma once
#include "studio.h"
#include "model.h"
#include "r_studioint.h"

View File

@ -26,11 +26,7 @@
*
*/
#ifndef SV_LOG_H
#define SV_LOG_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
@ -54,5 +50,3 @@ void SV_SetLogAddress_f(void);
void SV_AddLogAddress_f(void);
void SV_DelLogAddress_f(void);
void SV_ServerLog_f(void);
#endif // SV_LOG_H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef SV_MOVE_H
#define SV_MOVE_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "server.h"
@ -58,5 +54,3 @@ NOXREF qboolean SV_CloseEnough(edict_t *ent, edict_t *goal, float dist);
NOXREF qboolean SV_ReachedGoal(edict_t *ent, vec_t *vecGoal, float flDist);
void SV_NewChaseDir2(edict_t *actor, vec_t *vecGoal, float dist);
void SV_MoveToOrigin_I(edict_t *ent, const float *pflGoal, float dist, int iStrafe);
#endif // SV_MOVE_H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef SV_PHYS_H
#define SV_PHYS_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "model.h"
@ -84,5 +80,3 @@ void PF_WaterMove(edict_t *pSelf);
void SV_Physics_Step(edict_t *ent);
void SV_Physics(void);
trace_t SV_Trace_Toss(edict_t *ent, edict_t *ignore);
#endif // SV_PHYS_H

View File

@ -26,16 +26,10 @@
*
*/
#ifndef SV_PMOVE_H
#define SV_PMOVE_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
void PM_SV_PlaybackEventFull(int flags, int clientindex, unsigned short eventindex, float delay, float *origin, float *angles, float fparam1, float fparam2, int iparam1, int iparam2, int bparam1, int bparam2);
void PM_SV_PlaySound(int channel, const char *sample, float volume, float attenuation, int fFlags, int pitch);
const char *PM_SV_TraceTexture(int ground, vec_t *vstart, vec_t *vend);
#endif // SV_PMOVE_H

View File

@ -25,6 +25,7 @@
* version.
*
*/
#pragma once
#include "maintypes.h"

View File

@ -26,11 +26,7 @@
*
*/
#ifndef SV_STEAM3_H
#define SV_STEAM3_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "common.h"
@ -167,5 +163,3 @@ CSteam3Server *Steam3Server();
CSteam3Client *Steam3Client();
void Master_SetMaster_f();
void Steam_HandleIncomingPacket(byte *data, int len, int fromip, uint16 port);
#endif // SV_STEAM3_H

View File

@ -26,15 +26,10 @@
*
*/
#ifndef SV_UPLD__H
#define SV_UPLD__H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
qboolean SV_CheckFile(sizebuf_t *msg, char *filename);
void SV_ClearResourceLists(client_t *cl);
void SV_CreateCustomizationList(client_t *pHost);
@ -50,5 +45,3 @@ qboolean SV_UploadComplete(client_t *cl);
void SV_BatchUploadRequest(client_t *cl);
qboolean SV_RequestMissingResources(void);
void SV_ParseResourceList(client_t *pSenderClient);
#endif // SV_UPLD__H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef SV_USER_H
#define SV_USER_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "server.h"
@ -151,5 +147,3 @@ qboolean SV_SetPlayer(int idnum);
void SV_ShowServerinfo_f(void);
void SV_SendEnts_f(void);
void SV_FullUpdate_f(void);
#endif // SV_USER_H

View File

@ -25,6 +25,7 @@
* version.
*
*/
#pragma once
#include "maintypes.h"

View File

@ -26,11 +26,7 @@
*
*/
#ifndef SYS_DLL2_H
#define SYS_DLL2_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "interface.h"
@ -120,5 +116,3 @@ void ClearIOStates();
// TODO: Needs rechecking
//NOXREF int BuildMapCycleListHints(char **hints);
#endif // SYS_DLL2_H

View File

@ -28,7 +28,6 @@
#pragma once
#include "maintypes.h"
#include "igame.h"
#include "iengine.h"

View File

@ -26,11 +26,7 @@
*
*/
#ifndef TEXTURES_H
#define TEXTURES_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "wad.h"
@ -80,5 +76,3 @@ void TEX_CleanupWadInfo(void);
int TEX_LoadLump(char *name, unsigned char *dest);
int FindMiptex(char *name);
void TEX_AddAnimatingTextures(void);
#endif // TEXTURES_H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef TMESSAGE_H
#define TMESSAGE_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
@ -83,5 +79,3 @@ NOXREF void TextMessageParse(unsigned char *pMemFile, int fileSize);
NOXREF void TextMessageShutdown(void);
NOXREF void TextMessageInit(void);
NOXREF client_textmessage_t *TextMessageGet(const char *pName);
#endif // TMESSAGE_H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef TRACEINIT_H
#define TRACEINIT_H
#ifdef _WIN32
#pragma once
#endif
#include "utlvector.h"
@ -79,5 +75,3 @@ extern CInitTracker g_InitTracker;
void TraceInit(const char *i, const char *s, int listnum);
void TraceShutdown(const char *s, int listnum);
#endif // TRACEINIT_H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef UNICODE_STR_TOOLS_H
#define UNICODE_STR_TOOLS_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
@ -64,5 +60,3 @@ char *Q_UnicodeAdvance(char *pUTF8, int nChars);
qboolean Q_StripUnprintableAndSpace(char *pch);;
qboolean V_UTF8ToUChar32(const char *pUTF8_, uchar32 *uValueOut);
int Q_UnicodeRepair(char *pUTF8);
#endif // UNICODE_STR_TOOLS_H

View File

@ -26,7 +26,6 @@
*
*/
#pragma once
#include "userid_rehlds.h"

View File

@ -26,11 +26,7 @@
*
*/
#ifndef USERMSG_H
#define USERMSG_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "quakedef.h"
@ -43,5 +39,3 @@ typedef struct _UserMsg
struct _UserMsg *next;
pfnUserMsgHook pfn;
} UserMsg;
#endif // USERMSG_H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef WAD_H
#define WAD_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
@ -87,5 +83,3 @@ void *W_GetLumpName(int wad, char *name);
NOXREF void *W_GetLumpNum(int wad, int num);
void W_Shutdown(void);
void SwapPic(qpic_t *pic);
#endif // WAD_H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef WORLD_H
#define WORLD_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "model.h"
@ -118,5 +114,3 @@ trace_t SV_Move(const vec_t *start, const vec_t *mins, const vec_t *maxs, const
#ifdef REHLDS_OPT_PEDANTIC
trace_t SV_Move_Point(const vec_t *start, const vec_t *end, int type, edict_t *passedict);
#endif // REHLDS_OPT_PEDANTIC
#endif // WORLD_H

View File

@ -26,11 +26,7 @@
*
*/
#ifndef ZONE_H
#define ZONE_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
@ -106,5 +102,3 @@ void *Cache_Alloc(cache_user_t *c, int size, char *name);
void Memory_Init(void *buf, int size);
NOXREF NOBODY void Cache_Print_Models_And_Totals(void);
NOXREF NOBODY void Cache_Print_Sounds_And_Totals(void);
#endif // ZONE_H