Changeset 41176 for trunk/Ohana/src/opihi/lib.shell/convert_to_RPN.c
- Timestamp:
- Nov 27, 2019, 12:09:13 PM (7 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/opihi/lib.shell/convert_to_RPN.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20191011/Ohana (added) merged: 41136-41137,41141-41144,41170
- Property svn:mergeinfo changed
-
trunk/Ohana/src/opihi/lib.shell/convert_to_RPN.c
r40291 r41176 78 78 if (!strcmp (argv[i], "atan2")) { type = ST_BINARY; strcpy (argv[i], "a"); goto gotit; } 79 79 if (!strcmp (argv[i], "datan2")) { type = ST_BINARY; strcpy (argv[i], "d"); goto gotit; } 80 81 if (!strcmp (argv[i], "<~")) { type = ST_BINARY; strcpy (argv[i], "l"); goto gotit; } 82 if (!strcmp (argv[i], "~>")) { type = ST_BINARY; strcpy (argv[i], "r"); goto gotit; } 83 80 84 if (!strcmp (argv[i], ",")) { type = ST_COMMA; goto gotit; } 81 85 … … 99 103 if (!strcmp (argv[i], ">>")) { type = ST_LOGIC; strcpy (argv[i], "U"); goto gotit; } 100 104 if (!strcmp (argv[i], "<<")) { type = ST_LOGIC; strcpy (argv[i], "D"); goto gotit; } 105 106 /* XXX I would like to change the syntax to allow << and >> to mean bitshifts 107 but that means breaking these older values which means MIN and MAX */ 108 // for now, use <- and -> to mean bitshift 101 109 102 110 if (!strcmp (argv[i], "&&")) { type = ST_AND; strcpy (argv[i], "A"); goto gotit; }
Note:
See TracChangeset
for help on using the changeset viewer.
