diff options
author | Simon Howard | 2010-04-18 18:30:34 +0000 |
---|---|---|
committer | Simon Howard | 2010-04-18 18:30:34 +0000 |
commit | fe49cfc004026cdf92c58056079f68a01ba99c7f (patch) | |
tree | 80412fca25a6452311b3136f906a2b37dd3cc344 /src/heretic/deh_htext.c | |
parent | 38c31575d255e1b2ff71f9de2c4d16664e8fb1e9 (diff) | |
download | chocolate-doom-fe49cfc004026cdf92c58056079f68a01ba99c7f.tar.gz chocolate-doom-fe49cfc004026cdf92c58056079f68a01ba99c7f.tar.bz2 chocolate-doom-fe49cfc004026cdf92c58056079f68a01ba99c7f.zip |
Make tables const, minor commenting and formatting fixes.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1904
Diffstat (limited to 'src/heretic/deh_htext.c')
-rw-r--r-- | src/heretic/deh_htext.c | 16 |
1 files changed, 10 insertions, 6 deletions
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]; |