Changeset 3318 for trunk/Ohana/src/opihi/lib.shell/stack_math.c
- Timestamp:
- Feb 24, 2005, 3:44:00 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/lib.shell/stack_math.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.shell/stack_math.c
r3029 r3318 1116 1116 char line[512]; 1117 1117 1118 /* evaluate stack will only call WW_binary with one numerical value, 1119 and only in the case that the string did not parse to a number 1120 thus: string == number -> false */ 1121 if (!strncasecmp (&V1[0].type, "S", 1)) { 1122 value = (op[0] == 'N'); 1123 goto escape; 1124 } 1125 if (!strncasecmp (&V2[0].type, "S", 1)) { 1126 value = (op[0] == 'N'); 1127 goto escape; 1128 } 1129 1118 1130 switch (op[0]) { 1119 1131 case 'E': … … 1124 1136 break; 1125 1137 default: 1126 sprintf (line, "error: op %c not defined !", op[0]);1138 sprintf (line, "error: op %c not defined for string operations!", op[0]); 1127 1139 push_error (line); 1128 1140 return (FALSE); 1129 1141 } 1130 1142 1143 escape: 1131 1144 strcpy (OUT[0].name, "tmp"); 1132 1145 OUT[0].Float = value;
Note:
See TracChangeset
for help on using the changeset viewer.
