summaryrefslogtreecommitdiff
path: root/src/doom/deh_bexstr.c
diff options
context:
space:
mode:
authorFabian Greffrath2014-09-11 12:37:28 +0200
committerFabian Greffrath2014-09-11 12:37:28 +0200
commit5f3eb6fee3165a44ca032c9642130dddb2128e1d (patch)
tree8c5f74f4ced867cd2ac50f8b8377734883a774cb /src/doom/deh_bexstr.c
parent366f45c10a632443767cbda6f7b2f3d98a60d60b (diff)
downloadchocolate-doom-5f3eb6fee3165a44ca032c9642130dddb2128e1d.tar.gz
chocolate-doom-5f3eb6fee3165a44ca032c9642130dddb2128e1d.tar.bz2
chocolate-doom-5f3eb6fee3165a44ca032c9642130dddb2128e1d.zip
improvements to the [STRINGS] section parser
- restructure DEH_ReadLine() to avoid use of "goto" - bex_string_t type name ends in "_t" - declare constant table as "static const" - add magic comment *allow-extended-strings* and corresponding variable deh_allow_extended_strings - fix logical error when no [STRINGS] section is registered to which corrent_section could be compared
Diffstat (limited to 'src/doom/deh_bexstr.c')
-rw-r--r--src/doom/deh_bexstr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doom/deh_bexstr.c b/src/doom/deh_bexstr.c
index 5adc2fd6..e29b71dc 100644
--- a/src/doom/deh_bexstr.c
+++ b/src/doom/deh_bexstr.c
@@ -28,10 +28,10 @@
typedef struct {
char *macro;
char *string;
-} bex_string;
+} bex_string_t;
// mnemonic keys table
-static bex_string bex_stringtable[] = {
+static const bex_string_t bex_stringtable[] = {
// part 1 - general initialization and prompts
{"D_DEVSTR", D_DEVSTR},
{"D_CDROM", D_CDROM},