73 static void value_free_hash_doall_arg(
CONF_VALUE *
a,
75 static void value_free_stack_doall(
CONF_VALUE *a);
85 if ((conf == NULL) || (section == NULL))
return(NULL);
134 if (name == NULL)
return(NULL);
139 vv.
name=(
char *)name;
142 if (v != NULL)
return(v->
value);
143 if (strcmp(section,
"ENV") == 0)
146 if (p != NULL)
return(p);
150 vv.
name=(
char *)name;
158 return(getenv(name));
170 if (str == NULL)
return(0);
182 static unsigned long conf_value_hash(
const CONF_VALUE *v)
192 if (a->section != b->section)
194 i=strcmp(a->section,b->section);
198 if ((a->name != NULL) && (b->name != NULL))
200 i=strcmp(a->name,b->name);
203 else if (a->name == b->name)
206 return((a->name == NULL)?-1:1);
216 if (conf->data == NULL)
226 if (conf == NULL || conf->data == NULL)
return;
248 static void value_free_stack_doall(
CONF_VALUE *a)
254 if (a->
name != NULL)
return;