122 static void PrintAnError(
char *
error);
141 if(sErrorStack ==
NULL)
153 if((p->
error = (
char *)malloc((strlen(error)+1) *
sizeof(
char)))
156 strcpy(p->
error, error);
158 if((p->
routine = (
char *)malloc((strlen(routine)+1) *
sizeof(
char)))
187 for(p=sErrorStack; p!=
NULL;
NEXT(p))
192 strcpy(buffer,p->
error);
194 if(PrintRoutine ==
NULL)
195 PrintAnError(buffer);
197 (*PrintRoutine)(buffer);
213 static void PrintAnError(
char *
string)
215 fprintf(stderr,
"%s\n",
string);
void blShowErrors(void *PrintRoutine(char *), BOOL Trace)
void blStoreError(char *routine, char *error)
struct _errorstack ERRORSTACK
System-type variable type definitions.
struct _errorstack * next
Build and print an error stack for program failure.