IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 23, 2009, 9:42:42 AM (17 years ago)
Author:
Paul Price
Message:

Functions declared as 'type function()' cause errors with the Intel compiler ('error #310: old-style parameter list (anachronism)'), which wants 'type function()'. These instances haven't caused problems yet, and I'm trying to avoid that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/magic/remove/src/streaksio.c

    r21481 r23487  
    7575        }
    7676    }
    77      
     77
    7878    psElemType tileType;                // Type corresponding to "long"
    7979    if (sizeof(long) == sizeof(psS64)) {
     
    214214
    215215        // XXX: I should probably be using a different file rule for diffs, but I don't
    216         // have an input rule that takes a diff image. 
     216        // have an input rule that takes a diff image.
    217217        // Since they're skycells, this should be compatible
    218218        sfile->pmfile = pmFPAfileDefineFromArgs(&status, config, "PPSUB.INPUT", "INPUT");
     
    229229        psFree(view);
    230230        sfile->resolved_name = psStringCopy(sfile->pmfile->filename);
    231        
     231
    232232        // copy header from fpu
    233233        sfile->header = (psMetadata*) psMemIncrRefCounter(sfile->pmfile->fpa->hdu->header);
     
    248248    }
    249249
    250     // if outputFilename is not null name it contains the "directory" 
     250    // if outputFilename is not null name it contains the "directory"
    251251    // and outputFilename is the basename name of the file (or nebulous key)
    252252    // and the file is to be opened for writing
     
    293293    bool status = psFitsMoveExtNum(sfile->fits, extnum, false);
    294294    if (!status) {
    295         psError(PS_ERR_IO, false, 
     295        psError(PS_ERR_IO, false,
    296296            "failed to move to extension %d for %s", extnum, sfile->resolved_name);
    297297        streaksExit("", PS_EXIT_DATA_ERROR);
     
    427427        return true;
    428428    } else if (in->nHDU == 1) {
    429         // no extensions in the file, can just return true? For now require 
     429        // no extensions in the file, can just return true? For now require
    430430        // at least one dimension
    431431        int naxis =  psMetadataLookupS32(&status, in->header, "NAXIS");
     
    524524    in->header = psFitsReadHeader(NULL, in->fits);
    525525    if (!in->header) {
    526         psError(PS_ERR_IO, false, "failed to read header from %s extnum: %d", 
     526        psError(PS_ERR_IO, false, "failed to read header from %s extnum: %d",
    527527            in->resolved_name, extnum);
    528528        streaksExit("", PS_EXIT_DATA_ERROR);
     
    541541        in->image = psFitsReadImage(in->fits, region, 0);
    542542        if (!in->image) {
    543             psError(PS_ERR_IO, false, "failed to read image from %s extnum: %d", 
     543            psError(PS_ERR_IO, false, "failed to read image from %s extnum: %d",
    544544                in->resolved_name, extnum);
    545545            streaksExit("", PS_EXIT_DATA_ERROR);
     
    559559        in->imagecube = psFitsReadImageCube(in->fits, region);
    560560        if (!in->imagecube) {
    561             psError(PS_ERR_IO, false, "failed to read image cube from %s extnum: %d", 
     561            psError(PS_ERR_IO, false, "failed to read image cube from %s extnum: %d",
    562562                in->resolved_name, extnum);
    563563            streaksExit("", PS_EXIT_DATA_ERROR);
     
    631631        // XXX abort?
    632632        return;
    633     } 
     633    }
    634634    if (!extname) {
    635635        psWarning("extnum %d has no image and extname not defined in %s",
     
    689689    }
    690690    if (!psFitsWriteImage(sfile->fits, sfile->header, sfile->image, 0, extname)) {
    691         psError(PS_ERR_IO, false, "failed to write image to %s extnum: %d", 
     691        psError(PS_ERR_IO, false, "failed to write image to %s extnum: %d",
    692692            sfile->resolved_name, extnum);
    693693        streaksExit("", PS_EXIT_DATA_ERROR);
     
    706706    }
    707707    if (!psFitsWriteImageCube(sfile->fits, sfile->header, imagecube, extname)) {
    708         psError(PS_ERR_IO, false, "failed to write image to %s extnum: %d", 
     708        psError(PS_ERR_IO, false, "failed to write image to %s extnum: %d",
    709709            sfile->resolved_name, extnum);
    710710        streaksExit("", PS_EXIT_DATA_ERROR);
     
    732732    }
    733733    if (sfile->fits && !psFitsClose(sfile->fits)) {
    734         psError(PS_ERR_IO, false, "failed to close image to %s", 
     734        psError(PS_ERR_IO, false, "failed to close image to %s",
    735735            sfile->resolved_name);
    736736        streaksExit("", PS_EXIT_DATA_ERROR);
     
    10301030
    10311031void
    1032 streaksNebulousCleanup()
     1032streaksNebulousCleanup(void)
    10331033{
    10341034    nebServerFree(ourNebServer);
Note: See TracChangeset for help on using the changeset viewer.