IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39320 for trunk


Ignore:
Timestamp:
Jan 19, 2016, 8:48:44 AM (10 years ago)
Author:
eugene
Message:

need to call the macro ohana_memcheck, not ohana_memcheck_func

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libdvo/src/dvo_catalog_split.c

    r39312 r39320  
    101101  }
    102102
    103   if (OHANA_MEMCHECK) ohana_memcheck_func (TRUE);
     103  if (OHANA_MEMCHECK) ohana_memcheck (TRUE);
    104104
    105105  // write PHU header
     
    129129# endif
    130130
    131   if (OHANA_MEMCHECK) ohana_memcheck_func (TRUE);
     131  if (OHANA_MEMCHECK) ohana_memcheck (TRUE);
    132132
    133133  FTable *outtable = ftable;
     
    310310int gfits_fread_uncompressed (Catalog *catalog, FTable *ftable, char *nativeOrder, char VERBOSE) {
    311311
     312  if (OHANA_MEMCHECK) ohana_memcheck (TRUE);
     313
    312314  // fread_ftable_data requires the header
    313315
     
    317319    return FALSE;
    318320  }
     321  if (OHANA_MEMCHECK) ohana_memcheck (TRUE);
    319322  // NOTE: fread_ftable returns an unswapped table; uncompress swaps the bytes into native order
    320323   
     
    331334      return FALSE;
    332335    }
     336    if (OHANA_MEMCHECK) ohana_memcheck (TRUE);
     337
    333338    if (!gfits_uncompress_table (ftable, &rawtable)) {
    334339      if (VERBOSE) fprintf (stderr, "failed to uncompress table\n");
     
    336341      return FALSE;
    337342    }
     343    if (OHANA_MEMCHECK) ohana_memcheck (TRUE);
    338344
    339345    char compressMode[256];
     
    346352    gfits_free_header (ftable->header);
    347353    gfits_free_table (ftable);
     354    if (OHANA_MEMCHECK) ohana_memcheck (TRUE);
    348355   
    349356    // copies values but does not allocate new memory
     
    866873  }
    867874
    868   if (OHANA_MEMCHECK) ohana_memcheck_func (TRUE);
     875  if (OHANA_MEMCHECK) ohana_memcheck (TRUE);
    869876
    870877  Nmeasure_disk_new = MAX (catalog[0].Nmeasure_disk, catalog[0].Nmeasure + catalog[0].Nmeasure_off);
     
    891898  /* in split mode, we can save only part of the data */
    892899
    893   if (OHANA_MEMCHECK) ohana_memcheck_func (TRUE);
     900  if (OHANA_MEMCHECK) ohana_memcheck (TRUE);
    894901
    895902  /*** Average Table ***/
     
    918925    }
    919926
    920     if (OHANA_MEMCHECK) ohana_memcheck_func (TRUE);
     927    if (OHANA_MEMCHECK) ohana_memcheck (TRUE);
    921928
    922929    if (!dvo_catalog_save_subcat (catalog, &ftable, start, Nrows, catalog[0].Naverage_disk, Naverage_disk_new)) {
     
    925932    }
    926933
    927     if (OHANA_MEMCHECK) ohana_memcheck_func (TRUE);
     934    if (OHANA_MEMCHECK) ohana_memcheck (TRUE);
    928935
    929936    gfits_free_header (&header);
     
    954961    assert (catalog[0].Nmeasure_disk >= catalog[0].Nmeasure_off);
    955962
    956     if (OHANA_MEMCHECK) ohana_memcheck_func (TRUE);
     963    if (OHANA_MEMCHECK) ohana_memcheck (TRUE);
    957964
    958965    // if we are going to compress, we need to receive unswapped data --
     
    965972    }
    966973
    967     if (OHANA_MEMCHECK) ohana_memcheck_func (TRUE);
     974    if (OHANA_MEMCHECK) ohana_memcheck (TRUE);
    968975
    969976    // write out Measure table
     
    973980      goto failure;
    974981    }
    975     if (OHANA_MEMCHECK) ohana_memcheck_func (TRUE);
     982    if (OHANA_MEMCHECK) ohana_memcheck (TRUE);
    976983
    977984    gfits_free_header (&header);
     
    10231030    int swapFromNative = !output_is_compressed (start, Nrows, Nsecfilt_disk_new, catalog->catcompress);
    10241031
    1025     if (OHANA_MEMCHECK) ohana_memcheck_func (TRUE);
     1032    if (OHANA_MEMCHECK) ohana_memcheck (TRUE);
    10261033
    10271034    // convert to external table format
     
    10311038    }
    10321039
    1033     if (OHANA_MEMCHECK) ohana_memcheck_func (TRUE);
     1040    if (OHANA_MEMCHECK) ohana_memcheck (TRUE);
    10341041
    10351042    // write out SecFilt table
     
    15621569  }
    15631570
    1564   if (OHANA_MEMCHECK) ohana_memcheck_func (TRUE);
     1571  if (OHANA_MEMCHECK) ohana_memcheck (TRUE);
    15651572
    15661573  Nmeasure_disk_new = catalog[0].Nmeasure;
     
    15871594  /* in split mode, we can save only part of the data, but not using this function (use e.g., dvo_catalog_update_split) */
    15881595
    1589   if (OHANA_MEMCHECK) ohana_memcheck_func (TRUE);
     1596  if (OHANA_MEMCHECK) ohana_memcheck (TRUE);
    15901597
    15911598  /*** Average Table ***/
     
    16141621    }
    16151622
    1616     if (OHANA_MEMCHECK) ohana_memcheck_func (TRUE);
     1623    if (OHANA_MEMCHECK) ohana_memcheck (TRUE);
    16171624
    16181625    if (!dvo_catalog_save_subcat (catalog, &ftable, start, Nrows, catalog[0].Naverage_disk, Naverage_disk_new)) {
     
    16211628    }
    16221629
    1623     if (OHANA_MEMCHECK) ohana_memcheck_func (TRUE);
     1630    if (OHANA_MEMCHECK) ohana_memcheck (TRUE);
    16241631
    16251632    gfits_free_header (&header);
     
    16501657    assert (catalog[0].Nmeasure_disk >= catalog[0].Nmeasure_off);
    16511658
    1652     if (OHANA_MEMCHECK) ohana_memcheck_func (TRUE);
     1659    if (OHANA_MEMCHECK) ohana_memcheck (TRUE);
    16531660
    16541661    // if we are going to compress, we need to receive unswapped data --
     
    16621669    }
    16631670
    1664     if (OHANA_MEMCHECK) ohana_memcheck_func (TRUE);
     1671    if (OHANA_MEMCHECK) ohana_memcheck (TRUE);
    16651672
    16661673    // write out Measure table
     
    16701677      goto failure;
    16711678    }
    1672     if (OHANA_MEMCHECK) ohana_memcheck_func (TRUE);
     1679    if (OHANA_MEMCHECK) ohana_memcheck (TRUE);
    16731680
    16741681    gfits_free_header (&header);
     
    17231730    int swapFromNative = !output_is_compressed (start, Nrows, Nsecfilt_disk_new, catalog->catcompress);
    17241731
    1725     if (OHANA_MEMCHECK) ohana_memcheck_func (TRUE);
     1732    if (OHANA_MEMCHECK) ohana_memcheck (TRUE);
    17261733
    17271734    // convert to external table format
     
    17311738    }
    17321739
    1733     if (OHANA_MEMCHECK) ohana_memcheck_func (TRUE);
     1740    if (OHANA_MEMCHECK) ohana_memcheck (TRUE);
    17341741
    17351742    // write out SecFilt table
Note: See TracChangeset for help on using the changeset viewer.