11 static int free_item(
ITEM * item)
17 for (list = item->
list; list !=
NULL; list = next) {
32 item = (
ITEM *) G_malloc((
size_t)
sizeof(
ITEM));
51 static int remove_value(
ITEM * item,
const char *
value)
56 for (l = *p;
l; l = *p) {
57 if (value && l->
value && !strcmp(value, l->
value)) {
80 list = (
LIST *) G_malloc((
size_t)
sizeof(
LIST));
98 remove_value(item, value);
141 if (strcmp(name, item->
name) == 0)
151 static int delink_pad(
PAD * pad)
171 pad = (
PAD *) G_malloc((
size_t)
sizeof(
PAD));
198 for (item = pad->
items; item !=
NULL; item = next) {
211 for (pad = padlist; pad !=
NULL; pad = pad->
next)
212 if (strcmp(name, pad->
name) == 0)
sprintf(buf2,"%s", G3D_CATS_ELEMENT)
void G_free(void *buf)
Free allocated memory.
char * G_store(const char *s)
Copy string to allocated memory.
int new_item(char *item, char *menu, char **tcl_lines, int line_no)
int invent_pad(char *name)
ITEM * find_item(PAD *pad, const char *name)
PAD * find_pad(const char *name)
int delete_item(PAD *pad, const char *name)
int create_pad(const char *name)
int append_item(PAD *pad, const char *name, const char *value, int replace)