comparison lwlink/expr.c @ 206:299c5d793aca

Made lwlink smarter about not included unneeded (unreferenced) members of a library file
author lost
date Mon, 20 Apr 2009 02:24:33 +0000
parents 106c2fe3c9d9
children bae1e3ecdce1
comparison
equal deleted inserted replaced
205:42df94f30d82 206:299c5d793aca
49 s -> head = s -> head -> next; 49 s -> head = s -> head -> next;
50 lw_expr_term_free(s -> tail -> term); 50 lw_expr_term_free(s -> tail -> term);
51 lw_free(s -> tail); 51 lw_free(s -> tail);
52 } 52 }
53 lw_free(s); 53 lw_free(s);
54 }
55
56 lw_expr_stack_t *lw_expr_stack_dup(lw_expr_stack_t *s)
57 {
58 lw_expr_stack_node_t *t;
59 lw_expr_stack_t *s2;
60
61 s2 = lw_expr_stack_create();
62 for (t = s -> head; t; t = t -> next)
63 {
64 lw_expr_stack_push(s2, t -> term);
65 }
66 return s2;
54 } 67 }
55 68
56 void lw_expr_term_free(lw_expr_term_t *t) 69 void lw_expr_term_free(lw_expr_term_t *t)
57 { 70 {
58 if (t) 71 if (t)