112 if ((ch = (global->
entity_cbs[i])(name)) >= 0)
141 if (i < global->num_entity_cbs)
432 last = (int)(
sizeof(entities) /
sizeof(entities[0]) - 1);
434 while ((last - first) > 1)
436 current = (first + last) / 2;
438 if ((diff = strcmp(name, entities[current].name)) == 0)
439 return (entities[current].val);
451 if (!strcmp(name, entities[first].name))
452 return (entities[first].val);
453 else if (!strcmp(name, entities[last].name))
454 return (entities[last].val);