ocssw  1.0
Defines
/disk01/web/ocssw/build/inc/swfinc/passthebuck.h File Reference

(r8090/r659)

Go to the source code of this file.

Defines

#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)

Define Documentation

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

Definition at line 9 of file passthebuck.h.

#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.

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

Definition at line 5 of file passthebuck.h.

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

Definition at line 12 of file passthebuck.h.

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

Definition at line 13 of file passthebuck.h.

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

Definition at line 14 of file passthebuck.h.

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

Definition at line 7 of file passthebuck.h.

#define LIFE_IS_GOOD   0 /* Successful return status */

Definition at line 4 of file passthebuck.h.

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

Definition at line 6 of file passthebuck.h.

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

Definition at line 10 of file passthebuck.h.

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

Definition at line 8 of file passthebuck.h.

#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.

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

Definition at line 11 of file passthebuck.h.