Lines Matching refs:tl
766 struct trans_list *tl; in __trans_list_add() local
768 tl = calloc(1, sizeof(*tl)); in __trans_list_add()
769 if (!tl) in __trans_list_add()
772 tl->i = i; in __trans_list_add()
773 tl->a = strdup(a); in __trans_list_add()
775 nl_list_add_tail(&tl->list, head); in __trans_list_add()
782 struct trans_list *tl, *next; in __trans_list_clear() local
784 nl_list_for_each_entry_safe(tl, next, head, list) { in __trans_list_clear()
785 free(tl->a); in __trans_list_clear()
786 free(tl); in __trans_list_clear()
808 struct trans_list *tl; in __list_type2str() local
810 nl_list_for_each_entry(tl, head, list) { in __list_type2str()
811 if (tl->i == type) { in __list_type2str()
812 snprintf(buf, len, "%s", tl->a); in __list_type2str()
863 struct trans_list *tl; in __list_str2type() local
870 nl_list_for_each_entry(tl, head, list) { in __list_str2type()
871 if (!strcasecmp(tl->a, buf)) in __list_str2type()
872 return tl->i; in __list_str2type()