comparison src/pt-select.cc @ 4219:23d06c9e1edd

[project @ 2002-12-06 21:29:17 by jwe]
author jwe
date Fri, 06 Dec 2002 21:29:19 +0000
parents 8ad52ec4f374
children 5ebaf7eee36e
comparison
equal deleted inserted replaced
4218:4a392a01e51a 4219:23d06c9e1edd
71 // List of if commands. 71 // List of if commands.
72 72
73 void 73 void
74 tree_if_command_list::eval (void) 74 tree_if_command_list::eval (void)
75 { 75 {
76 for (Pix p = lst.first (); p != 0; lst.next (p)) 76 for (iterator p = begin (); p != end (); p++)
77 { 77 {
78 tree_if_clause *t = lst (p); 78 tree_if_clause *t = *p;
79 79
80 if (t->eval () || error_state) 80 if (t->eval () || error_state)
81 break; 81 break;
82 } 82 }
83 } 83 }
228 // List of switch cases. 228 // List of switch cases.
229 229
230 void 230 void
231 tree_switch_case_list::eval (const octave_value& val) 231 tree_switch_case_list::eval (const octave_value& val)
232 { 232 {
233 for (Pix p = lst.first (); p != 0; lst.next (p)) 233 for (iterator p = begin (); p != end (); p++)
234 { 234 {
235 tree_switch_case *t = lst (p); 235 tree_switch_case *t = *p;
236 236
237 if (t->eval (val) || error_state) 237 if (t->eval (val) || error_state)
238 break; 238 break;
239 } 239 }
240 } 240 }