From fe49cfc004026cdf92c58056079f68a01ba99c7f Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 18 Apr 2010 18:30:34 +0000 Subject: Make tables const, minor commenting and formatting fixes. Subversion-branch: /branches/raven-branch Subversion-revision: 1904 --- src/heretic/deh_htext.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/heretic/deh_htext.c') diff --git a/src/heretic/deh_htext.c b/src/heretic/deh_htext.c index 6c506cd8..d39c9fdb 100644 --- a/src/heretic/deh_htext.c +++ b/src/heretic/deh_htext.c @@ -52,7 +52,8 @@ typedef struct // Offsets String // v1.0 v1.2 v1.3 -static hhe_string_t strings[] = { +static const hhe_string_t strings[] = +{ { { 228, 228, 228 }, "PLAYPAL" }, { { 1240, 1252, 1252 }, "E1M1: THE DOCKS" }, { { 1260, 1272, 1272 }, "E1M2: THE DUNGEONS" }, @@ -537,7 +538,8 @@ static hhe_string_t strings[] = { // String offsets that are valid but we don't support. -static int unsupported_strings_1_0[] = { +static const int unsupported_strings_1_0[] = +{ 0, 4, 64, 104, 160, 200, 220, 236, 244, 252, 272, 288, 296, 316, 332, 372, 436, 500, 504, 536, 544, 560, 576, 584, @@ -583,7 +585,8 @@ static int unsupported_strings_1_0[] = { -1, }; -static int unsupported_strings_1_2[] = { +static const int unsupported_strings_1_2[] = +{ 0, 4, 64, 104, 160, 200, 220, 236, 244, 252, 272, 288, 296, 316, 332, 372, 436, 500, 504, 536, 544, 560, 576, 584, @@ -625,7 +628,8 @@ static int unsupported_strings_1_2[] = { 15936, -1, }; -static int unsupported_strings_1_3[] = { +static const int unsupported_strings_1_3[] = +{ 0, 4, 64, 104, 160, 200, 220, 236, 244, 252, 272, 288, 296, 316, 332, 372, 436, 500, 504, 536, 544, 560, 576, 584, @@ -667,7 +671,7 @@ static int unsupported_strings_1_3[] = { 15936, -1, }; -static int *unsupported_strings[] = +static const int *unsupported_strings[] = { unsupported_strings_1_0, unsupported_strings_1_2, @@ -676,7 +680,7 @@ static int *unsupported_strings[] = static boolean StringIsUnsupported(unsigned int offset) { - int *string_list; + const int *string_list; int i; string_list = unsupported_strings[deh_hhe_version]; -- cgit v1.2.3