IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31547


Ignore:
Timestamp:
May 12, 2011, 4:50:51 PM (15 years ago)
Author:
eugene
Message:

do not generate useless vtable for image table in relastro; fix typo in typetest

Location:
branches/eam_branches/ipp-20110505/Ohana/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110505/Ohana/src/libohana/test/typetest.c

    r31160 r31547  
    7474
    7575    big_value = 10;
    76     fprintf (stderr, "this is a bit int: "OFF_T_FMT" n'est pas?\n", big_value);
     76    fprintf (stderr, "this is a big int: "OFF_T_FMT" n'est pas?\n", big_value);
     77
     78    // we could move the % out of the FMT and allow constructions like this:
     79    // # define OFF_T_FMT "jd"
     80    // fprintf (stderr, "this is a big int: %06"OFF_T_FMT_ALT" n'est pas?\n", big_value);
     81    // still kind of ugly...
    7782
    7883    exit (status);
  • branches/eam_branches/ipp-20110505/Ohana/src/relastro/src/load_images.c

    r29001 r31547  
    4444  MARKTIME("  select images: %f sec\n", dtime);
    4545
    46   gfits_vtable_from_ftable (&db[0].ftable, &db[0].vtable, LineNumber, Nsubset);
     46  // generate db->vtable from db->ftable based on the selection
     47  // XXX does this simply duplicate the memory needlessly?  we recreate these lines
     48  // in reload_images.  If we had saved the line numbers, we could avoid this
     49  // vtable points *another* copy of the subset rows
     50  // (the later call to 'reload_images' copies the subset elements back on top of
     51  // the rows of the vtable)
     52  // gfits_vtable_from_ftable (&db[0].ftable, &db[0].vtable, LineNumber, Nsubset);
     53  // MARKTIME("converted ftable to vtable: %f sec\n", dtime);
    4754
    4855  initImages (subset, Nsubset);
Note: See TracChangeset for help on using the changeset viewer.