Lines Matching defs:fieldtype
87 * Allocate a new fieldtype structure, initialise it and return the
186 * Free the storage used by the fieldtype.
189 free_fieldtype(FIELDTYPE *fieldtype)
191 if (fieldtype == NULL)
194 if (fieldtype->refcount > 0)
197 if ((fieldtype->flags & _TYPE_IS_BUILTIN) == _TYPE_IS_BUILTIN)
200 if ((fieldtype->flags & _TYPE_IS_LINKED) == _TYPE_IS_LINKED)
202 fieldtype->link->next->refcount--;
203 fieldtype->link->prev->refcount--;
206 free(fieldtype);
215 set_fieldtype_arg(FIELDTYPE *fieldtype, char * (*make_args)(va_list *),
218 if ((fieldtype == NULL) || (make_args == NULL)
222 fieldtype->make_args = make_args;
223 fieldtype->copy_args = copy_args;
224 fieldtype->free_args = free_args;
230 * Set up the choice list functions for the given fieldtype.
233 set_fieldtype_choice(FIELDTYPE *fieldtype, int (*next_choice)(FIELD *, char *),
236 if ((fieldtype == NULL) || (next_choice == NULL)
240 fieldtype->next_choice = next_choice;
241 fieldtype->prev_choice = prev_choice;