示例#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));
}