Start writing a new configuration system
For degesch but in the long term for the rest as well.
This commit is contained in:
12
degesch.c
12
degesch.c
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user