Changeset 2885
- Timestamp:
- Jan 4, 2005, 8:33:55 AM (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
r2681 r2885 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $12 * @date $Date: 200 4-12-10 02:50:14$11 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-01-04 18:33:55 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 35 35 36 36 37 typedef struct38 {39 int y;40 }41 myStruct;42 43 37 /******************************************************************************/ 44 38 /* DEFINE STATEMENTS */ … … 46 40 47 41 /** Check for FITS errors */ 48 #define FITS_ERROR(STRING,PS_ERROR) \49 fits_get_errstatus(status, fitsErr); \50 psError(PS_ERR_IO,true, STRING, PS_ERROR, fitsErr); \51 status = 0; \52 fits_close_file(fd, &status); \53 if(status){ \54 fits_get_errstatus(status, fitsErr); \55 psError(PS_ERR_IO,true, "Couldn't close FITS file. FITS error: %s", fitsErr); \56 } \57 status = 0; \58 psFree(output); \42 #define FITS_ERROR(STRING,PS_ERROR) \ 43 fits_get_errstatus(status, fitsErr); \ 44 psError(PS_ERR_IO,true, STRING, PS_ERROR, fitsErr); \ 45 status = 0; \ 46 fits_close_file(fd, &status); \ 47 if(status){ \ 48 fits_get_errstatus(status, fitsErr); \ 49 psError(PS_ERR_IO,true, "Couldn't close FITS file. FITS error: %s", fitsErr); \ 50 } \ 51 status = 0; \ 52 psFree(output); \ 59 53 return NULL; 60 54 -
trunk/psLib/src/collections/psMetadataIO.c
r2681 r2885 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $12 * @date $Date: 200 4-12-10 02:50:14$11 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-01-04 18:33:55 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 35 35 36 36 37 typedef struct38 {39 int y;40 }41 myStruct;42 43 37 /******************************************************************************/ 44 38 /* DEFINE STATEMENTS */ … … 46 40 47 41 /** Check for FITS errors */ 48 #define FITS_ERROR(STRING,PS_ERROR) \49 fits_get_errstatus(status, fitsErr); \50 psError(PS_ERR_IO,true, STRING, PS_ERROR, fitsErr); \51 status = 0; \52 fits_close_file(fd, &status); \53 if(status){ \54 fits_get_errstatus(status, fitsErr); \55 psError(PS_ERR_IO,true, "Couldn't close FITS file. FITS error: %s", fitsErr); \56 } \57 status = 0; \58 psFree(output); \42 #define FITS_ERROR(STRING,PS_ERROR) \ 43 fits_get_errstatus(status, fitsErr); \ 44 psError(PS_ERR_IO,true, STRING, PS_ERROR, fitsErr); \ 45 status = 0; \ 46 fits_close_file(fd, &status); \ 47 if(status){ \ 48 fits_get_errstatus(status, fitsErr); \ 49 psError(PS_ERR_IO,true, "Couldn't close FITS file. FITS error: %s", fitsErr); \ 50 } \ 51 status = 0; \ 52 psFree(output); \ 59 53 return NULL; 60 54 -
trunk/psLib/src/types/psMetadataConfig.c
r2681 r2885 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $12 * @date $Date: 200 4-12-10 02:50:14$11 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-01-04 18:33:55 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 35 35 36 36 37 typedef struct38 {39 int y;40 }41 myStruct;42 43 37 /******************************************************************************/ 44 38 /* DEFINE STATEMENTS */ … … 46 40 47 41 /** Check for FITS errors */ 48 #define FITS_ERROR(STRING,PS_ERROR) \49 fits_get_errstatus(status, fitsErr); \50 psError(PS_ERR_IO,true, STRING, PS_ERROR, fitsErr); \51 status = 0; \52 fits_close_file(fd, &status); \53 if(status){ \54 fits_get_errstatus(status, fitsErr); \55 psError(PS_ERR_IO,true, "Couldn't close FITS file. FITS error: %s", fitsErr); \56 } \57 status = 0; \58 psFree(output); \42 #define FITS_ERROR(STRING,PS_ERROR) \ 43 fits_get_errstatus(status, fitsErr); \ 44 psError(PS_ERR_IO,true, STRING, PS_ERROR, fitsErr); \ 45 status = 0; \ 46 fits_close_file(fd, &status); \ 47 if(status){ \ 48 fits_get_errstatus(status, fitsErr); \ 49 psError(PS_ERR_IO,true, "Couldn't close FITS file. FITS error: %s", fitsErr); \ 50 } \ 51 status = 0; \ 52 psFree(output); \ 59 53 return NULL; 60 54 -
trunk/psLib/src/xml/psXML.c
r2681 r2885 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $12 * @date $Date: 200 4-12-10 02:50:14$11 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-01-04 18:33:55 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 35 35 36 36 37 typedef struct38 {39 int y;40 }41 myStruct;42 43 37 /******************************************************************************/ 44 38 /* DEFINE STATEMENTS */ … … 46 40 47 41 /** Check for FITS errors */ 48 #define FITS_ERROR(STRING,PS_ERROR) \49 fits_get_errstatus(status, fitsErr); \50 psError(PS_ERR_IO,true, STRING, PS_ERROR, fitsErr); \51 status = 0; \52 fits_close_file(fd, &status); \53 if(status){ \54 fits_get_errstatus(status, fitsErr); \55 psError(PS_ERR_IO,true, "Couldn't close FITS file. FITS error: %s", fitsErr); \56 } \57 status = 0; \58 psFree(output); \42 #define FITS_ERROR(STRING,PS_ERROR) \ 43 fits_get_errstatus(status, fitsErr); \ 44 psError(PS_ERR_IO,true, STRING, PS_ERROR, fitsErr); \ 45 status = 0; \ 46 fits_close_file(fd, &status); \ 47 if(status){ \ 48 fits_get_errstatus(status, fitsErr); \ 49 psError(PS_ERR_IO,true, "Couldn't close FITS file. FITS error: %s", fitsErr); \ 50 } \ 51 status = 0; \ 52 psFree(output); \ 59 53 return NULL; 60 54
Note:
See TracChangeset
for help on using the changeset viewer.
