IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14178


Ignore:
Timestamp:
Jul 12, 2007, 2:27:08 PM (19 years ago)
Author:
eugene
Message:

fixed behavior of break under autobreak off

Location:
trunk/Ohana/src/opihi/cmd.basic
Files:
2 edited

Legend:

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

    r11084 r14178  
    9191    if (loop_break) break;
    9292  }
     93  /* 'last' and 'next' should only affect one loop */
    9394  loop_last = loop_next = FALSE;
    94   /* 'last' and 'next' should only affect one loop */
     95
     96  /* break should propagate up if auto_break is set */
     97  loop_break = FALSE;
    9598  if (auto_break && !status) loop_break = TRUE;
    9699
  • trunk/Ohana/src/opihi/cmd.basic/run_while.c

    r10846 r14178  
    9292    free (val);
    9393  } while (logic && !interrupt);
     94  /* 'last' and 'next' should only affect one loop */
    9495  loop_last = loop_next = FALSE;
    95   /* 'last' and 'next' should only affect one loop */
     96
     97  /* break should propagate up if auto_break is set */
     98  loop_break = FALSE;
    9699  if (auto_break && !status) loop_break = TRUE;
    97100
Note: See TracChangeset for help on using the changeset viewer.