Ejemplo n.º 1
0
int ts_pat_is_same(struct ts_pat *pat1, struct ts_pat *pat2) {
	if (pat1 == pat2) return 1; // Same
	if (pat1 && pat2)
		return ts_section_is_same(pat1->section_header, pat2->section_header);
	else
		return 0;
}
Ejemplo n.º 2
0
int ts_pat_is_same(struct ts_pat *pat1, struct ts_pat *pat2) {
	if (pat1 == pat2) return 1; // Same
	if ((!pat1 && pat2) || (pat1 && !pat2)) return 0; // Not same (one is NULL)
	return ts_section_is_same(pat1->section_header, pat2->section_header);
}
Ejemplo n.º 3
0
int ts_nit_is_same(struct ts_nit *nit1, struct ts_nit *nit2) {
	if (nit1 == nit2) return 1; // Same
	if ((!nit1 && nit2) || (nit1 && !nit2)) return 0; // Not same (one is NULL)
	return ts_section_is_same(nit1->section_header, nit2->section_header);
}
Ejemplo n.º 4
0
int ts_cat_is_same(struct ts_cat *cat1, struct ts_cat *cat2) {
	if (cat1 == cat2) return 1; // Same
	if ((!cat1 && cat2) || (cat1 && !cat2)) return 0; // Not same (one is NULL)
	return ts_section_is_same(cat1->section_header, cat2->section_header);
}