Changeset 1995
- Timestamp:
- Oct 6, 2004, 4:16:36 PM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 4 edited
-
astronomy/psMetadataIO.c (modified) (3 diffs)
-
collections/psMetadataIO.c (modified) (3 diffs)
-
types/psMetadataConfig.c (modified) (3 diffs)
-
xml/psXML.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astronomy/psMetadataIO.c
r1986 r1995 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-10-0 6 22:51:15$11 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-10-07 02:16:36 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 36 36 37 37 /** Check for FITS errors */ 38 #define FITS_ERROR(STRING,PS_ERROR) \ 39 fits_get_errstatus(status, fitsErr); \ 40 psError(__func__, STRING, PS_ERROR, fitsErr); \ 41 status = 0; \ 42 fits_close_file(fd, &status); \ 43 if(status){ \ 44 fits_get_errstatus(status, fitsErr); \ 45 psError(__func__, "Couldn't close FITS file. FITS error: %s", fitsErr); \ 46 } \ 47 status = 0; \ 48 return output; 38 #define FITS_ERROR(STRING,PS_ERROR) \ 39 fits_get_errstatus(status, fitsErr); \ 40 psError(__func__, STRING, PS_ERROR, fitsErr); \ 41 status = 0; \ 42 fits_close_file(fd, &status); \ 43 if(status){ \ 44 fits_get_errstatus(status, fitsErr); \ 45 psError(__func__, "Couldn't close FITS file. FITS error: %s", fitsErr); \ 46 } \ 47 status = 0; \ 48 psFree(output); \ 49 return NULL; 49 50 50 51 /** Free and null temporary variables used by config file parser */ … … 372 373 psError(__func__, "Null extName and extNum = 0 not allowed"); 373 374 return NULL; 374 } else if (extName && extNum) {375 psError(__func__, " Both extName and extNum arguments should not have non zero values.");375 } else if (extName && (extNum != -1) ) { 376 psError(__func__, "If extName specified, extNum arguments should be -1."); 376 377 return NULL; 377 378 } -
trunk/psLib/src/collections/psMetadataIO.c
r1986 r1995 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-10-0 6 22:51:15$11 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-10-07 02:16:36 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 36 36 37 37 /** Check for FITS errors */ 38 #define FITS_ERROR(STRING,PS_ERROR) \ 39 fits_get_errstatus(status, fitsErr); \ 40 psError(__func__, STRING, PS_ERROR, fitsErr); \ 41 status = 0; \ 42 fits_close_file(fd, &status); \ 43 if(status){ \ 44 fits_get_errstatus(status, fitsErr); \ 45 psError(__func__, "Couldn't close FITS file. FITS error: %s", fitsErr); \ 46 } \ 47 status = 0; \ 48 return output; 38 #define FITS_ERROR(STRING,PS_ERROR) \ 39 fits_get_errstatus(status, fitsErr); \ 40 psError(__func__, STRING, PS_ERROR, fitsErr); \ 41 status = 0; \ 42 fits_close_file(fd, &status); \ 43 if(status){ \ 44 fits_get_errstatus(status, fitsErr); \ 45 psError(__func__, "Couldn't close FITS file. FITS error: %s", fitsErr); \ 46 } \ 47 status = 0; \ 48 psFree(output); \ 49 return NULL; 49 50 50 51 /** Free and null temporary variables used by config file parser */ … … 372 373 psError(__func__, "Null extName and extNum = 0 not allowed"); 373 374 return NULL; 374 } else if (extName && extNum) {375 psError(__func__, " Both extName and extNum arguments should not have non zero values.");375 } else if (extName && (extNum != -1) ) { 376 psError(__func__, "If extName specified, extNum arguments should be -1."); 376 377 return NULL; 377 378 } -
trunk/psLib/src/types/psMetadataConfig.c
r1986 r1995 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-10-0 6 22:51:15$11 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-10-07 02:16:36 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 36 36 37 37 /** Check for FITS errors */ 38 #define FITS_ERROR(STRING,PS_ERROR) \ 39 fits_get_errstatus(status, fitsErr); \ 40 psError(__func__, STRING, PS_ERROR, fitsErr); \ 41 status = 0; \ 42 fits_close_file(fd, &status); \ 43 if(status){ \ 44 fits_get_errstatus(status, fitsErr); \ 45 psError(__func__, "Couldn't close FITS file. FITS error: %s", fitsErr); \ 46 } \ 47 status = 0; \ 48 return output; 38 #define FITS_ERROR(STRING,PS_ERROR) \ 39 fits_get_errstatus(status, fitsErr); \ 40 psError(__func__, STRING, PS_ERROR, fitsErr); \ 41 status = 0; \ 42 fits_close_file(fd, &status); \ 43 if(status){ \ 44 fits_get_errstatus(status, fitsErr); \ 45 psError(__func__, "Couldn't close FITS file. FITS error: %s", fitsErr); \ 46 } \ 47 status = 0; \ 48 psFree(output); \ 49 return NULL; 49 50 50 51 /** Free and null temporary variables used by config file parser */ … … 372 373 psError(__func__, "Null extName and extNum = 0 not allowed"); 373 374 return NULL; 374 } else if (extName && extNum) {375 psError(__func__, " Both extName and extNum arguments should not have non zero values.");375 } else if (extName && (extNum != -1) ) { 376 psError(__func__, "If extName specified, extNum arguments should be -1."); 376 377 return NULL; 377 378 } -
trunk/psLib/src/xml/psXML.c
r1986 r1995 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-10-0 6 22:51:15$11 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-10-07 02:16:36 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 36 36 37 37 /** Check for FITS errors */ 38 #define FITS_ERROR(STRING,PS_ERROR) \ 39 fits_get_errstatus(status, fitsErr); \ 40 psError(__func__, STRING, PS_ERROR, fitsErr); \ 41 status = 0; \ 42 fits_close_file(fd, &status); \ 43 if(status){ \ 44 fits_get_errstatus(status, fitsErr); \ 45 psError(__func__, "Couldn't close FITS file. FITS error: %s", fitsErr); \ 46 } \ 47 status = 0; \ 48 return output; 38 #define FITS_ERROR(STRING,PS_ERROR) \ 39 fits_get_errstatus(status, fitsErr); \ 40 psError(__func__, STRING, PS_ERROR, fitsErr); \ 41 status = 0; \ 42 fits_close_file(fd, &status); \ 43 if(status){ \ 44 fits_get_errstatus(status, fitsErr); \ 45 psError(__func__, "Couldn't close FITS file. FITS error: %s", fitsErr); \ 46 } \ 47 status = 0; \ 48 psFree(output); \ 49 return NULL; 49 50 50 51 /** Free and null temporary variables used by config file parser */ … … 372 373 psError(__func__, "Null extName and extNum = 0 not allowed"); 373 374 return NULL; 374 } else if (extName && extNum) {375 psError(__func__, " Both extName and extNum arguments should not have non zero values.");375 } else if (extName && (extNum != -1) ) { 376 psError(__func__, "If extName specified, extNum arguments should be -1."); 376 377 return NULL; 377 378 }
Note:
See TracChangeset
for help on using the changeset viewer.
