IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 29, 2015, 9:35:02 AM (11 years ago)
Author:
eugene
Message:

add vector needle diagrams

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20151113/Ohana/src/opihi/lib.shell/VectorOps.c

    r33662 r39194  
    1515
    1616// this function is NOT thread protected : it is only used in startup and/or shutdown
     17void FreeVector (Vector *vec) {
     18
     19  if (!vec) return;
     20  if (vec->elements.Int) {
     21    free (vec->elements.Int);
     22  }
     23  free (vec);
     24}
     25
     26// this function is NOT thread protected : it is only used in startup and/or shutdown
    1727void FreeVectorArray (Vector **vec, int Nvec) {
    1828
     
    2131  if (!vec) return;
    2232  for (i = 0; i < Nvec; i++) {
    23     if (!vec[i]) continue;
    24     if (vec[i]->elements.Int) {
    25       free (vec[i]->elements.Int);
    26     }
    27     free (vec[i]);
     33    FreeVector (vec[i]);
    2834  }
    2935  free (vec);
Note: See TracChangeset for help on using the changeset viewer.