widget_value *xmalloc_widget_value(void) { widget_value *tmp = malloc_widget_value(); if (!tmp) memory_full(); return tmp; }
static widget_value * copy_widget_value_tree (widget_value *val, change_type change) { widget_value* copy; if (!val) return NULL; if (val == (widget_value *) 1) return val; copy = malloc_widget_value (); copy->name = safe_strdup (val->name); copy->value = safe_strdup (val->value); copy->key = safe_strdup (val->key); copy->help = val->help; copy->enabled = val->enabled; copy->button_type = val->button_type; copy->selected = val->selected; copy->edited = False; copy->change = change; copy->this_one_change = change; copy->contents = copy_widget_value_tree (val->contents, change); copy->call_data = val->call_data; copy->next = copy_widget_value_tree (val->next, change); copy->toolkit_data = NULL; copy->free_toolkit_data = False; return copy; }
widget_value * xmalloc_widget_value (void) { widget_value *value; block_input (); value = malloc_widget_value (); unblock_input (); return value; }
widget_value * xmalloc_widget_value (void) { widget_value *value; BLOCK_INPUT; value = malloc_widget_value (); UNBLOCK_INPUT; return value; }