Lines Matching defs:object
49 * object
53 bof_t *object;
55 object = calloc(1, sizeof(bof_t));
56 if (object == NULL)
58 object->refcount = 1;
59 object->type = BOF_TYPE_OBJECT;
60 object->size = 12;
61 return object;
64 bof_t *bof_object_get(bof_t *object, const char *keyname)
68 for (i = 0; i < object->array_size; i += 2) {
69 if (!strcmp(object->array[i]->value, keyname)) {
70 return object->array[i + 1];
76 int bof_object_set(bof_t *object, const char *keyname, bof_t *value)
81 if (object->type != BOF_TYPE_OBJECT)
83 r = bof_entry_grow(object);
89 object->array[object->array_size++] = key;
90 object->array[object->array_size++] = value;
91 object->size += value->size;
92 object->size += key->size;
253 fprintf(stderr, "%p object [%d %d]\n", bof, bof->array_size / 2, bof->size);
342 fprintf(stderr, "%s failed to create root object\n", __func__);