Changeset 6684 for trunk/Ohana/src/opihi/dvo/region_list.c
- Timestamp:
- Mar 26, 2006, 1:14:47 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/dvo/region_list.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/dvo/region_list.c
r5996 r6684 11 11 12 12 char *newpath; 13 char catdir [256];13 char catdir_config[256]; 14 14 char gscfile[256]; 15 15 char skyfile[256]; … … 18 18 /* find CATDIR in config system */ 19 19 if (path == NULL) { 20 if (VarConfig ("CATDIR", "%s", catdir ) == NULL) return (FALSE);21 newpath = catdir ;20 if (VarConfig ("CATDIR", "%s", catdir_config) == NULL) return (FALSE); 21 newpath = catdir_config; 22 22 } else { 23 23 newpath = path; … … 32 32 33 33 if (verbose) { 34 fprintf (stderr, "CATDIR %s\n", catdir);34 fprintf (stderr, "CATDIR %s\n", CATDIR); 35 35 fprintf (stderr, "GSCFILE %s\n", gscfile); 36 36 fprintf (stderr, "SKYFILE %s\n", skyfile); … … 42 42 43 43 if (sky != NULL) SkyTableFree (sky); 44 sky = SkyTableLoadOptimal ( catdir, skyfile, gscfile, skydepth, verbose);44 sky = SkyTableLoadOptimal (CATDIR, skyfile, gscfile, skydepth, verbose); 45 45 if (sky == NULL) return FALSE; 46 46 47 SkyTableSetFilenames (sky, catdir, "cpt");47 SkyTableSetFilenames (sky, CATDIR, "cpt"); 48 48 49 49 return (TRUE); 50 } 51 52 char *GetCATDIR () { 53 if (CATDIR == NULL) { 54 SetCATDIR (NULL, FALSE); 55 } 56 return (CATDIR); 50 57 } 51 58
Note:
See TracChangeset
for help on using the changeset viewer.
