Lines Matching refs:ex
40 struct expression *ex, *at; in alloc_and_hook_expr() local
42 ex = malloc(sizeof(struct expression)); in alloc_and_hook_expr()
43 if (ex == NULL) { in alloc_and_hook_expr()
47 memset(ex, 0, sizeof(struct expression)); in alloc_and_hook_expr()
49 *exp_p = ex; in alloc_and_hook_expr()
54 *last_p = ex; in alloc_and_hook_expr()
57 at->next = ex; in alloc_and_hook_expr()
58 ex->prev = at; in alloc_and_hook_expr()
59 *last_p = ex; in alloc_and_hook_expr()
61 return (ex); in alloc_and_hook_expr()
212 struct expression *at, *ex; in walk_back_and_insert_paren() local
215 ex = malloc(sizeof(struct expression)); in walk_back_and_insert_paren()
216 if (ex == NULL) { in walk_back_and_insert_paren()
220 memset(ex, 0, sizeof(struct expression)); in walk_back_and_insert_paren()
221 ex->type = TYPE_PARN_OPEN; in walk_back_and_insert_paren()
227 ex->next = at; in walk_back_and_insert_paren()
228 at->prev = ex; in walk_back_and_insert_paren()
229 *beg = ex; in walk_back_and_insert_paren()
235 ex->prev = at->prev; in walk_back_and_insert_paren()
236 ex->prev->next = ex; in walk_back_and_insert_paren()
237 ex->next = at; in walk_back_and_insert_paren()
238 at->prev = ex; in walk_back_and_insert_paren()
272 struct expression *at, *ex; in walk_fwd_and_insert_paren() local
274 ex = malloc(sizeof(struct expression)); in walk_fwd_and_insert_paren()
275 if (ex == NULL) { in walk_fwd_and_insert_paren()
279 memset(ex, 0, sizeof(struct expression)); in walk_fwd_and_insert_paren()
280 ex->type = TYPE_PARN_CLOSE; in walk_fwd_and_insert_paren()
281 *added = ex; in walk_fwd_and_insert_paren()
288 ex->next = at->next; in walk_fwd_and_insert_paren()
289 ex->prev = at; in walk_fwd_and_insert_paren()
290 at->next = ex; in walk_fwd_and_insert_paren()