make C code ODR compliant (-fno-common)
This commit is contained in:
parent
a1fe170f38
commit
70b6cc8696
|
|
@ -52,7 +52,6 @@ char name[1024];
|
|||
vec_t microvolume = 1.0;
|
||||
char outbase[32];
|
||||
int entity_num;
|
||||
aas_settings_t aassettings;
|
||||
|
||||
qboolean noprune; //don't prune nodes (bspc.c)
|
||||
qboolean glview; //create a gl view
|
||||
|
|
|
|||
|
|
@ -491,8 +491,8 @@ void HL_SwapBSPFile (qboolean todisk)
|
|||
} //end of the function HL_SwapBSPFile
|
||||
|
||||
|
||||
hl_dheader_t *hl_header;
|
||||
int hl_fileLength;
|
||||
static hl_dheader_t *hl_header;
|
||||
static int hl_fileLength;
|
||||
|
||||
int HL_CopyLump (int lump, void *dest, int size, int maxsize)
|
||||
{
|
||||
|
|
@ -585,8 +585,8 @@ void HL_LoadBSPFile (char *filename, int offset, int length)
|
|||
|
||||
//============================================================================
|
||||
|
||||
FILE *wadfile;
|
||||
hl_dheader_t outheader;
|
||||
static FILE *wadfile;
|
||||
static hl_dheader_t outheader;
|
||||
|
||||
void HL_AddLump (int lumpnum, void *data, int len)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -383,8 +383,8 @@ void Q1_SwapBSPFile (qboolean todisk)
|
|||
}
|
||||
|
||||
|
||||
q1_dheader_t *q1_header;
|
||||
int q1_fileLength;
|
||||
static q1_dheader_t *q1_header;
|
||||
static int q1_fileLength;
|
||||
|
||||
int Q1_CopyLump (int lump, void *dest, int size, int maxsize)
|
||||
{
|
||||
|
|
@ -460,8 +460,8 @@ void Q1_LoadBSPFile(char *filename, int offset, int length)
|
|||
|
||||
//============================================================================
|
||||
|
||||
FILE *q1_wadfile;
|
||||
q1_dheader_t q1_outheader;
|
||||
static FILE *q1_wadfile;
|
||||
static q1_dheader_t q1_outheader;
|
||||
|
||||
void Q1_AddLump (int lumpnum, void *data, int len)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -830,7 +830,7 @@ void Q2_SwapBSPFile (qboolean todisk)
|
|||
} //end of the function Q2_SwapBSPFile
|
||||
|
||||
|
||||
dheader_t *header;
|
||||
static dheader_t *header;
|
||||
|
||||
int Q2_CopyLump (int lump, void *dest, int size, int maxsize)
|
||||
{
|
||||
|
|
@ -948,8 +948,8 @@ void Q2_LoadBSPFileTexinfo (char *filename)
|
|||
|
||||
//============================================================================
|
||||
|
||||
FILE *wadfile;
|
||||
dheader_t outheader;
|
||||
static FILE *wadfile;
|
||||
static dheader_t outheader;
|
||||
|
||||
void Q2_AddLump (int lumpnum, void *data, int len)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -786,7 +786,7 @@ void Sin_SwapBSPFile (qboolean todisk)
|
|||
} //end of the function Sin_SwapBSPFile
|
||||
|
||||
|
||||
sin_dheader_t *header;
|
||||
static sin_dheader_t *header;
|
||||
#ifdef SIN
|
||||
int Sin_CopyLump (int lump, void *dest, int size, int maxsize)
|
||||
{
|
||||
|
|
@ -942,8 +942,8 @@ void Sin_LoadBSPFileTexinfo (char *filename)
|
|||
|
||||
//============================================================================
|
||||
|
||||
FILE *wadfile;
|
||||
sin_dheader_t outheader;
|
||||
static FILE *wadfile;
|
||||
static sin_dheader_t outheader;
|
||||
|
||||
#ifdef SIN
|
||||
void Sin_AddLump (int lumpnum, void *data, int len, int size, int maxsize)
|
||||
|
|
|
|||
|
|
@ -31,6 +31,8 @@ vec3_t texture_reflectivity[MAX_MAP_TEXINFO];
|
|||
===================================================================
|
||||
*/
|
||||
|
||||
void ( *CalcTextureReflectivity )( void );
|
||||
|
||||
/*
|
||||
======================
|
||||
CalcTextureReflectivity_Quake2
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ qboolean noopt;
|
|||
qboolean leaktest;
|
||||
qboolean verboseentities;
|
||||
|
||||
char outbase[32];
|
||||
extern char outbase[32];
|
||||
|
||||
int block_xl = -8, block_xh = 7, block_yl = -8, block_yh = 7;
|
||||
|
||||
|
|
|
|||
|
|
@ -64,11 +64,11 @@ float maxlight = 196;
|
|||
|
||||
float lightscale = 1.0;
|
||||
|
||||
qboolean glview;
|
||||
extern qboolean glview;
|
||||
|
||||
qboolean nopvs;
|
||||
|
||||
char source[1024];
|
||||
extern char source[1024];
|
||||
|
||||
float direct_scale = 0.4;
|
||||
float entity_scale = 1.0;
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ void MakeTnodes( dmodel_t *bm );
|
|||
void MakePatches( void );
|
||||
void SubdividePatches( void );
|
||||
void PairEdges( void );
|
||||
void ( *CalcTextureReflectivity )( void );
|
||||
extern void ( *CalcTextureReflectivity )( void );
|
||||
void CalcTextureReflectivity_Quake2( void );
|
||||
void CalcTextureReflectivity_Heretic2( void );
|
||||
|
||||
|
|
|
|||
|
|
@ -27,8 +27,8 @@
|
|||
int numportals;
|
||||
int portalclusters;
|
||||
|
||||
char inbase[32];
|
||||
char outbase[32];
|
||||
extern char inbase[32];
|
||||
extern char outbase[32];
|
||||
|
||||
portal_t *portals;
|
||||
leaf_t *leafs;
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ float *best;
|
|||
float *comp;
|
||||
float *tcomp;
|
||||
float *bestcomp;
|
||||
float *frames;
|
||||
static float *frames;
|
||||
float *base;
|
||||
|
||||
int MatWidth;
|
||||
|
|
|
|||
|
|
@ -22,12 +22,6 @@
|
|||
|
||||
#include "qdata.h"
|
||||
|
||||
byte *byteimage, *lbmpalette;
|
||||
int byteimagewidth, byteimageheight;
|
||||
|
||||
qboolean TrueColorImage;
|
||||
int longimagewidth, longimageheight;
|
||||
|
||||
char book_prefix[1024];
|
||||
byte buffer[640 * 480];
|
||||
unsigned long bufferl[640 * 480];
|
||||
|
|
|
|||
|
|
@ -611,7 +611,7 @@ enum
|
|||
MATERIAL_WOOD,
|
||||
};
|
||||
|
||||
materialtype_t *materialtypes;
|
||||
extern materialtype_t *materialtypes;
|
||||
|
||||
void QFile_ReadMaterialTypes( char* filename );
|
||||
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ int new_num_verts[NUM_CLUSTERS + 1];
|
|||
|
||||
//================================================================
|
||||
|
||||
frame_t g_frames[MAX_FRAMES];
|
||||
static frame_t g_frames[MAX_FRAMES];
|
||||
//frame_t *g_frames;
|
||||
|
||||
static dmdl_t model;
|
||||
|
|
|
|||
|
|
@ -22,13 +22,6 @@
|
|||
|
||||
#include "qdata.h"
|
||||
|
||||
byte *byteimage, *lbmpalette;
|
||||
int byteimagewidth, byteimageheight;
|
||||
|
||||
qboolean TrueColorImage;
|
||||
unsigned *longimage;
|
||||
int longimagewidth, longimageheight;
|
||||
|
||||
char pic_prefix[1024];
|
||||
extern char *g_outputDir;
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
#define MAX_SPRFRAMES MAX_MD2SKINS
|
||||
|
||||
dsprite_t sprite;
|
||||
dsprframe_t frames[MAX_SPRFRAMES];
|
||||
static dsprframe_t frames[MAX_SPRFRAMES];
|
||||
|
||||
byte *byteimage, *lbmpalette;
|
||||
int byteimagewidth, byteimageheight;
|
||||
|
|
@ -41,7 +41,6 @@ void FinishSprite( void );
|
|||
void Cmd_Spritename( void );
|
||||
|
||||
char spr_prefix[1024];
|
||||
char pic_prefix[1024];
|
||||
|
||||
extern char *g_outputDir;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user