IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 27, 2006, 10:43:47 AM (19 years ago)
Author:
eugene
Message:

added last, next, return, fixed continue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.basic/run_while.c

    r10647 r10846  
    7878  /* execute for loop */
    7979  do {
    80     loop_continue = loop_break = FALSE;
    8180    status = exec_loop (&loop);
     81    if (loop_next) continue;
     82    if (loop_last) break;
    8283    if (loop_break) break;
    83     if (loop_continue) continue;
    8484
    8585    logic_line = strcreate (argv[1]);
     
    9292    free (val);
    9393  } while (logic && !interrupt);
    94   loop_continue = loop_break = FALSE;
     94  loop_last = loop_next = FALSE;
     95  /* 'last' and 'next' should only affect one loop */
    9596  if (auto_break && !status) loop_break = TRUE;
    9697
     
    100101  }
    101102  free (loop.line);
     103
    102104  if (loop_break) return (FALSE);
    103105  return (TRUE);
Note: See TracChangeset for help on using the changeset viewer.