Changeset 10846 for trunk/Ohana/src/opihi/cmd.basic/run_while.c
- Timestamp:
- Dec 27, 2006, 10:43:47 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.basic/run_while.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.basic/run_while.c
r10647 r10846 78 78 /* execute for loop */ 79 79 do { 80 loop_continue = loop_break = FALSE;81 80 status = exec_loop (&loop); 81 if (loop_next) continue; 82 if (loop_last) break; 82 83 if (loop_break) break; 83 if (loop_continue) continue;84 84 85 85 logic_line = strcreate (argv[1]); … … 92 92 free (val); 93 93 } while (logic && !interrupt); 94 loop_continue = loop_break = FALSE; 94 loop_last = loop_next = FALSE; 95 /* 'last' and 'next' should only affect one loop */ 95 96 if (auto_break && !status) loop_break = TRUE; 96 97 … … 100 101 } 101 102 free (loop.line); 103 102 104 if (loop_break) return (FALSE); 103 105 return (TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.
