Exemplo n.º 1
0
static unsigned int parse_var2val_list (char *wordlist, struct var2val *patterns, unsigned int defaultvalue) {
	int comma;
	unsigned int retval = 0;
	if ((wordlist == NULL) || (*wordlist == '\0')) {
		return defaultvalue;
	}
	while (*wordlist) {
		comma = strcspn (wordlist, ",");
		retval |= parse_var2val (wordlist, comma, patterns, 0);
		wordlist += comma + 1;
	}
	return retval;
}
Exemplo n.º 2
0
unsigned int cfg_log_level (void) {
	return parse_var2val (configvars [CFGVAR_LOG_LEVEL], -1, v2v_log_level, LOG_ERR);
}
Exemplo n.º 3
0
unsigned int cfg_log_perror (void) {
	return parse_var2val (configvars [CFGVAR_LOG_STDERR], -1, v2v_log_perror, 0);
}