some cosmetics, removed the CONFIG_DEFAULT error which is not used anymore

This commit is contained in:
Christian Thaeter 2008-09-10 13:14:50 +02:00
parent e8cc26efa4
commit 4b2973de27
2 changed files with 4 additions and 6 deletions

View file

@ -50,7 +50,7 @@ LUMIERA_ERROR_DEFINE (CONFIG_SYNTAX, "syntax error in configfile");
LUMIERA_ERROR_DEFINE (CONFIG_SYNTAX_KEY, "syntax error in key");
LUMIERA_ERROR_DEFINE (CONFIG_SYNTAX_VALUE, "syntax error in value");
LUMIERA_ERROR_DEFINE (CONFIG_NO_ENTRY, "no configuration entry");
LUMIERA_ERROR_DEFINE (CONFIG_DEFAULT, "illegal default value");
/**
* defaults for the configuraton system itself
@ -248,9 +248,8 @@ lumiera_config_set (const char* key, const char* delim_value)
LumieraConfigitem item = lumiera_config_lookup_item_find (&lumiera_global_config->keys, key);
if (item && item->parent != &lumiera_global_config->defaults)
{
TODO ("a user writeable file?");
TODO ("is a user writeable file?");
TODO (" replace delim_value");
//LumieraConfigitem
lumiera_configitem_set_value (item, delim_value);
}
else
@ -279,8 +278,6 @@ lumiera_config_set (const char* key, const char* delim_value)
}
}
TODO ("return item?");
return item;
}

View file

@ -48,7 +48,7 @@ LUMIERA_ERROR_DECLARE (CONFIG_SYNTAX);
LUMIERA_ERROR_DECLARE (CONFIG_SYNTAX_KEY);
LUMIERA_ERROR_DECLARE (CONFIG_SYNTAX_VALUE);
LUMIERA_ERROR_DECLARE (CONFIG_NO_ENTRY);
LUMIERA_ERROR_DECLARE (CONFIG_DEFAULT);
//TODO: Lumiera header includes//
#include "backend/config_lookup.h"
@ -237,6 +237,7 @@ LUMIERA_CONFIG_TYPES
#undef LUMIERA_CONFIG_TYPE
// * {{{ lumiera_config_reset(...) }}}
// * reset a value by key to the system default values, thus removes a user's configuration line.
/**