예제 #1
0
파일: songvec.c 프로젝트: azuwis/mpd
static int
compare_tag_item(const struct tag *a, const struct tag *b, enum tag_type type)
{
	if (a == NULL)
		return b == NULL ? 0 : -1;

	if (b == NULL)
		return 1;

	return compare_number_string(tag_get_value(a, type),
				     tag_get_value(b, type));
}
예제 #2
0
파일: songvec.c 프로젝트: GunioRobot/mpd
static int
compare_tag_item(const struct tag *a, const struct tag *b, enum tag_type type)
{
	return compare_number_string(tag_get_value_checked(a, type),
				     tag_get_value_checked(b, type));
}