src/ui-prefs.c
static enum parser_error parse_prefs_expr(struct parser *p)
{
	struct prefs_data *d = parser_priv(p);

	const char *v;
	char *str;
	char *expr;
	char f;

	assert(d != NULL);

	/* XXX this can be avoided with a rewrite of process_pref_file_expr */
	str = expr = string_make(parser_getstr(p, "expr"));

	/* Parse the expr */
	v = process_pref_file_expr(&expr, &f);

	/* Set flag */
	d->bypass = streq(v, "0");

	string_free(str);

	return PARSE_ERROR_NONE;
}
/**
 * Parse one of the prefix-based logical expressions used in pref files
 */
Parse one of the prefix-based logical expressions used in pref files
Parse one of the prefix - based logical expressions used in pref files
static enum parser_error parse_prefs_expr(struct parser *p)
{
	struct prefs_data *d = parser_priv(p);
	const char *v;
	char *str;
	char *expr;
	char f;
	assert(d != NULL);
	str = expr = string_make(parser_getstr(p, "expr"));
	v = process_pref_file_expr(&expr, &f);
	d->bypass = streq(v, "0");
	string_free(str);
	return PARSE_ERROR_NONE;
}
static enum parser_error parse_prefs_expr ( struct parser * p ) { struct prefs_data * d = parser_priv ( p ) ; const char * v ; char * str ; char * expr ; char f ; assert ( d != NULL ) ; str = expr = string_make ( parser_getstr ( p , " " ) ) ; v = process_pref_file_expr ( & expr , & f ) ; d -> bypass = streq ( v , " " ) ; string_free ( str ) ; return PARSE_ERROR_NONE ; }
Parse one of the prefix-based logical expressions used in pref files
Parse one of the prefix - based logical expressions used in pref files
/* XXX this can be avoided with a rewrite of process_pref_file_expr */ /* Parse the expr */ /* Set flag */