Lines Matching defs:ot
44 struct FcObjectOtherTypeInfo *ots, *ot;
55 ot = ots->next;
59 ots = ot;
66 struct FcObjectOtherTypeInfo *ots, *ot;
71 for (ot = ots; ot; ot = ot->next)
72 if (0 == strcmp (ot->object.object, str))
75 if (!ot)
77 ot = malloc (sizeof (*ot));
78 if (!ot)
81 ot->object.object = (char *) FcStrdup (str);
82 ot->object.type = FcTypeUnknown;
83 ot->id = fc_atomic_int_add (next_id, +1);
84 if (ot->id < (FC_MAX_BASE_OBJECT + FC_EXT_OBJ_INDEX))
89 ot->next = ots;
91 if (!fc_atomic_ptr_cmpexch (&other_types, ots, ot)) {
92 if (ot->object.object)
93 free (ot->object.object);
94 free (ot);
100 *id = ot->id;
102 return &ot->object;
133 struct FcObjectOtherTypeInfo *ot;
135 for (ot = fc_atomic_ptr_get (&other_types); ot; ot = ot->next)
136 if (ot->id == id)
137 return ot->object.object;
151 struct FcObjectOtherTypeInfo *ot;
153 for (ot = fc_atomic_ptr_get (&other_types); ot; ot = ot->next)
154 if (ot->id == id)
155 return &ot->object;