Changeset 14517
- Timestamp:
- Aug 15, 2007, 3:23:58 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/lib.shell/stack_math.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.shell/stack_math.c
r7080 r14517 1156 1156 char line[512]; 1157 1157 1158 /* only 'N' and 'E' are allowed for WW_binary operations. anything else is either a 1159 syntax error or is a string which looks like a math expression. */ 1160 1161 if ((op[0] != 'N') && (op[0] != 'E')) { 1162 sprintf (line, "error: op %c not defined for string operations!", op[0]); 1163 push_error (line); 1164 return (FALSE); 1165 } 1166 1158 1167 /* evaluate stack will only call WW_binary with one numerical value, 1159 1168 and only in the case that the string did not parse to a number 1160 1169 thus: string == number -> false */ 1170 1161 1171 if (!strncasecmp (&V1[0].type, "S", 1)) { 1162 1172 value = (op[0] == 'N');
Note:
See TracChangeset
for help on using the changeset viewer.
