IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 23, 2004, 7:36:01 AM (22 years ago)
Author:
eugene
Message:

fixed dvomath for strings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/lib.shell/check_stack.c

    r2792 r2801  
    1919      }
    2020
    21       /** if we demand a scalar, interpret strings as strings */
    22       if (validsize == 0) {
    23         stack[i].type  = 'W';
    24         continue;
    25       }
    26        
    2721      /** if this is a matrix, find the dimensions and check with existing values **/
    2822      if (IsBuffer (stack[i].name)) {
     
    6660        continue;
    6761      }
     62
     63      /* this is not a scalar, vector, or matrix.  must be string */
     64      stack[i].type  = 'W';
     65       
     66      /* let's not consider this an error
    6867      sprintf (line, "unknown object %s", stack[i].name);
    6968      push_error (line);
    70       return (-1);
     69      return (-1);
     70      */
    7171    }
    7272  }
     
    8080  return (size);
    8181}
     82
     83/* check stack identifies the data elements as scalar, vector, matrix, or word.
     84   operators have already been identified. 
     85   check stack returns the total stack dimensionality (0,1,2)
     86   on error, check stack returns -1
     87   possible errors:
     88     - mismatch with requested dimensionality
     89     - mismatch in data dimensions
     90*/
Note: See TracChangeset for help on using the changeset viewer.