IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 28, 2022, 12:14:19 PM (4 years ago)
Author:
eugene
Message:

add string unary functions (isword, isnum, isint, isflt, length)

File:
1 edited

Legend:

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

    r41363 r42080  
    124124        THREE_OP (ST_SCALAR_INT,SSS_trinary);
    125125
    126         /* there are no valid unary string operators */
     126        /* there are no valid trinary string operators */
    127127        snprintf (line, 512, "invalid operands for trinary operator %s (mismatch types?)\n(Note that the : in a trinary operation must be protected by spaces)", stack[i].name);
    128128        push_error (line);
     
    260260        ONE_OP (ST_SCALAR_FLT, S_unary);
    261261
    262         /* there are no valid unary string operators */
     262        ONE_OP (ST_STRING, W_unary);
     263
    263264        snprintf (line, 512, "invalid operand for unary operator %s (undefined value?)", stack[i].name);
    264265        push_error (line);
Note: See TracChangeset for help on using the changeset viewer.