LIST_FOREACH(p, headers){
- pv = get_var_struct(p->name, hash);
+ pv = get_var_struct(p->name, VAR_HEADER, hash);
if (!pv)
continue;
u = unfold(p->value);
// find new headers
for (i = 0; i < HASHSIZE; i++){
LIST_FOREACH(pv, hash + i){
- if (isupper(pv->name[0]) && pv->modified){
+ if (pv->type == VAR_HEADER && pv->modified){
pv->modified = 0;
p = xmalloc(sizeof(struct hlist));
p->name = xstrdup(pv->name);
p->value = get_var(pv->varcode);
- list_add_last(headers,&p->car);
+ list_add_last(headers, &p->car);
}
}
}
struct variable* pv;
LIST_FOREACH(p, current_headers){
- pv = get_var_struct(p->name, hash);
+ pv = get_var_struct(p->name, VAR_HEADER, hash);
if (!pv)
continue;
u = unfold(p->value);