Changeset 2801 for trunk/Ohana/src/opihi/lib.shell/check_stack.c
- Timestamp:
- Dec 23, 2004, 7:36:01 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/lib.shell/check_stack.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.shell/check_stack.c
r2792 r2801 19 19 } 20 20 21 /** if we demand a scalar, interpret strings as strings */22 if (validsize == 0) {23 stack[i].type = 'W';24 continue;25 }26 27 21 /** if this is a matrix, find the dimensions and check with existing values **/ 28 22 if (IsBuffer (stack[i].name)) { … … 66 60 continue; 67 61 } 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 68 67 sprintf (line, "unknown object %s", stack[i].name); 69 68 push_error (line); 70 return (-1); 69 return (-1); 70 */ 71 71 } 72 72 } … … 80 80 return (size); 81 81 } 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.
