IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 21, 2007, 3:38:16 PM (19 years ago)
Author:
eugene
Message:

boolean db extractions now working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/kapa-mods-2007-05/Ohana/src/opihi/dvo/dbStackMath.c

    r13443 r13454  
    1 # include "opihi.h"
     1# include "dvoshell.h"
    22
    3 dvoStack *dbBinary (dvoStack *V1, dvoStack *V2, char *op, float *fields, int Nfields) {
     3dbStack *dbBinary (dbStack *V1, dbStack *V2, char *op, float *fields) {
    44
     5  int N;
    56  float M1, M2;
     7  dbStack *OUT;
    68 
    79  if (V1->type == 'F') {
     
    1921  }
    2022
    21   ALLOCATE (OUT, dvoStack, 1);
     23  ALLOCATE (OUT, dbStack, 1);
    2224  OUT->type = 'T';
    2325
     
    8587}
    8688
    87 dvoStack *dbUnary (dvoStack *V1, dvoStack *V2, char *op, float *fields, int Nfields) {
     89dbStack *dbUnary (dbStack *V1, char *op, float *fields) {
    8890
     91  int N;
    8992  float M1;
     93  dbStack *OUT;
    9094
    9195  if (V1->type == 'F') {
     
    96100  }
    97101 
    98   ALLOCATE (OUT, dvoStack, 1);
     102  ALLOCATE (OUT, dbStack, 1);
    99103  OUT->type = 'T';
    100104
     
    133137  if (!strcmp (op, "isnan"))  {   OUT->Float = isnan(M1);          }
    134138
    135   return (TRUE);
     139  return (OUT);
    136140}
Note: See TracChangeset for help on using the changeset viewer.