- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/Ohana
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/Ohana merged eligible /branches/eam_branches/Ohana.20100407 27635-27772 /branches/pap_delete/Ohana 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/simtest_nebulous_branches/Ohana/src/libdvo/src/LoadPhotcodes.c
r12332 r27840 1 1 # include <dvo.h> 2 2 3 int LoadPhotcodes (char *catdir_file, char *master_file ) {3 int LoadPhotcodes (char *catdir_file, char *master_file, int readwrite) { 4 4 5 5 /* first try to load the photcodes from the specified CATDIR location */ 6 6 if (LoadPhotcodesFITS (catdir_file)) return TRUE; 7 7 8 if (!readwrite) { 9 fprintf (stderr, "db is missing a photcode table & access is read-only -- create one with photcode-table -import\n"); 10 return FALSE; 11 } 12 8 13 /* next try to load the photcodes from the master text photcode file */ 9 14 /* automatically (or on demand?) save the text file to the FITS version */ 10 15 if (LoadPhotcodesText (master_file)) { 11 if (!check_file_access (catdir_file, TRUE, TRUE)) return TRUE;12 SavePhotcodesFITS (catdir_file);13 return TRUE;16 if (!check_file_access (catdir_file, TRUE, TRUE, TRUE)) return TRUE; 17 SavePhotcodesFITS (catdir_file); 18 return TRUE; 14 19 } 15 20
Note:
See TracChangeset
for help on using the changeset viewer.
