Lines Matching refs:ttn
295 struct ttnam *ttn = NULL;
310 if (typenames[i].typename[0] == 0 && ttn == NULL)
311 ttn = &typenames[i];
313 if (ttn == NULL) {
319 if (strlen(typename) > sizeof(ttn->typename) - 1) {
325 strncpy(ttn->typename, typename, sizeof(ttn->typename));
326 ttn->typename[sizeof(ttn->typename) - 1] = '\0';
328 strncpy(ttn->macroname, ttn->typename, sizeof(ttn->macroname));
329 ttn->macroname[sizeof(ttn->macroname) - 1] = '\0';
331 ttn->type = type;
332 c = strlen(ttn->macroname);
334 if (ttn->macroname[c - 1] == '-')
335 ttn->macroname[c - 1] = '_';
341 "RRTYPE_%s_ATTRIBUTES", upper(ttn->macroname));
346 if (ttn->attr[0] != 0 && strcmp(attr, ttn->attr) != 0) {
348 "%s, %s\n", type, ttn->attr, attr);
352 if (strlen(attr) > sizeof(ttn->attr) - 1) {
358 strncpy(ttn->attr, attr, sizeof(ttn->attr));
359 ttn->attr[sizeof(ttn->attr) - 1] = '\0';
361 ttn->sorted = 0;
510 struct ttnam *ttn, *ttn2;
735 ttn = find_typename(i);
736 if (ttn == NULL)
742 if (ttn->sorted != 0)
745 hash = HASH(ttn->typename);
771 ttn = find_typename(i);
772 if (ttn == NULL)
775 i, upper(ttn->attr));
782 ttn = find_typename(i);
783 if (ttn == NULL)
795 i, upper(ttn->typename));