Start writing a new configuration system

For degesch but in the long term for the rest as well.
This commit is contained in:
2015-05-01 15:24:42 +02:00
parent 452f42d96e
commit 6bf57d3450
2 changed files with 596 additions and 12 deletions

View File

@@ -108,18 +108,6 @@ static struct config_item g_config_table[] =
// All text stored in our data structures is encoded in UTF-8.
// Or at least should be. The exception is IRC identifiers.
static bool
isdigit_ascii (int c)
{
return c >= '0' && c <= '9';
}
static int
toupper_ascii (int c)
{
return c >= 'A' && c <= 'Z' ? c : c - ('a' - 'A');
}
/// Shorthand to set an error and return failure from the function
#define FAIL(...) \
BLOCK_START \