Home | History | Annotate | Download | only in util

Lines Matching refs:ent

37 	struct subst_entry	*ent = 0;
41 ent = (struct subst_entry *) malloc(sizeof(struct subst_entry));
42 if (!ent)
44 ent->name = (char *) malloc(strlen(name)+1);
45 if (!ent->name)
47 ent->value = (char *) malloc(strlen(value)+1);
48 if (!ent->value)
50 strcpy(ent->name, name);
51 strcpy(ent->value, value);
52 ent->next = subst_table;
53 subst_table = ent;
56 if (ent) {
57 free(ent->name);
58 free(ent->value);
59 free(ent);
66 struct subst_entry *ent;
68 for (ent = subst_table; ent; ent = ent->next) {
69 if (strcmp(name, ent->name) == 0)
72 return ent;
124 struct subst_entry *ent;
153 ent = fetch_subst_entry(replace_name);
154 if (!ent) {
162 replace_name, ent->value);
165 replace_string(ptr, end_ptr, ent->value);
166 if ((ent->value[0] == '@') &&
167 (strlen(replace_name) == strlen(ent->value)-2) &&
168 !strncmp(replace_name, ent->value+1,
169 strlen(ent->value)-2))
171 ptr += strlen(ent->value);
195 ent = fetch_subst_entry(replace_name);
196 if (!ent) {
202 replace_name, ent->value);
205 replace_string(ptr, end_ptr, ent->value);