ref: 402de607125c70919e6b0f5c850c16ba8853a22f
parent: 19202f1c52035e4a10e5857f7c23f0ea640c5359
author: Turo Lamminen <[email protected]>
date: Sat Jul 28 11:47:58 EDT 2018
doom: Make sprnames contents const and fix some function parameters to match
--- a/src/doom/info.c
+++ b/src/doom/info.c
@@ -29,7 +29,7 @@
#include "p_mobj.h"
-char *sprnames[] = {
+const char *sprnames[] = {
"TROO","SHTG","PUNG","PISG","PISF","SHTF","SHT2","CHGG","CHGF","MISG",
"MISF","SAWG","PLSG","PLSF","BFGG","BFGF","BLUD","PUFF","BAL1","BAL2",
"PLSS","PLSE","MISL","BFS1","BFE1","BFE2","TFOG","IFOG","PLAY","POSS",
--- a/src/doom/info.h
+++ b/src/doom/info.h
@@ -1154,7 +1154,7 @@
} state_t;
extern state_t states[NUMSTATES];
-extern char *sprnames[];
+extern const char *sprnames[];
typedef enum {
MT_PLAYER,
--- a/src/doom/r_things.c
+++ b/src/doom/r_things.c
@@ -168,9 +168,9 @@
// letter/number appended.
// The rotation character can be 0 to signify no rotations.
//
-void R_InitSpriteDefs (char** namelist)
+void R_InitSpriteDefs(const char **namelist)
{
- char** check;
+ const char **check;
int i;
int l;
int frame;
@@ -288,7 +288,7 @@
// R_InitSprites
// Called at program start.
//
-void R_InitSprites (char** namelist)
+void R_InitSprites(const char **namelist)
{
int i;
--- a/src/doom/r_things.h
+++ b/src/doom/r_things.h
@@ -51,7 +51,7 @@
void R_AddSprites (sector_t* sec);
void R_AddPSprites (void);
void R_DrawSprites (void);
-void R_InitSprites (char** namelist);
+void R_InitSprites(const char **namelist);
void R_ClearSprites (void);
void R_DrawMasked (void);