#include <stdio.h>#include <string.h>#include "Error.hpp"Go to the source code of this file.
Compounds | |
| struct | ErrLine |
Defines | |
| #define | ERRMSG_MAXLEN 512 |
Functions | |
| void | Error (char *str, int len) |
| void | Error (char *str) |
| void | ErrorCont (char *str, int len) |
| void | ErrorCont (char *str) |
| void | PrintErrorMsg () |
| void | Exit () |
Variables | |
| ErrLine * | curerrline = NULL |
| char | errmsg [ERRMSG_MAXLEN+1] |
| char * | curptr = errmsg |
| int | errstrlen |
| char * | msgptr = errmsg+ERRMSG_MAXLEN-1 |
| XMillException | e |
|
|
|
|
|
Definition at line 72 of file Error.cpp. 00074 {
00075 Error(str,strlen(str));
00076 }
|
|
||||||||||||
|
Definition at line 57 of file Error.cpp. 00059 {
00060 if((curptr-errmsg)+sizeof(ErrLine)+len+1>ERRMSG_MAXLEN)
00061 return;
00062
00063 ((ErrLine *)curptr)->next=curerrline;
00064 curerrline=(ErrLine *)curptr;
00065
00066 memcpy(curerrline+1,str,len);
00067 ((char *)(curerrline+1))[len]=0;
00068
00069 curptr+=sizeof(ErrLine)+len+1;
00070 }
|
|
|
Definition at line 91 of file Error.cpp. 00093 {
00094 ErrorCont(str,strlen(str));
00095 }
|
|
||||||||||||
|
|
|
|
Definition at line 113 of file Error.cpp. Referenced by ExitCorruptFile(), FindEndOfParamString(), Output::GetDataPtr(), HandleBinOp(), HandleCloseParenc(), HandleUnaryOp(), InterpretOptionString(), ParseOptionFile(), ParseString(), VRegExpr::ParseVRegExpr(), MemStreamer::ReleaseByteBlock(), XMLOutput::endAttribute(), XMLOutput::endElement(), XMLOutput::startAttribute(), and XMLOutput::startElement().
00114 {
00115 // PrintErrorMsg();
00116 throw &e;
00117 }
|
|
|
Definition at line 97 of file Error.cpp. 00099 {
00100 while(curerrline!=NULL)
00101 {
00102 printf("%s\n",(char *)(curerrline+1));
00103 curerrline=curerrline->next;
00104 }
00105
00106 curptr=errmsg;
00107 msgptr=errmsg+ERRMSG_MAXLEN-1;
00108 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001