Lines Matching full:ex
38 struct expression *ex, *at; in alloc_and_hook_expr() local
40 ex = malloc(sizeof(struct expression)); in alloc_and_hook_expr()
41 if (ex == NULL) { in alloc_and_hook_expr()
45 memset(ex, 0, sizeof(struct expression)); in alloc_and_hook_expr()
47 *exp_p = ex; in alloc_and_hook_expr()
52 *last_p = ex; in alloc_and_hook_expr()
55 at->next = ex; in alloc_and_hook_expr()
56 ex->prev = at; in alloc_and_hook_expr()
57 *last_p = ex; in alloc_and_hook_expr()
59 return (ex); in alloc_and_hook_expr()
210 struct expression *at, *ex; in walk_back_and_insert_paren() local
213 ex = malloc(sizeof(struct expression)); in walk_back_and_insert_paren()
214 if (ex == NULL) { in walk_back_and_insert_paren()
218 memset(ex, 0, sizeof(struct expression)); in walk_back_and_insert_paren()
219 ex->type = TYPE_PARN_OPEN; in walk_back_and_insert_paren()
225 ex->next = at; in walk_back_and_insert_paren()
226 at->prev = ex; in walk_back_and_insert_paren()
227 *beg = ex; in walk_back_and_insert_paren()
233 ex->prev = at->prev; in walk_back_and_insert_paren()
234 ex->prev->next = ex; in walk_back_and_insert_paren()
235 ex->next = at; in walk_back_and_insert_paren()
236 at->prev = ex; in walk_back_and_insert_paren()
270 struct expression *at, *ex; in walk_fwd_and_insert_paren() local
272 ex = malloc(sizeof(struct expression)); in walk_fwd_and_insert_paren()
273 if (ex == NULL) { in walk_fwd_and_insert_paren()
277 memset(ex, 0, sizeof(struct expression)); in walk_fwd_and_insert_paren()
278 ex->type = TYPE_PARN_CLOSE; in walk_fwd_and_insert_paren()
279 *added = ex; in walk_fwd_and_insert_paren()
286 ex->next = at->next; in walk_fwd_and_insert_paren()
287 ex->prev = at; in walk_fwd_and_insert_paren()
288 at->next = ex; in walk_fwd_and_insert_paren()