IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 22, 2004, 1:23:23 PM (22 years ago)
Author:
eugene
Message:

fixing dvomath for strings

File:
1 edited

Legend:

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

    r2598 r2792  
    10431043
    10441044}
     1045
     1046int WW_binary (StackVar *OUT, StackVar *V1, StackVar *V2, char *op) {
     1047
     1048  int value;
     1049 
     1050  switch (op[0]) {
     1051  case 'E':
     1052    value = strcmp (V1[0].name, V2[0].name) ? 0 : 1;
     1053    break;
     1054  case 'N':
     1055    value = strcmp (V1[0].name, V2[0].name) ? 1 : 0;
     1056    break;
     1057  default:
     1058    fprintf (stderr, "error: op %c not valid\n", op[0]);
     1059  }
     1060
     1061  strcpy (OUT[0].name, "tmp");
     1062  OUT[0].Float = value;
     1063  OUT[0].type = 'S';
     1064  OUT[0].ptr = &OUT[0].Float;
     1065  return (TRUE);
     1066
     1067}
     1068
    10451069
    10461070int S_unary (StackVar *OUT, StackVar *V1, char *op) {
Note: See TracChangeset for help on using the changeset viewer.