42      if ( e->
full < severity )
 
   64  c += sprintf ( c, 
"%s: ", origin );
 
   69      c+= sprintf ( c, 
" = MISSING. " );
 
   74        c += sprintf ( c, 
" = '%s'. ", s->
a->
cval );
 
   75      else if ( s->
a->
desc.
x == 2 )
 
   76        c += sprintf ( c, 
" = '%s'. ", s->
a->
ctable );
 
   78        c += sprintf ( c, 
" = %lf . ", s->
a->
val );
 
   81  c += sprintf ( c, 
"%s", explanation );
 
   92      printf ( 
"# No info/warning/error \n" );
 
   96  for ( i = 0; i < e->
ne ; i++ )
 
   99        printf ( 
"# INFO: " );
 
  101        printf ( 
"# WARNING: " );
 
  103        printf ( 
"# ERROR: " );
 
  112    printf ( 
"# More debug info follows, stack of logs full\n" );
 
Include header file for binary bufr2tac.
 
#define BUFR2TAC_ERROR_STACK_DIM
set de dimension of a struct bufr2tac_error_stack
 
#define BUFR2TAC_ERROR_DESCRIPTION_LENGTH
set de dimension of member description of a struct bufr2tac_error
 
int bufr2tac_set_error(struct bufr2tac_subset_state *s, int severity, char *origin, char *explanation)
 
int bufr2tac_push_error(struct bufr2tac_error_stack *e, int severity, char *description)
 
int bufr2tac_print_error(struct bufr2tac_error_stack *e)
 
int bufr2tac_clean_error_stack(struct bufr2tac_error_stack *e)
 
#define DESCRIPTOR_VALUE_MISSING
Bit mask for a missing value in a struct bufr_atom_data.
 
A stack of structs bufr2tac_error.
 
struct bufr2tac_error err[BUFR2TAC_ERROR_STACK_DIM]
 
char description[BUFR2TAC_ERROR_DESCRIPTION_LENGTH]
 
stores information needed to parse a sequential list of expanded descriptors for a subset
 
struct bufr_atom_data * a
 
struct bufr2tac_error_stack e
 
char name[BUFR_TABLEB_NAME_LENGTH]
 
char ctable[BUFR_EXPLAINED_LENGTH]
 
struct bufr_descriptor desc
 
char cval[BUFR_CVAL_LENGTH]