equal
deleted
inserted
replaced
162 std::string pre_elem_str = "", |
162 std::string pre_elem_str = "", |
163 std::string inter_elem_str = "", |
163 std::string inter_elem_str = "", |
164 std::string post_elem_str = "") { |
164 std::string post_elem_str = "") { |
165 if (list->n > 0) { |
165 if (list->n > 0) { |
166 s4o.print(pre_elem_str); |
166 s4o.print(pre_elem_str); |
167 list->elements[0]->accept(*this); |
167 list->get_element(0)->accept(*this); |
168 } |
168 } |
169 |
169 |
170 for(int i = 1; i < list->n; i++) { |
170 for(int i = 1; i < list->n; i++) { |
171 s4o.print(inter_elem_str); |
171 s4o.print(inter_elem_str); |
172 list->elements[i]->accept(*this); |
172 list->get_element(i)->accept(*this); |
173 } |
173 } |
174 |
174 |
175 if (list->n > 0) |
175 if (list->n > 0) |
176 s4o.print(post_elem_str); |
176 s4o.print(post_elem_str); |
177 |
177 |