ref: 17e8d8ef225de1fb80f1c574d7402f03425e3f2e
parent: db6477778487de22eb61152ef677847002b698f3
author: Turo Lamminen <[email protected]>
date: Sat Dec 8 11:37:08 EST 2018
heretic: Make sprnames contents and related function parameters const
--- a/src/heretic/info.c
+++ b/src/heretic/info.c
@@ -16,7 +16,7 @@
#include "doomdef.h"
#include "p_action.h"
-char *sprnames[] = {
+const char *sprnames[] = {
"IMPX","ACLO","PTN1","SHLD","SHD2","BAGH","SPMP","INVS","PTN2","SOAR",
"INVU","PWBK","EGGC","EGGM","FX01","SPHL","TRCH","FBMB","XPL1","ATLP",
"PPOD","AMG1","SPSH","LVAS","SLDG","SKH1","SKH2","SKH3","SKH4","CHDL",
--- a/src/heretic/info.h
+++ b/src/heretic/info.h
@@ -1374,7 +1374,7 @@
} state_t;
extern state_t states[NUMSTATES];
-extern char *sprnames[];
+extern const char *sprnames[];
--- a/src/heretic/r_local.h
+++ b/src/heretic/r_local.h
@@ -427,7 +427,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);
void R_ClipVisSprite(vissprite_t * vis, int xl, int xh);
--- a/src/heretic/r_things.c
+++ b/src/heretic/r_things.c
@@ -141,9 +141,9 @@
=================
*/
-void R_InitSpriteDefs(char **namelist)
+void R_InitSpriteDefs(const char **namelist)
{
- char **check;
+ const char **check;
int i, l, frame, rotation;
int start, end;
@@ -255,7 +255,7 @@
===================
*/
-void R_InitSprites(char **namelist)
+void R_InitSprites(const char **namelist)
{
int i;