src/core/config/parser.c
/**
 * Here we will handle the parsing and creation of a variable value
 */
Here we will handle the parsing and creation of a variable value
Here we will handle the parsing and creation of a variable value
static struct config_value *parser_parse_variable(const struct parser *parser, char *value)
{
        struct config_value *config_value = parser_resolve_variable(parser, value + 1);
        if (config_value == NULL) {
                return NULL;
        }
        free(value);
        return config_value;
}
static struct config_value * parser_parse_variable ( const struct parser * parser , char * value ) { struct config_value * config_value = parser_resolve_variable ( parser , value + 1 ) ; if ( config_value == NULL ) { return NULL ; } free ( value ) ; return config_value ; }
Here we will handle the parsing and creation of a variable value
Here we will handle the parsing and creation of a variable value
// we need to take the value (minus VARIABLE_START) and look it up // in the variable map. If it's found we need to duplicate it and store // it in a config item with the key passed in // We no longer need this value since we only needed it for the // variable lookup