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