Lines Matching refs:e
43 struct env *e; in env_add() local
45 e = xmalloc(sizeof(*e)); in env_add()
46 e->name = xstrdup(name); in env_add()
47 e->value = xstrdup(value); in env_add()
49 list_add_tail(&e->node, &env_list); in env_add()
52 static void env_del(struct env *e) in env_del() argument
54 list_del(&e->node); in env_del()
55 free(e->name); in env_del()
56 free(e->value); in env_del()
57 free(e); in env_del()
63 struct env *e; in env_expand() local
69 list_for_each_entry(e, &env_list, node) { in env_expand()
70 if (!strcmp(name, e->name)) in env_expand()
71 return xstrdup(e->value); in env_expand()
89 struct env *e, *tmp; in env_write_dep() local
91 list_for_each_entry_safe(e, tmp, &env_list, node) { in env_write_dep()
92 fprintf(f, "ifneq \"$(%s)\" \"%s\"\n", e->name, e->value); in env_write_dep()
95 env_del(e); in env_write_dep()