5#include "tpcclibConfig.h"
19static char *tpcerrormsg[] = {
23 "unable to allocate memory",
24 "file does not exist",
31 "invalid file format",
32 "unsupported file type",
33 "file contains no data",
34 "file contains duplicate data",
35 "file contains no weights",
36 "file contains no date or time",
37 "file contains missing values",
38 "file contains too few samples",
43 "invalid sample time",
44 "invalid sample time range",
47 "reference not found",
51 "invalid field delimiter",
52 "invalid nr of parameters",
58 "fitting not successful",
73 return tpcerrormsg[e];
88 if(fp==NULL || s==NULL)
return;
133 if(s->
fp!=NULL && s->
fp!=stdout && s->
fp!=stderr) fclose(s->
fp);
void statusPrint(FILE *fp, TPCSTATUS *s)
void statusInit(TPCSTATUS *s)
char * errorMsg(tpcerror e)
void statusSet(TPCSTATUS *s, const char *func, const char *srcfile, int srcline, tpcerror error)
void statusFree(TPCSTATUS *s)
char * strdup(const char *s)
int verbose
Verbose level, used by statusPrint() etc.
FILE * fp
File pointer for writing log information during development and testing.
int forgiving
Force level, 0 for strict tests for data units etc.
char * current_func
Function where status was last time set.
int current_line
Source line nr where status was last time set.
char * last_file
Source file name where status previously set.
char * current_file
Source file name where status was last time set.
int last_line
Source line nr where status was previously set.
tpcerror error
Error code.
char * last_func
Function where status was previously set.
Header file for library libtpcextensions.
tpcerror
Error codes. Error code tpcerror, same as error message position in the table (table can not be acces...
@ TPCERROR_LAST
marking the end of list