IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 3, 2006, 7:24:42 AM (20 years ago)
Author:
eugene
Message:

fixed while evaluation

File:
1 edited

Legend:

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

    r7917 r9844  
    66
    77  int ThisList, depth, i, done, status, NLINES, j;
    8   char *input, *val;
     8  char *input, *val, *logic_line;
    99  int logic, size;
    1010  Macro loop;
     
    8383    if (loop_continue) continue;
    8484
    85     val = dvomath (1, &argv[1], &size, 0);
     85    logic_line = strcreate (argv[1]);
     86    logic_line = expand_vars (logic_line);
     87    val = dvomath (1, &logic_line, &size, 0);
     88    free (logic_line);
     89
    8690    if (val == NULL) return (FALSE);
    8791    logic = atof (val); /* warning: round-off error is a danger */
Note: See TracChangeset for help on using the changeset viewer.