]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
gave names to nearly all structs and enums which should make for better C++ error...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 21 Oct 2005 06:08:25 +0000 (06:08 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 21 Oct 2005 06:08:25 +0000 (06:08 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5750 d7cf8633-e32d-0410-b094-e92efae38249

46 files changed:
bspfile.h
cl_particles.c
client.h
clprogdefs.h
common.c
cvar.h
dpvsimpledecode.c
fs.c
gl_backend.c
gl_backend.h
gl_textures.c
image.c
input.h
keys.c
keys.h
mathlib.h
menu.c
model_alias.h
model_brush.c
model_brush.h
model_shared.h
modelgen.h
mprogdefs.h
netconn.h
pr_comp.h
pr_edict.c
pr_exec.c
progdefs.h
protocol.c
protocol.h
qtypes.h
r_light.c
r_lightning.c
r_textures.h
sbar.c
server.h
snd_main.h
snd_mix.c
snd_wav.c
snd_win.c
spritegn.h
sys.h
ui.h
vid.h
wad.c
wad.h

index c9697b360554228a1d45f8c0bdee4a87d2900e63..0755c03029b8b0a1917ca0252fdcaeb344a49306 100644 (file)
--- a/bspfile.h
+++ b/bspfile.h
@@ -33,7 +33,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #define BSPVERSION     29
 #define MCBSPVERSION 2
 
-typedef struct
+typedef struct lump_s
 {
        int             fileofs, filelen;
 } lump_t;
@@ -55,14 +55,14 @@ typedef struct
 #define        LUMP_MODELS             14
 #define        HEADER_LUMPS    15
 
-typedef struct
+typedef struct hullinfo_s
 {
        int                     numhulls;
        int                     filehulls;
        float           hullsizes[MAX_MAP_HULLS][2][3];
 } hullinfo_t;
 
-typedef struct
+typedef struct dmodel_s
 {
        float           mins[3], maxs[3];
        float           origin[3];
@@ -71,13 +71,13 @@ typedef struct
        int                     firstface, numfaces;
 } dmodel_t;
 
-typedef struct
+typedef struct dheader_s
 {
        int                     version;
        lump_t          lumps[HEADER_LUMPS];
 } dheader_t;
 
-typedef struct
+typedef struct dmiptexlump_s
 {
        int                     nummiptex;
        int                     dataofs[4];             // [nummiptex]
@@ -92,7 +92,7 @@ typedef struct miptex_s
 } miptex_t;
 
 
-typedef struct
+typedef struct dvertex_s
 {
        float   point[3];
 } dvertex_t;
@@ -108,7 +108,7 @@ typedef struct
 #define        PLANE_ANYY              4
 #define        PLANE_ANYZ              5
 
-typedef struct
+typedef struct dplane_s
 {
        float   normal[3];
        float   dist;
@@ -218,7 +218,7 @@ typedef struct
 */
 
 
-typedef struct
+typedef struct dnode_s
 {
        int                     planenum;
        short           children[2];    // negative numbers are -(leafs+1), not nodes
@@ -228,14 +228,14 @@ typedef struct
        unsigned short  numfaces;       // counting both sides
 } dnode_t;
 
-typedef struct
+typedef struct dclipnode_s
 {
        int                     planenum;
        short           children[2];    // negative numbers are contents
 } dclipnode_t;
 
 
-typedef struct
+typedef struct texinfo_s
 {
        float           vecs[2][4];             // [s/t][xyz offset]
        int                     miptex;
@@ -245,13 +245,13 @@ typedef struct
 
 // note that edge 0 is never used, because negative edge nums are used for
 // counterclockwise use of the edge in a face
-typedef struct
+typedef struct dedge_s
 {
        unsigned short  v[2];           // vertex numbers
 } dedge_t;
 
 #define        MAXLIGHTMAPS    4
-typedef struct
+typedef struct dface_s
 {
        // LordHavoc: changed from short to unsigned short for q2 support
        unsigned short  planenum;
@@ -277,7 +277,7 @@ typedef struct
 
 // leaf 0 is the generic CONTENTS_SOLID leaf, used for all solid areas
 // all other leafs need visibility info
-typedef struct
+typedef struct dleaf_s
 {
        int                     contents;
        int                     visofs;                         // -1 = no visibility info
index 775df5e4b3b44c7e6cd774d70b0eafe7967bede5..f4c0f7522c0d2e828545bad67786b8ff137d7b49 100644 (file)
@@ -1522,7 +1522,7 @@ void CL_MoveParticles (void)
 
 #define MAX_PARTICLETEXTURES 64
 // particletexture_t is a rectangle in the particlefonttexture
-typedef struct
+typedef struct particletexture_s
 {
        rtexture_t *texture;
        float s1, t1, s2, t2;
index 338f2ba641273c6f1191c13c156dba4c6f784abe..3781bd3f18025df9f2f9af4fa8a5f5c0e074bb87 100644 (file)
--- a/client.h
+++ b/client.h
@@ -57,7 +57,7 @@ typedef struct effect_s
 }
 cl_effect_t;
 
-typedef struct
+typedef struct beam_s
 {
        int             entity;
        // draw this as lightning polygons, or a model?
@@ -332,7 +332,7 @@ typedef struct entity_s
 }
 entity_t;
 
-typedef struct
+typedef struct usercmd_s
 {
        vec3_t  viewangles;
 
@@ -356,20 +356,20 @@ typedef struct
        int sequence;
 } usercmd_t;
 
-typedef struct
+typedef struct lightstyle_s
 {
        int             length;
        char    map[MAX_STYLESTRING];
 } lightstyle_t;
 
-typedef struct
+typedef struct scoreboard_s
 {
        char    name[MAX_SCOREBOARDNAME];
        int             frags;
        int             colors; // two 4 bit fields
 } scoreboard_t;
 
-typedef struct
+typedef struct cshift_s
 {
        int             destcolor[3];
        int             percent;                // 0-256
@@ -406,7 +406,7 @@ cactive_t;
 // the client_static_t structure is persistent through an arbitrary number
 // of server connections
 //
-typedef struct
+typedef struct client_static_s
 {
        cactive_t state;
 
@@ -474,7 +474,7 @@ client_movementqueue_t;
 // the client_state_t structure is wiped completely at every
 // server signon
 //
-typedef struct
+typedef struct client_state_s
 {
        // true if playing in a local game and no one else is connected
        int islocalgame;
@@ -735,7 +735,7 @@ extern cvar_t cl_beams_lightatend;
 //
 // cl_input
 //
-typedef struct
+typedef struct kbutton_s
 {
        int             down[2];                // key nums holding it down
        int             state;                  // low bit is down state
@@ -865,7 +865,7 @@ void R_NewExplosion(vec3_t org);
 
 #include "cl_screen.h"
 
-typedef struct
+typedef struct refdef_s
 {
        // area to render in
        int x, y, width, height;
index c84f26366713c74f9c717eb59c19f7f4c8d94118..900831d3efbdcbf0599da62d1fa44831a770b222 100644 (file)
@@ -1,11 +1,11 @@
 /* file generated by qcc, do not modify */
 
-typedef struct
+typedef struct cl_globalvars_s
 {
        int     pad[28];
 } cl_globalvars_t;
 
-/*typedef struct
+/*typedef struct cl_entvars_s
 {
 } cl_entvars_t;*/
 
index 334a31b12cabefc969afc63bce09700400d02a36..c34ca93aef454f39ef2bacf5870d3516f085c4a7 100644 (file)
--- a/common.c
+++ b/common.c
@@ -901,7 +901,7 @@ void COM_InitArgv (void)
 
 // Game mods
 
-typedef struct
+typedef struct gamemode_info_s
 {
        const char* prog_name;
        const char* cmdline;
diff --git a/cvar.h b/cvar.h
index b587e6b1b8ec8a3e5697e9ef02e32a50c5b782d3..ef564156b01c8d69f8f37ed1727b808b38af9150 100644 (file)
--- a/cvar.h
+++ b/cvar.h
@@ -8,7 +8,7 @@ of the License, or (at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 See the GNU General Public License for more details.
 
@@ -85,14 +85,14 @@ interface from being ambiguous.
 
 #define MAX_CVAROPTIONS 16
 
-typedef struct
+typedef struct cvaroption_s
 {
        int value;
        const char *name;
 }
 cvaroption_t;
 
-typedef struct
+typedef struct menucvar_s
 {
        int type;
        float valuemin, valuemax, valuestep;
index a8d537efaab677e325f94e7d9f6f5e93d2311042..6544ac7a4ae55a83f09e58e8abd84fee87ae59c6 100644 (file)
@@ -9,7 +9,7 @@
 //#define HZREADBLOCKSIZE 16000
 #define HZREADBLOCKSIZE 1048576
 
-typedef struct
+typedef struct hz_bitstream_read_s
 {
        qfile_t *file;
        int endoffile;
@@ -24,7 +24,7 @@ typedef struct hz_bitstream_readblock_s
 }
 hz_bitstream_readblock_t;
 
-typedef struct
+typedef struct hz_bitstream_readblocks_s
 {
        hz_bitstream_readblock_t *blocks;
        hz_bitstream_readblock_t *current;
diff --git a/fs.c b/fs.c
index 1a071c2cc7d69d2f2122fd6f45531f0b0cad4eb1..67ffa9fd2cf34056a3a3eb8e6113ac48edcfcb8f 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -172,7 +172,7 @@ struct qfile_s
 
 // You can get the complete ZIP format description from PKWARE website
 
-typedef struct
+typedef struct pk3_endOfCentralDir_s
 {
        unsigned int signature;
        unsigned short disknum;
@@ -186,13 +186,13 @@ typedef struct
 
 
 // ------ PAK files on disk ------ //
-typedef struct
+typedef struct dpackfile_s
 {
        char name[56];
        int filepos, filelen;
 } dpackfile_t;
 
-typedef struct
+typedef struct dpackheader_s
 {
        char id[4];
        int dirofs;
@@ -206,7 +206,7 @@ typedef struct
 // file compressed using the deflate algorithm
 #define PACKFILE_FLAG_DEFLATED (1 << 1)
 
-typedef struct
+typedef struct packfile_s
 {
        char name [MAX_QPATH];
        int flags;
index 61e606fea084a01441e68d9c1cadaf2c26694aac..57372862ce74073896f3affd21929106b458be53 100644 (file)
@@ -407,7 +407,7 @@ typedef struct gltextureunit_s
 }
 gltextureunit_t;
 
-static struct
+static struct gl_state_s
 {
        int blendfunc1;
        int blendfunc2;
index 73d317db503d38ba30f2d18c1d426d4b88b2780a..32ede01995246f9105fbc83a945e3abd856e35fd 100644 (file)
@@ -35,7 +35,7 @@ extern cvar_t gl_paranoid;
 extern cvar_t gl_printcheckerror;
 
 //input to R_Mesh_State
-typedef struct
+typedef struct rmeshstate_s
 {
        // textures
        int tex1d[MAX_TEXTUREUNITS];
index 3d2c5b06f7ba9d4020ee53c9aa2e2207c9285371..e8476796cdacb73a09ed4883dff79be2f8db27ac 100644 (file)
@@ -27,7 +27,7 @@ static mempool_t *texturemempool;
 // size of images which hold fragment textures, ignores picmip and max_size
 static int block_size;
 
-typedef struct
+typedef struct textypeinfo_s
 {
        int textype;
        int inputbytesperpixel;
@@ -288,7 +288,7 @@ void R_FreeTexturePool(rtexturepool_t **rtexturepool)
 }
 
 
-typedef struct
+typedef struct glmode_s
 {
        char *name;
        int minification, magnification;
diff --git a/image.c b/image.c
index 830320917084be016f4499deafd1e1b86ea1466c..fd971ecc5f0b5cc768013c50304f93ae90c186d5 100644 (file)
--- a/image.c
+++ b/image.c
@@ -159,7 +159,7 @@ void Image_Copy8bitRGBA(const qbyte *in, qbyte *out, int pixels, const unsigned
 =================================================================
 */
 
-typedef struct
+typedef struct pcx_s
 {
     char       manufacturer;
     char       version;
@@ -582,7 +582,7 @@ static qbyte *LoadLMPRGBA (const qbyte *f, int matchwidth, int matchheight)
 }
 
 
-typedef struct
+typedef struct q2wal_s
 {
        char            name[32];
        unsigned        width, height;
diff --git a/input.h b/input.h
index 58d256f9b3a7724dd745be59b8996db7f32303c2..057329644162826f5897b8884713001c375cd2ed 100644 (file)
--- a/input.h
+++ b/input.h
@@ -28,7 +28,7 @@ extern cvar_t in_pitch_max;
 extern qboolean in_client_mouse;
 extern float in_mouse_x, in_mouse_y;
 
-//enum {input_game,input_message,input_menu} input_dest;
+//enum input_dest_e {input_game,input_message,input_menu} input_dest;
 
 void IN_Move (void);
 // add additional movement on top of the keyboard move cmd
diff --git a/keys.c b/keys.c
index b17c3f66845ffa80bb038bc9c62c4b8ee5c01059..7a218b58039d0cb1f3deb7d4da0ed3d99e6dd7c5 100644 (file)
--- a/keys.c
+++ b/keys.c
@@ -39,10 +39,12 @@ char                *keybindings[MAX_BINDMAPS][MAX_KEYS];
 static int     key_bmap, key_bmap2;
 static qbyte keydown[MAX_KEYS];        // 0 = up, 1 = down, 2 = repeating
 
-typedef struct {
+typedef struct keyname_s
+{
        const char      *name;
        int                     keynum;
-} keyname_t;
+}
+keyname_t;
 
 static const keyname_t   keynames[] = {
        {"TAB", K_TAB},
diff --git a/keys.h b/keys.h
index eacbffac544ae4318ad599cefe50650c9c1a29a5..70915a9883a3dd4e7fd08c1812bb5901ec989c3f 100644 (file)
--- a/keys.h
+++ b/keys.h
@@ -32,7 +32,8 @@
 //
 // these are the key numbers that should be passed to Key_Event
 //
-extern enum {
+extern enum keynum_e
+{
        K_TAB                   = 9,
        K_ENTER                 = 13,
        K_ESCAPE                = 27,
@@ -181,9 +182,10 @@ extern enum {
        K_AUX31,
        K_AUX32,
 
-} keynum_t;
+}
+keynum_t;
 
-typedef enum { key_game, key_message, key_menu } keydest_t;
+typedef enum keydest_e { key_game, key_message, key_menu } keydest_t;
 
 #define MAX_INPUTLINES 32
 #define MAX_INPUTLINE 256
index 678f4e220c0d14434b97a2f1489f8c2686d15d8f..8c5f8243ff3d9453a3df5212e3b286583b42511e 100644 (file)
--- a/mathlib.h
+++ b/mathlib.h
@@ -208,13 +208,13 @@ void BoxPlaneCornerDistances_Separate(const vec3_t emins, const vec3_t emaxs, co
 #define PlaneDiff(point,plane) (((plane)->type < 3 ? (point)[(plane)->type] : DotProduct((point), (plane)->normal)) - (plane)->dist)
 
 // LordHavoc: minimal plane structure
-typedef struct
+typedef struct tinyplane_s
 {
        float normal[3], dist;
 }
 tinyplane_t;
 
-typedef struct
+typedef struct tinydoubleplane_s
 {
        double normal[3], dist;
 }
diff --git a/menu.c b/menu.c
index a49f2eb7d08aa4c5db50cd835c55caa27d8aaabe..55e7b4f17a1aebf13af86767351584c0929aaaa2 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -115,7 +115,7 @@ void M_Update_Return_Reason(char *s)
 
 // Nehahra
 #define NumberOfNehahraDemos 34
-typedef struct
+typedef struct nehahrademonames_s
 {
        char *name;
        char *desc;
@@ -3286,20 +3286,20 @@ void M_LanConfig_Key (int key, char ascii)
 //=============================================================================
 /* GAME OPTIONS MENU */
 
-typedef struct
+typedef struct level_s
 {
        char    *name;
        char    *description;
 } level_t;
 
-typedef struct
+typedef struct episode_s
 {
        char    *description;
        int             firstLevel;
        int             levels;
 } episode_t;
 
-typedef struct
+typedef struct gamelevels_s
 {
        char *gamename;
        level_t *levels;
@@ -3677,7 +3677,7 @@ gamelevels_t battlemechgame = {"Battlemech", battlemechlevels, battlemechepisode
 gamelevels_t openquartzgame = {"OpenQuartz", openquartzlevels, openquartzepisodes, 3};
 gamelevels_t defeatindetail2game = {"Defeat In Detail 2", defeatindetail2levels, defeatindetail2episodes, 1};
 
-typedef struct
+typedef struct gameinfo_s
 {
        gamemode_t gameid;
        gamelevels_t *notregistered;
index 73ad93441f236da0de1e64f618e1737ca4c8c976..9b769bda84e43d7cf56e8061ca6b042e101c4803 100644 (file)
@@ -32,7 +32,8 @@ Alias models are position independent, so the cache manager can move them.
 
 #include "modelgen.h"
 
-typedef struct {
+typedef struct daliashdr_s
+{
        int                     ident;
        int                     version;
        vec3_t          scale;
@@ -48,7 +49,8 @@ typedef struct {
        synctype_t      synctype;
        int                     flags;
        float           size;
-} daliashdr_t;
+}
+daliashdr_t;
 
 /*
 ========================================================================
@@ -64,19 +66,19 @@ typedef struct {
 #define MD2ALIAS_VERSION       8
 #define        MD2_SKINNAME    64
 
-typedef struct
+typedef struct md2stvert_s
 {
        short   s;
        short   t;
 } md2stvert_t;
 
-typedef struct
+typedef struct md2triangle_s
 {
        short   index_xyz[3];
        short   index_st[3];
 } md2triangle_t;
 
-typedef struct
+typedef struct md2frame_s
 {
        float           scale[3];       // multiply byte verts by this
        float           translate[3];   // then add this
@@ -92,7 +94,7 @@ typedef struct
 // and an integer vertex index.
 
 
-typedef struct
+typedef struct md2_s
 {
        int                     ident;
        int                     version;
index 3e57add488ce07806c034e54cae62bd90670fe61..0d3f10dca050c78949108b2ac5d452a9c6123804 100644 (file)
@@ -429,7 +429,7 @@ int Mod_Q1BSP_NativeContentsFromSuperContents(model_t *model, int supercontents)
        return CONTENTS_EMPTY;
 }
 
-typedef struct
+typedef struct RecursiveHullCheckTraceInfo_s
 {
        // the hull we're tracing through
        const hull_t *hull;
index f2de302ca3a16eeabd51729ae52e126f112c65c3..7fe0a591d82325360ae24f4d966ecfe8e61d2435 100644 (file)
@@ -35,7 +35,7 @@ BRUSH MODELS
 //
 // in memory representation
 //
-typedef struct
+typedef struct mvertex_s
 {
        vec3_t position;
 }
@@ -87,7 +87,7 @@ mplane_t;
 // probably used only on q1bsp water
 #define MATERIALFLAG_LIGHTBOTHSIDES 1024
 
-typedef struct
+typedef struct medge_s
 {
        unsigned short v[2];
 }
@@ -140,7 +140,7 @@ typedef struct mleaf_s
 }
 mleaf_t;
 
-typedef struct
+typedef struct hull_s
 {
        dclipnode_t *clipnodes;
        mplane_t *planes;
@@ -241,14 +241,14 @@ mlight_t;
 #define        Q2LUMP_AREAPORTALS      18
 #define        Q2HEADER_LUMPS          19
 
-typedef struct
+typedef struct q2dheader_s
 {
        int                     ident;
        int                     version;
        lump_t          lumps[HEADER_LUMPS];
 } q2dheader_t;
 
-typedef struct
+typedef struct q2dmodel_s
 {
        float           mins[3], maxs[3];
        float           origin[3];              // for sounds or lights
@@ -314,7 +314,7 @@ typedef struct
 
 
 
-typedef struct
+typedef struct q2dnode_s
 {
        int                     planenum;
        int                     children[2];    // negative numbers are -(leafs+1), not nodes
@@ -325,7 +325,7 @@ typedef struct
 } q2dnode_t;
 
 
-typedef struct
+typedef struct q2texinfo_s
 {
        float           vecs[2][4];             // [s/t][xyz offset]
        int                     flags;                  // miptex flags + overrides
@@ -334,7 +334,7 @@ typedef struct
        int                     nexttexinfo;    // for animations, -1 = end of chain
 } q2texinfo_t;
 
-typedef struct
+typedef struct q2dleaf_s
 {
        int                             contents;                       // OR of all brushes (not needed?)
 
@@ -351,13 +351,13 @@ typedef struct
        unsigned short  numleafbrushes;
 } q2dleaf_t;
 
-typedef struct
+typedef struct q2dbrushside_s
 {
        unsigned short  planenum;               // facing out of the leaf
        short   texinfo;
 } q2dbrushside_t;
 
-typedef struct
+typedef struct q2dbrush_s
 {
        int                     firstside;
        int                     numsides;
@@ -370,7 +370,7 @@ typedef struct
 // compressed bit vectors
 #define        Q2DVIS_PVS      0
 #define        Q2DVIS_PHS      1
-typedef struct
+typedef struct q2dvis_s
 {
        int                     numclusters;
        int                     bitofs[8][2];   // bitofs[numclusters][2]
@@ -379,13 +379,13 @@ typedef struct
 // each area has a list of portals that lead into other areas
 // when portals are closed, other areas may not be visible or
 // hearable even if the vis info says that it should be
-typedef struct
+typedef struct q2dareaportal_s
 {
        int             portalnum;
        int             otherarea;
 } q2dareaportal_t;
 
-typedef struct
+typedef struct q2darea_s
 {
        int             numareaportals;
        int             firstareaportal;
@@ -415,14 +415,14 @@ typedef struct
 #define        Q3LUMP_PVS                      16 // potentially visible set; bit[clusters][clusters] (used by rendering)
 #define        Q3HEADER_LUMPS          17
 
-typedef struct
+typedef struct q3dheader_s
 {
        int                     ident;
        int                     version;
        lump_t          lumps[HEADER_LUMPS];
 } q3dheader_t;
 
-typedef struct
+typedef struct q3dtexture_s
 {
        char name[Q3PATHLENGTH];
        int surfaceflags;
@@ -431,14 +431,14 @@ typedef struct
 q3dtexture_t;
 
 // note: planes are paired, the pair of planes with i and i ^ 1 are opposites.
-typedef struct
+typedef struct q3dplane_s
 {
        float normal[3];
        float dist;
 }
 q3dplane_t;
 
-typedef struct
+typedef struct q3dnode_s
 {
        int planeindex;
        int childrenindex[2];
@@ -447,7 +447,7 @@ typedef struct
 }
 q3dnode_t;
 
-typedef struct
+typedef struct q3dleaf_s
 {
        int clusterindex; // pvs index
        int areaindex; // area index
@@ -460,7 +460,7 @@ typedef struct
 }
 q3dleaf_t;
 
-typedef struct
+typedef struct q3dmodel_s
 {
        float mins[3];
        float maxs[3];
@@ -471,7 +471,7 @@ typedef struct
 }
 q3dmodel_t;
 
-typedef struct
+typedef struct q3dbrush_s
 {
        int firstbrushside;
        int numbrushsides;
@@ -479,14 +479,14 @@ typedef struct
 }
 q3dbrush_t;
 
-typedef struct
+typedef struct q3dbrushside_s
 {
        int planeindex;
        int textureindex;
 }
 q3dbrushside_t;
 
-typedef struct
+typedef struct q3dvertex_s
 {
        float origin3f[3];
        float texcoord2f[2];
@@ -496,7 +496,7 @@ typedef struct
 }
 q3dvertex_t;
 
-typedef struct
+typedef struct q3dmeshvertex_s
 {
        int offset; // first vertex index of mesh
 }
@@ -515,7 +515,7 @@ q3deffect_t;
 #define Q3FACETYPE_MESH 3 // common
 #define Q3FACETYPE_FLARE 4 // rare (is this ever used?)
 
-typedef struct
+typedef struct q3dface_s
 {
        int textureindex;
        int effectindex; // -1 if none
@@ -586,13 +586,13 @@ typedef struct
 }
 q3dface_t;
 
-typedef struct
+typedef struct q3dlightmap_s
 {
        unsigned char rgb[128*128*3];
 }
 q3dlightmap_t;
 
-typedef struct
+typedef struct q3dlightgrid_s
 {
        unsigned char ambientrgb[3];
        unsigned char diffusergb[3];
@@ -601,7 +601,7 @@ typedef struct
 }
 q3dlightgrid_t;
 
-typedef struct
+typedef struct q3dpvs_s
 {
        int numclusters;
        int chainlength;
index 3d76921e73cae1724148ac7269b51cf3e9b57e08..c7e339bde29effca7856f1ce64512ebe42e3fe16 100644 (file)
@@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #ifndef MODEL_SHARED_H
 #define MODEL_SHARED_H
 
-typedef enum {ST_SYNC=0, ST_RAND } synctype_t;
+typedef enum synctype_e {ST_SYNC=0, ST_RAND } synctype_t;
 
 /*
 
@@ -30,7 +30,7 @@ m*_t structures are in-memory
 
 */
 
-typedef enum {mod_invalid, mod_brushq1, mod_sprite, mod_alias, mod_brushq2, mod_brushq3} modtype_t;
+typedef enum modtype_e {mod_invalid, mod_brushq1, mod_sprite, mod_alias, mod_brushq2, mod_brushq3} modtype_t;
 
 typedef struct animscene_s
 {
@@ -223,7 +223,7 @@ typedef struct texture_s
 }
 texture_t;
 
-typedef struct
+typedef struct mtexinfo_s
 {
        float vecs[2][4];
        texture_t *texture;
index 7439c2818f467784983c17964d7891474f98d725..c399f5e4681419828b30a74e5a23ea5cc9d2cd20 100644 (file)
@@ -8,7 +8,7 @@ of the License, or (at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 See the GNU General Public License for more details.
 
@@ -34,11 +34,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 #define ALIAS_ONSEAM                           0x0020
 
-typedef enum { ALIAS_SINGLE=0, ALIAS_GROUP } aliasframetype_t;
+typedef enum aliasframetype_e { ALIAS_SINGLE=0, ALIAS_GROUP } aliasframetype_t;
 
-typedef enum { ALIAS_SKIN_SINGLE=0, ALIAS_SKIN_GROUP } aliasskintype_t;
+typedef enum aliasskintype_e { ALIAS_SKIN_SINGLE=0, ALIAS_SKIN_GROUP } aliasskintype_t;
 
-typedef struct {
+typedef struct mdl_s
+{
        int                     ident;
        int                     version;
        vec3_t          scale;
@@ -54,62 +55,83 @@ typedef struct {
        synctype_t      synctype;
        int                     flags;
        float           size;
-} mdl_t;
+}
+mdl_t;
 
 // TODO: could be shorts
 
-typedef struct {
+typedef struct stvert_s
+{
        int             onseam;
        int             s;
        int             t;
-} stvert_t;
+}
+stvert_t;
 
-typedef struct dtriangle_s {
+typedef struct dtriangle_s
+{
        int                                     facesfront;
        int                                     vertindex[3];
-} dtriangle_t;
+}
+dtriangle_t;
 
 #define DT_FACES_FRONT                         0x0010
 
 // This mirrors trivert_t in trilib.h, is present so Quake knows how to
 // load this data
 
-typedef struct {
+typedef struct trivertx_s
+{
        qbyte   v[3];
        qbyte   lightnormalindex;
-} trivertx_t;
+}
+trivertx_t;
 
-typedef struct {
+typedef struct daliasframe_s
+{
        trivertx_t      bboxmin;        // lightnormal isn't used
        trivertx_t      bboxmax;        // lightnormal isn't used
        char            name[16];       // frame name from grabbing
-} daliasframe_t;
+}
+daliasframe_t;
 
-typedef struct {
+typedef struct daliasgroup_s
+{
        int                     numframes;
        trivertx_t      bboxmin;        // lightnormal isn't used
        trivertx_t      bboxmax;        // lightnormal isn't used
-} daliasgroup_t;
+}
+daliasgroup_t;
 
-typedef struct {
+typedef struct daliasskingroup_s
+{
        int                     numskins;
-} daliasskingroup_t;
+}
+daliasskingroup_t;
 
-typedef struct {
+typedef struct daliasinterval_s
+{
        float   interval;
-} daliasinterval_t;
+}
+daliasinterval_t;
 
-typedef struct {
+typedef struct daliasskininterval_s
+{
        float   interval;
-} daliasskininterval_t;
+}
+daliasskininterval_t;
 
-typedef struct {
+typedef struct daliasframetype_s
+{
        aliasframetype_t        type;
-} daliasframetype_t;
+}
+daliasframetype_t;
 
-typedef struct {
+typedef struct daliasskintype_s
+{
        aliasskintype_t type;
-} daliasskintype_t;
+}
+daliasskintype_t;
 
 #endif
 
index 0c7435cf82af145102e67a69e558eb6468d22162..3ca5093fa2578c278ce1f98c95c662d66eb9030e 100644 (file)
@@ -1,13 +1,13 @@
 
 /* file generated by qcc, do not modify */
 
-typedef struct
-{      
+typedef struct m_globalvars_s
+{
        int     pad[28];
        int     self;
 } m_globalvars_t;
 
-/*typedef struct
+/*typedef struct m_entvars_s
 {
 } m_entvars_t;*/
 
index e66b71d17fe19534991ab3682302c484744872c7..4c021544c9db9a4829ad44268f26cf4942e573f6 100755 (executable)
--- a/netconn.h
+++ b/netconn.h
@@ -155,7 +155,7 @@ extern int playercolor;
 #define SERVERLIST_ANDMASKCOUNT                5
 #define SERVERLIST_ORMASKCOUNT         5
 
-typedef enum
+typedef enum serverlist_maskop_e
 {
        // SLMO_CONTAINS is the default for strings
        // SLMO_GREATEREQUAL is the default for numbers (also used when OP == CONTAINS or NOTCONTAINS
@@ -171,7 +171,7 @@ typedef enum
 } serverlist_maskop_t;
 
 // struct with all fields that you can search for or sort by
-typedef struct
+typedef struct serverlist_info_s
 {
        // address for connecting
        char cname[128];
@@ -215,7 +215,7 @@ typedef enum
        SQS_TIMEDOUT
 } serverlist_query_state;
 
-typedef struct
+typedef struct serverlist_entry_s
 {
        // used to determine whether this entry should be included into the final view
        serverlist_query_state query;
@@ -231,7 +231,7 @@ typedef struct
        char line2[128];
 } serverlist_entry_t;
 
-typedef struct
+typedef struct serverlist_mask_s
 {
        qboolean                        active;
        serverlist_maskop_t  tests[SLIF_COUNT];
index 46fdc6b70c624aeee86ec6655a6f1ce0dd63ada1..5fd9f0485149fa29ddf1dab704c9abc59fa3c21d 100644 (file)
--- a/pr_comp.h
+++ b/pr_comp.h
@@ -8,7 +8,7 @@ of the License, or (at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 See the GNU General Public License for more details.
 
@@ -26,7 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 typedef unsigned int   func_t;
 typedef int    string_t;
 
-typedef enum {ev_void, ev_string, ev_float, ev_vector, ev_entity, ev_field, ev_function, ev_pointer} etype_t;
+typedef enum etype_e {ev_void, ev_string, ev_float, ev_vector, ev_entity, ev_field, ev_function, ev_pointer} etype_t;
 
 
 #define        OFS_NULL                0
@@ -42,7 +42,8 @@ typedef enum {ev_void, ev_string, ev_float, ev_vector, ev_entity, ev_field, ev_f
 #define        RESERVED_OFS    28
 
 
-enum {
+enum opcode_e
+{
        OP_DONE,
        OP_MUL_F,
        OP_MUL_V,
@@ -53,19 +54,19 @@ enum {
        OP_ADD_V,
        OP_SUB_F,
        OP_SUB_V,
-       
+
        OP_EQ_F,
        OP_EQ_V,
        OP_EQ_S,
        OP_EQ_E,
        OP_EQ_FNC,
-       
+
        OP_NE_F,
        OP_NE_V,
        OP_NE_S,
        OP_NE_E,
        OP_NE_FNC,
-       
+
        OP_LE,
        OP_GE,
        OP_LT,
@@ -115,7 +116,7 @@ enum {
        OP_GOTO,
        OP_AND,
        OP_OR,
-       
+
        OP_BITAND,
        OP_BITOR
 };
@@ -125,20 +126,22 @@ typedef struct statement_s
 {
        unsigned short  op;
        signed short    a,b,c;
-} dstatement_t;
+}
+dstatement_t;
 
-typedef struct
+typedef struct ddef_s
 {
        unsigned short  type;           // if DEF_SAVEGLOBGAL bit is set
                                                                // the variable needs to be saved in savegames
        unsigned short  ofs;
        int                     s_name;
-} ddef_t;
+}
+ddef_t;
 #define        DEF_SAVEGLOBAL  (1<<15)
 
 #define        MAX_PARMS       8
 
-typedef struct
+typedef struct dfunction_s
 {
        int             first_statement;        // negative numbers are builtins
        int             parm_start;
@@ -151,9 +154,10 @@ typedef struct
 
        int             numparms;
        qbyte   parm_size[MAX_PARMS];
-} dfunction_t;
+}
+dfunction_t;
 
-typedef struct
+typedef struct mfunction_s
 {
        int             first_statement;        // negative numbers are builtins
        int             parm_start;
@@ -168,11 +172,12 @@ typedef struct
 
        int             numparms;
        qbyte   parm_size[MAX_PARMS];
-} mfunction_t;
+}
+mfunction_t;
 
 
 #define        PROG_VERSION    6
-typedef struct
+typedef struct dprograms_s
 {
        int             version;
        int             crc;                    // check of header file
@@ -196,7 +201,8 @@ typedef struct
        int             numglobals;
 
        int             entityfields;
-} dprograms_t;
+}
+dprograms_t;
 
 #endif
 
index 8d7841938dcb12ceee625232949feca695946d2c..1fe3079ddc41b957f52803ca179574be2d31d170 100644 (file)
@@ -75,16 +75,6 @@ cvar_t       pr_boundscheck = {0, "pr_boundscheck", "1"};
 // LordHavoc: prints every opcode as it executes - warning: this is significant spew
 cvar_t pr_traceqc = {0, "pr_traceqc", "0"};
 
-#define        MAX_FIELD_LEN   64
-#define GEFV_CACHESIZE 2
-
-typedef struct {
-       ddef_t  *pcache;
-       char    field[MAX_FIELD_LEN];
-} gefv_cache;
-
-static gefv_cache      gefvCache[GEFV_CACHESIZE] = {{NULL, ""}, {NULL, ""}};
-
 ddef_t *ED_FindField (const char *name);
 mfunction_t *PRVM_ED_FindFunction (const char *name);
 
@@ -1291,10 +1281,6 @@ void PR_LoadProgs (const char *progsname)
        if (!progsname || !*progsname)
                Host_Error("PR_LoadProgs: passed empty progsname");
 
-// flush the non-C variable lookup cache
-       for (i=0 ; i<GEFV_CACHESIZE ; i++)
-               gefvCache[i].field[0] = 0;
-
        PR_FreeAll();
 
        progs = (dprograms_t *)FS_LoadFile (progsname, serverprogs_mempool, false);
index a63f04df2147c6cd3200c6526beb2c7a2b7d3ea3..e44d9545184eb796e886e4515da2c581ffa96db6 100644 (file)
--- a/pr_exec.c
+++ b/pr_exec.c
@@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #include "quakedef.h"
 
 
-typedef struct
+typedef struct prstack_s
 {
        int                             s;
        mfunction_t             *f;
index 14e2e919cbc1abff7818b0a07fcc1ce9abf4079a..15db54886c4407396035f207858dc979dad3eaea 100644 (file)
@@ -8,7 +8,7 @@ of the License, or (at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 See the GNU General Public License for more details.
 
@@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #ifndef PROGDEFS_H
 #define PROGDEFS_H
 
-typedef struct
+typedef struct globalvars_s
 {
        int     pad[28];
        int     self;
@@ -82,7 +82,7 @@ typedef struct
        func_t  SetChangeParms;
 } globalvars_t;
 
-typedef struct
+typedef struct entvars_s
 {
        float   modelindex;
        vec3_t  absmin;
index 509ffba08b31b66b6b1f92fe4074b72637431c44..69a94f2b9501272e28f009eb6ac734583007e242 100644 (file)
@@ -37,7 +37,7 @@ entity_state_t defaultstate =
 
 // LordHavoc: I own protocol ranges 96, 97, 3500-3599
 
-struct
+struct protocolversioninfo_s
 {
        int number;
        const char *name;
index 4adda06add3c210201189db34155974bcccd399d..211043b4f360feed8e9f017629e9a83b7b652292 100644 (file)
@@ -317,7 +317,7 @@ void Protocol_Names(char *buffer, size_t buffersize);
 #define RENDER_TRANSPARENT 262144 // can't light during opaque stage
 
 // this is 80 bytes
-typedef struct
+typedef struct entity_state_s
 {
        // ! means this is not sent to client
        double time; // ! time this state was built (used on client for interpolation)
@@ -418,7 +418,7 @@ the Write function performs these steps:
 server updates entities in looping ranges, a frame consists of a range of visible entities (not always all visible entities),
 */
 
-typedef struct
+typedef struct entity_frameinfo_s
 {
        double time;
        int framenum;
@@ -430,7 +430,7 @@ entity_frameinfo_t;
 #define MAX_ENTITY_HISTORY 64
 #define MAX_ENTITY_DATABASE (MAX_EDICTS * 2)
 
-typedef struct
+typedef struct entityframe_database_s
 {
        // note: these can be far out of range, modulo with MAX_ENTITY_DATABASE to get a valid range (which may wrap)
        // start and end of used area, when adding a new update to database, store at endpos, and increment endpos
@@ -455,7 +455,7 @@ typedef struct
 entityframe_database_t;
 
 // build entity data in this, to pass to entity read/write functions
-typedef struct
+typedef struct entity_frame_s
 {
        double time;
        int framenum;
index 22ac69a68d28718ed9f5525b1f0d78db2db3b02c..0919bd7a1d43d2fb0e6ea47a22d45b1cc7e0ad3c 100644 (file)
--- a/qtypes.h
+++ b/qtypes.h
@@ -8,7 +8,7 @@ typedef unsigned char qbyte;
 #undef false
 
 #ifndef __cplusplus
-typedef enum {false, true} qboolean;
+typedef enum qboolean_e {false, true} qboolean;
 #else
 typedef bool qboolean;
 #endif
index 4c7e48e85a0f9f642d7af365084d91dd42005cbe..66f98b473c44f91354b38718fadd1ede772b1674 100644 (file)
--- a/r_light.c
+++ b/r_light.c
@@ -227,7 +227,7 @@ void R_CompleteLightPoint(vec3_t ambientcolor, vec3_t diffusecolor, vec3_t diffu
        }
 }
 
-typedef struct
+typedef struct nearlight_s
 {
        vec3_t origin;
        //vec_t cullradius2;
index 15ac59335db2684f2278cd548d9658b2e6589f44..9290d7a011a0c9f6dab914118f4d64872cc4b18e 100644 (file)
@@ -40,7 +40,11 @@ void r_lightningbeams_setuptexture(void)
        float particlex, particley, particlexv, particleyv, dx, dy, s, maxpathstrength;
        qbyte *pixels;
        int *image;
-       struct {float x, y, strength;} path[PATHPOINTS], temppath;
+       struct lightningpathnode_s
+       {
+               float x, y, strength;
+       }
+       path[PATHPOINTS], temppath;
 
        image = Mem_Alloc(tempmempool, BEAMWIDTH * BEAMHEIGHT * sizeof(int));
        pixels = Mem_Alloc(tempmempool, BEAMWIDTH * BEAMHEIGHT * sizeof(qbyte[4]));
index 9cfaccc87d4325705c7005a1bb443e7d9f928605..0fe506befff63ee9e38cde6b1c28051397a816da 100644 (file)
@@ -34,7 +34,7 @@
 #define TEXTYPE_DSDT 4
 
 // contents of this structure are mostly private to gl_textures.c
-typedef struct
+typedef struct rtexture_s
 {
        // this is exposed (rather than private) for speed reasons only
        int texnum;
@@ -42,7 +42,7 @@ typedef struct
 rtexture_t;
 
 // contents of this structure are private to gl_textures.c
-typedef struct
+typedef struct rtexturepool_s
 {
        int useless;
 }
diff --git a/sbar.c b/sbar.c
index 5137d440a4371ffbf8a393774b559a1148dd4d79..ddccfc5fe33cf503959b43d8d9dbaa14ff1bfeed 100644 (file)
--- a/sbar.c
+++ b/sbar.c
@@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 #include "quakedef.h"
 
-typedef struct
+typedef struct sbarpic_s
 {
        char name[32];
 }
index ad31f39d23735ec378eb3c1f63ae8651c10177ac..a64f43c6cbe1111bca15a53950162535cc8f88f3 100644 (file)
--- a/server.h
+++ b/server.h
@@ -22,7 +22,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #ifndef SERVER_H
 #define SERVER_H
 
-typedef struct
+typedef struct server_static_s
 {
        // number of svs.clients slots (updated by maxplayers command)
        int maxclients;
@@ -36,9 +36,9 @@ typedef struct
 
 //=============================================================================
 
-typedef enum {ss_loading, ss_active} server_state_t;
+typedef enum server_state_e {ss_loading, ss_active} server_state_t;
 
-typedef struct
+typedef struct server_s
 {
        // false if only a net client
        qboolean active;
index 0eea61ada550ff99a6d3e04be5906f79965d2402..4c674daa90706cb349191e6b1bacfab385070d41 100644 (file)
@@ -24,14 +24,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #include "sound.h"
 
 
-typedef struct
+typedef struct sfxbuffer_s
 {
        unsigned int    length;
        unsigned int    offset;
        qbyte   data[4];        // variable sized
 } sfxbuffer_t;
 
-typedef struct
+typedef struct snd_format_s
 {
        unsigned int    speed;
        unsigned int    width;
@@ -64,7 +64,7 @@ struct sfx_s
        void                            *fetcher_data;  // Per-sfx data for the sound fetching functions
 };
 
-typedef struct
+typedef struct dma_s
 {
        snd_format_t    format;
        int                             samples;                // mono samples in buffer
@@ -73,7 +73,7 @@ typedef struct
        int                             bufferlength;   // used only by certain drivers
 } dma_t;
 
-typedef struct
+typedef struct channel_s
 {
        sfx_t                   *sfx;                   // sfx number
        unsigned int    flags;                  // cf CHANNELFLAG_* defines
index 80363c80274f1a9d9bc727569c9aaa73641afa11..e7396cb8b81a239600a17f41f44339a8230aa050 100644 (file)
--- a/snd_mix.c
+++ b/snd_mix.c
@@ -22,7 +22,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #include "quakedef.h"
 #include "snd_main.h"
 
-typedef struct
+typedef struct portable_samplepair_s
 {
        int left;
        int right;
index a972ef41ff295375d3b94a7f6be5599f8d2f5dbf..59b2d49b52c492360d021feac5e82f6167439d0e 100644 (file)
--- a/snd_wav.c
+++ b/snd_wav.c
@@ -27,7 +27,7 @@
 #include "snd_wav.h"
 
 
-typedef struct
+typedef struct wavinfo_s
 {
        int             rate;
        int             width;
index 8d4f00d272c5b91d004c7ce14169fc0af5209110..2752446fb9ba3c2e3c7373d22037ab1e36889733 100644 (file)
--- a/snd_win.c
+++ b/snd_win.c
@@ -37,7 +37,7 @@ HRESULT (WINAPI *pDirectSoundCreate)(GUID FAR *lpGUID, LPDIRECTSOUND FAR *lplpDS
 // DirectSound output: 64KB in 1 buffer
 #define SECONDARY_BUFFER_SIZE  (64 * 1024)
 
-typedef enum {SIS_SUCCESS, SIS_FAILURE, SIS_NOTAVAIL} sndinitstat;
+typedef enum sndinitstat_e {SIS_SUCCESS, SIS_FAILURE, SIS_NOTAVAIL} sndinitstat;
 
 static qboolean        wavonly;
 static qboolean        dsound_init;
index 9647311077e8ce5c382f8764366a1367fb0612bc..1f43025b87b794ae36df253c06635c4de385ee8f 100644 (file)
@@ -51,7 +51,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 #define SPRITE2_VERSION                2
 
-typedef struct
+typedef struct dsprite_s
 {
        int                     ident;
        int                     version;
@@ -64,7 +64,7 @@ typedef struct
        synctype_t      synctype;
 } dsprite_t;
 
-typedef struct
+typedef struct dspritehl_s
 {
        int                     ident;
        int                     version;
@@ -78,14 +78,14 @@ typedef struct
        synctype_t      synctype;
 } dspritehl_t;
 
-typedef struct
+typedef struct dsprite2frame_s
 {
        int             width, height;
        int             origin_x, origin_y;             // raster coordinates inside pic
        char    name[64];                               // name of pcx file
 } dsprite2frame_t;
 
-typedef struct
+typedef struct dsprite2_s
 {
        int                             ident;
        int                             version;
@@ -104,23 +104,23 @@ typedef struct
 #define SPRHL_INDEXALPHA       2
 #define SPRHL_ALPHATEST        3
 
-typedef struct {
+typedef struct dspriteframe_s {
        int                     origin[2];
        int                     width;
        int                     height;
 } dspriteframe_t;
 
-typedef struct {
+typedef struct dspritegroup_s {
        int                     numframes;
 } dspritegroup_t;
 
-typedef struct {
+typedef struct dspriteinterval_s {
        float   interval;
 } dspriteinterval_t;
 
-typedef enum { SPR_SINGLE=0, SPR_GROUP } spriteframetype_t;
+typedef enum spriteframetype_e { SPR_SINGLE=0, SPR_GROUP } spriteframetype_t;
 
-typedef struct {
+typedef struct dspriteframetype_s {
        spriteframetype_t       type;
 } dspriteframetype_t;
 
diff --git a/sys.h b/sys.h
index afaf8ecc4adab8f4af1b74b73413bc7aef819927..278c7982fa8f545e0aacd8b61ae361c821783f8a 100644 (file)
--- a/sys.h
+++ b/sys.h
@@ -37,7 +37,7 @@ typedef HMODULE dllhandle_t;
   typedef void* dllhandle_t;
 #endif
 
-typedef struct
+typedef struct dllfunction_s
 {
        const char *name;
        void **funcvariable;
diff --git a/ui.h b/ui.h
index e4aff297cd512dcf92227ccdd682fb7181e4ed12..1c442feecafffb82f4f86bdb440e69898e4637e7 100644 (file)
--- a/ui.h
+++ b/ui.h
@@ -10,7 +10,7 @@
 
 #define UI_EVENT_QUEUE_SIZE 32
 
-typedef enum { UI_BUTTON, UI_LABEL } ui_control_type;
+typedef enum ui_control_type_e { UI_BUTTON, UI_LABEL } ui_control_type;
 
 typedef struct ui_message_s                    ui_message_t;
 typedef struct ui_item_s                       *ui_item_t;
diff --git a/vid.h b/vid.h
index 48fc9602d7089281ea495b3408ca89074cf7d607..34cd729e906ec14237a0d6cfdde70d1de11a2ba5 100644 (file)
--- a/vid.h
+++ b/vid.h
@@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 extern int cl_available;
 
-typedef struct
+typedef struct viddef_s
 {
        // these are set by VID_Mode
        int width;
diff --git a/wad.c b/wad.c
index eda0e4ce3a1c5c0a8e11a53b2d75dad5ad3dfa28..38b0e79f4850ae379209562c0c2e2683061a0b5a 100644 (file)
--- a/wad.c
+++ b/wad.c
@@ -131,7 +131,7 @@ void SwapPic (qpic_t *pic)
 
 // LordHavoc: added alternate WAD2/WAD3 system for HalfLife texture wads
 #define TEXWAD_MAXIMAGES 16384
-typedef struct
+typedef struct texwadlump_s
 {
        char name[16];
        qfile_t *file;
diff --git a/wad.h b/wad.h
index 87289a7af91a2ca68bec91cb39249035d74db899..3c3fc511c9fbd9e197ab0f5b2969f0dc019f97cf 100644 (file)
--- a/wad.h
+++ b/wad.h
@@ -39,7 +39,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #define        TYP_SOUND               67
 #define        TYP_MIPTEX              68
 
-typedef struct
+typedef struct qpic_s
 {
        int                     width, height;
        qbyte           data[4];                        // variably sized
@@ -47,14 +47,14 @@ typedef struct
 
 
 
-typedef struct
+typedef struct wadinfo_s
 {
        char            identification[4];              // should be WAD2 or 2DAW
        int                     numlumps;
        int                     infotableofs;
 } wadinfo_t;
 
-typedef struct
+typedef struct lumpinfo_s
 {
        int                     filepos;
        int                     disksize;