IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33873


Ignore:
Timestamp:
May 16, 2012, 4:18:16 PM (14 years ago)
Author:
eugene
Message:

move max path length to dvo.h and rename DVO_MAX_PATH

Location:
branches/eam_branches/ipp-20120405/Ohana/src/uniphot
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120405/Ohana/src/uniphot/include/setphot.h

    r33654 r33873  
    1919
    2020/* global variables set in parameter file */
    21 # define MAX_PATH_LENGTH 1024
    22 char         ImageCat[MAX_PATH_LENGTH];
     21# define DVO_MAX_PATH 1024
     22char         ImageCat[DVO_MAX_PATH];
    2323char        *CATDIR;
    2424int          HOST_ID;
  • branches/eam_branches/ipp-20120405/Ohana/src/uniphot/src/initialize_setphot.c

    r33654 r33873  
    140140  // force CATDIR to be absolute (so parallel mode will work)
    141141  char *tmpcatdir = NULL;
    142   ALLOCATE (tmpcatdir, char, MAX_PATH_LENGTH);
     142  ALLOCATE (tmpcatdir, char, DVO_MAX_PATH);
    143143  GetConfig (config, "CATDIR",                 "%s",  0, tmpcatdir);
    144   CATDIR = abspath (tmpcatdir, MAX_PATH_LENGTH);
     144  CATDIR = abspath (tmpcatdir, DVO_MAX_PATH);
    145145  free (tmpcatdir);
    146146
  • branches/eam_branches/ipp-20120405/Ohana/src/uniphot/src/setphot.c

    r33654 r33873  
    2121    zpts = load_zpt_ubercal (argv[1], &Nzpts, &flatcorrTable);
    2222
    23     char flatcorrfile[MAX_PATH_LENGTH];
    24     int size = snprintf (flatcorrfile, MAX_PATH_LENGTH, "%s/flatcorr.fits", CATDIR);
    25     assert (size < MAX_PATH_LENGTH);
     23    char flatcorrfile[DVO_MAX_PATH];
     24    int size = snprintf (flatcorrfile, DVO_MAX_PATH, "%s/flatcorr.fits", CATDIR);
     25    assert (size < DVO_MAX_PATH);
    2626    FlatCorrectionSave(&flatcorrTable, flatcorrfile);
    2727    // XXX should this program save any old copy of this file?
  • branches/eam_branches/ipp-20120405/Ohana/src/uniphot/src/update_dvo_setphot.c

    r33654 r33873  
    105105
    106106    // ensure that the paths are absolute path names
    107     char *tmppath = abspath (table->hosts[i].pathname, MAX_PATH_LENGTH);
     107    char *tmppath = abspath (table->hosts[i].pathname, DVO_MAX_PATH);
    108108    free (table->hosts[i].pathname);
    109109    table->hosts[i].pathname = tmppath;
Note: See TracChangeset for help on using the changeset viewer.