Lines Matching refs:e
46 struct env *e; in env_add() local
48 e = xmalloc(sizeof(*e)); in env_add()
49 e->name = xstrdup(name); in env_add()
50 e->value = xstrdup(value); in env_add()
52 list_add_tail(&e->node, &env_list); in env_add()
55 static void env_del(struct env *e) in env_del() argument
57 list_del(&e->node); in env_del()
58 free(e->name); in env_del()
59 free(e->value); in env_del()
60 free(e); in env_del()
66 struct env *e; in env_expand() local
72 list_for_each_entry(e, &env_list, node) { in env_expand()
73 if (!strcmp(name, e->name)) in env_expand()
74 return xstrdup(e->value); in env_expand()
92 struct env *e, *tmp; in env_write_dep() local
94 list_for_each_entry_safe(e, tmp, &env_list, node) { in env_write_dep()
95 fprintf(f, "ifneq \"$(%s)\" \"%s\"\n", e->name, e->value); in env_write_dep()
98 env_del(e); in env_write_dep()