ref: 87d96c2ddf74afe0466e07477f424d6ffacafc9c
parent: 73e918793d0f2747bed957fd251de276be2e0423
author: Turo Lamminen <[email protected]>
date: Tue Jan 29 15:00:56 EST 2019
strife: Make sprnames contents and related function parameters const
--- a/src/strife/info.c
+++ b/src/strife/info.c
@@ -30,7 +30,7 @@
#include "p_mobj.h"
// villsa [STRIFE]
-char *sprnames[NUMSPRITES+1] =
+const char *sprnames[NUMSPRITES+1] =
{
"PLAY", "PNCH", "WAVE", "RBPY", "TRGT", "XBOW", "MMIS", "RIFG",
"RIFF", "FLMT", "FLMF", "BLST", "BLSF", "GREN", "GREF", "SIGH",
--- a/src/strife/info.h
+++ b/src/strife/info.h
@@ -1833,7 +1833,7 @@
} state_t;
extern state_t states[NUMSTATES];
-extern char *sprnames[];
+extern const char *sprnames[];
typedef enum
{
--- a/src/strife/r_things.c
+++ b/src/strife/r_things.c
@@ -171,9 +171,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;
@@ -292,7 +292,7 @@
// R_InitSprites
// Called at program start.
//
-void R_InitSprites (char** namelist)
+void R_InitSprites (const char** namelist)
{
int i;
--- a/src/strife/r_things.h
+++ b/src/strife/r_things.h
@@ -52,7 +52,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);