IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33874


Ignore:
Timestamp:
May 16, 2012, 4:18:34 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/relphot
Files:
5 edited

Legend:

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

    r33827 r33874  
    8181
    8282/* global variables set in parameter file */
    83 # define MAX_PATH_LENGTH 1024
    84 char   ImageCat[MAX_PATH_LENGTH];
    85 char   ImageTemplate[MAX_PATH_LENGTH];
    86 char   CatTemplate[MAX_PATH_LENGTH];
    87 char   GSCFILE[MAX_PATH_LENGTH];
     83# define DVO_MAX_PATH 1024
     84char   ImageCat[DVO_MAX_PATH];
     85char   ImageTemplate[DVO_MAX_PATH];
     86char   CatTemplate[DVO_MAX_PATH];
     87char   GSCFILE[DVO_MAX_PATH];
    8888char  *CATDIR;
    8989char   CATMODE[16];    /* raw, mef, split, mysql */
    9090char   CATFORMAT[16];  /* internal, elixir, loneos, panstarrs */
    91 char   CameraConfig[MAX_PATH_LENGTH];
     91char   CameraConfig[DVO_MAX_PATH];
    9292char   CAMERA[64];    /* eg, gpc1 */
    93 char   SKY_TABLE[MAX_PATH_LENGTH];
     93char   SKY_TABLE[DVO_MAX_PATH];
    9494int    SKY_DEPTH;  /** XXX EAM : depth of catalog tables, fix usage */
    9595
  • branches/eam_branches/ipp-20120405/Ohana/src/relphot/src/ConfigInit.c

    r33651 r33874  
    3535  // force CATDIR to be absolute (so parallel mode will work)
    3636  char *tmpcatdir = NULL;
    37   ALLOCATE (tmpcatdir, char, MAX_PATH_LENGTH);
     37  ALLOCATE (tmpcatdir, char, DVO_MAX_PATH);
    3838  GetConfig (config, "CATDIR",                 "%s",  0, tmpcatdir);
    39   CATDIR = abspath (tmpcatdir, MAX_PATH_LENGTH);
     39  CATDIR = abspath (tmpcatdir, DVO_MAX_PATH);
    4040  free (tmpcatdir);
    4141
  • branches/eam_branches/ipp-20120405/Ohana/src/relphot/src/load_catalogs.c

    r33807 r33874  
    123123
    124124    // ensure that the paths are absolute path names
    125     char *tmppath = abspath (table->hosts[i].pathname, MAX_PATH_LENGTH);
     125    char *tmppath = abspath (table->hosts[i].pathname, DVO_MAX_PATH);
    126126    free (table->hosts[i].pathname);
    127127    table->hosts[i].pathname = tmppath;
  • branches/eam_branches/ipp-20120405/Ohana/src/relphot/src/reload_catalogs.c

    r33823 r33874  
    141141
    142142    // ensure that the paths are absolute path names
    143     char *tmppath = abspath (table->hosts[i].pathname, MAX_PATH_LENGTH);
     143    char *tmppath = abspath (table->hosts[i].pathname, DVO_MAX_PATH);
    144144    free (table->hosts[i].pathname);
    145145    table->hosts[i].pathname = tmppath;
  • branches/eam_branches/ipp-20120405/Ohana/src/relphot/src/relphot_objects.c

    r33823 r33874  
    133133
    134134    // ensure that the paths are absolute path names
    135     char *tmppath = abspath (table->hosts[i].pathname, MAX_PATH_LENGTH);
     135    char *tmppath = abspath (table->hosts[i].pathname, DVO_MAX_PATH);
    136136    free (table->hosts[i].pathname);
    137137    table->hosts[i].pathname = tmppath;
Note: See TracChangeset for help on using the changeset viewer.