projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20031203-3-src
[rocksndiamonds.git]
/
src
/
libgame
/
setup.c
diff --git
a/src/libgame/setup.c
b/src/libgame/setup.c
index ac0bfd4cd753a6dcec5f3581ce4e13e2d50a2a2f..65ba26c79c5fd2a583e7e19dafe29a03fe904471 100644
(file)
--- a/
src/libgame/setup.c
+++ b/
src/libgame/setup.c
@@
-1391,6
+1391,14
@@
void setHashEntry(SetupFileHash *hash, char *token, char *value)
Error(ERR_EXIT, "cannot insert into hash -- aborting");
}
Error(ERR_EXIT, "cannot insert into hash -- aborting");
}
+char *removeHashEntry(SetupFileHash *hash, char *token)
+{
+ if (hash == NULL)
+ return NULL;
+
+ return remove_hash_entry(hash, token);
+}
+
#if 0
#ifdef DEBUG
static void printSetupFileHash(SetupFileHash *hash)
#if 0
#ifdef DEBUG
static void printSetupFileHash(SetupFileHash *hash)
@@
-1506,10
+1514,12
@@
static void *loadSetupFileData(char *filename, boolean use_hash)
if (*value != ' ' && *value != '\t')
break;
if (*value != ' ' && *value != '\t')
break;
+#if 0
if (*value == '\0')
value = "true"; /* treat tokens without value as "true" */
if (*value == '\0')
value = "true"; /* treat tokens without value as "true" */
+#endif
- if (*token
&& *value
)
+ if (*token)
{
if (use_hash)
setHashEntry((SetupFileHash *)setup_file_data, token, value);
{
if (use_hash)
setHashEntry((SetupFileHash *)setup_file_data, token, value);