This commit is contained in:
cvs
2000-04-10 14:33:07 +00:00
parent c70f0b7cb8
commit d4974b94e8
11 changed files with 236 additions and 164 deletions

View File

@@ -89,23 +89,26 @@ void ErrSetOutFile(FILE *arg) {
outarg=arg;
}
void ERR_EXIT(char *text) {
ErrWrite(text); exit(1);
}
void ErrShowFtn_(char *text, int length) {
char buf[256];
if (length>=256) length=255;
strncpy(buf, text, length);
buf[length]='\0';
ErrWrite(buf);
}
#ifdef __VMS
typedef struct { short size, dummy; char *text; } Desc;
void ErrShowVms(Desc *desc) {
char buf[256];
int l;
l=desc->size;
if (l>=256) l=255;
strncpy(buf, desc->text, l);
buf[l]='\0';
ErrWrite(buf);
void ErrShowFtn(Desc *desc) {
ErrShowFtn_(desc->text, desc->size);
}
#endif
void ERR_EXIT(char *text) {
ErrWrite(text); exit(1);
}