Lines Matching refs:objects
99 end = SIZE(objects); in init_objects()
102 let = objects[first].oc_olet; in init_objects()
104 while (last < end && objects[last].oc_olet == let in init_objects()
105 && objects[last].oc_name != NULL) in init_objects()
117 sum += objects[j].oc_prob; in init_objects()
120 objects[j].oc_prob = (100 + j - first) / (last - first); in init_objects()
126 if (objects[first].oc_descr != NULL && let != TOOL_SYM) { in init_objects()
128 while (last < end && objects[last].oc_olet == let) in init_objects()
133 tmp = objects[j].oc_descr; in init_objects()
134 objects[j].oc_descr = objects[i].oc_descr; in init_objects()
135 objects[i].oc_descr = tmp; in init_objects()
147 while ((prob -= objects[i].oc_prob) >= 0) in probtype()
149 if (objects[i].oc_olet != let || !objects[i].oc_name) in probtype()
162 objects[first + j].oc_prob = 0; in setgemprobs()
164 if (first >= LAST_GEM || first >= SIZE(objects) || in setgemprobs()
165 objects[first].oc_olet != GEM_SYM || in setgemprobs()
166 objects[first].oc_name == NULL) in setgemprobs()
170 objects[j].oc_prob = (20 + j - first) / (LAST_GEM - first); in setgemprobs()
185 bwrite(fd, objects, sizeof objects); in savenames()
191 for (i = 0; i < SIZE(objects); i++) { in savenames()
193 if (objects[i].FIELD) { \ in savenames()
194 len = strlen(objects[i].FIELD) + 1; \ in savenames()
196 bwrite(fd, objects[i].FIELD, len); \ in savenames()
211 mread(fd, objects, sizeof objects); in restnames()
212 for (i = 0; i < SIZE(objects); i++) { in restnames()
214 if (objects[i].FIELD) { \ in restnames()
216 objects[i].FIELD = alloc(len); \ in restnames()
217 mread(fd, __UNCONST(objects[i].FIELD), len); \ in restnames()
238 end = SIZE(objects); in dodiscovered()
258 objects[i].oc_uname != NULL || in interesting_to_discover()
259 (objects[i].oc_name_known && objects[i].oc_descr != NULL) in interesting_to_discover()