From 5f3eb6fee3165a44ca032c9642130dddb2128e1d Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Thu, 11 Sep 2014 12:37:28 +0200 Subject: 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 --- src/doom/deh_bexstr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/doom/deh_bexstr.c') 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}, -- cgit v1.2.3