OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
passthebuck.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LIFE_IS_GOOD   0 /* Successful return status */
 
#define FILE_ALREADY_EXISTS   1 /* HDF output file already existed */
 
#define MEMORY_ALLOCATION_ERROR   2 /* malloc() or calloc() failed */
 
#define HDF_FUNCTION_ERROR   3 /* One of NCSA's functions complained */
 
#define PROGRAMMER_BOOBOO   4 /* Error in code logic or consistency */
 
#define CALDATA_NOT_APPENDED   5 /* Calibration data was not appended */
 
#define MISSING_ENVVAR   6 /* Environment variable not set */
 
#define STAT_FAILURE   7 /* Call to stat() function failed */
 
#define FILE_IS_EMPTY   8 /* File size is zero bytes */
 
#define FOPEN_FAILURE   9 /* Call to fopen() function failed */
 
#define FREAD_FAILURE   10 /* Call to fread() function failed */
 
#define PTB(function)
 
#define DPTB(function)
 

Macro Definition Documentation

◆ CALDATA_NOT_APPENDED

#define CALDATA_NOT_APPENDED   5 /* Calibration data was not appended */

Definition at line 9 of file passthebuck.h.

◆ DPTB

#define DPTB (   function)
Value:
{ \
int status = function; \
switch(status){ \
case LIFE_IS_GOOD: break; \
default: printf("Programming error: file %s, line %d\n",__FILE__,__LINE__); exit(1); \
} \
}

Definition at line 24 of file passthebuck.h.

◆ FILE_ALREADY_EXISTS

#define FILE_ALREADY_EXISTS   1 /* HDF output file already existed */

Definition at line 5 of file passthebuck.h.

◆ FILE_IS_EMPTY

#define FILE_IS_EMPTY   8 /* File size is zero bytes */

Definition at line 12 of file passthebuck.h.

◆ FOPEN_FAILURE

#define FOPEN_FAILURE   9 /* Call to fopen() function failed */

Definition at line 13 of file passthebuck.h.

◆ FREAD_FAILURE

#define FREAD_FAILURE   10 /* Call to fread() function failed */

Definition at line 14 of file passthebuck.h.

◆ HDF_FUNCTION_ERROR

#define HDF_FUNCTION_ERROR   3 /* One of NCSA's functions complained */

Definition at line 7 of file passthebuck.h.

◆ LIFE_IS_GOOD

#define LIFE_IS_GOOD   0 /* Successful return status */

Definition at line 4 of file passthebuck.h.

◆ MEMORY_ALLOCATION_ERROR

#define MEMORY_ALLOCATION_ERROR   2 /* malloc() or calloc() failed */

Definition at line 6 of file passthebuck.h.

◆ MISSING_ENVVAR

#define MISSING_ENVVAR   6 /* Environment variable not set */

Definition at line 10 of file passthebuck.h.

◆ PROGRAMMER_BOOBOO

#define PROGRAMMER_BOOBOO   4 /* Error in code logic or consistency */

Definition at line 8 of file passthebuck.h.

◆ PTB

#define PTB (   function)
Value:
{ \
int status = function; \
switch(status){ \
case LIFE_IS_GOOD: break; \
default: return(status); \
} \
}

Definition at line 16 of file passthebuck.h.

◆ STAT_FAILURE

#define STAT_FAILURE   7 /* Call to stat() function failed */

Definition at line 11 of file passthebuck.h.

int status
Definition: l1_czcs_hdf.c:32
#define LIFE_IS_GOOD
Definition: passthebuck.h:4