#include #include #include "libami.h" #ifndef AMIGAOS static int amiga_errno=0; #define MIN_ERRNO 103 static const char *syserrmsg[] = { "not enough memory available", /* 103 */ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, "bad template", /* 114 */ "bad number", /* 115 */ "required argument missing", /* 116 */ "value after keyword missing", /* 117 */ "wrong number of arguments", /* 118 */ NULL, "argument line invalid or too long" /* 120 */ }; BOOL Fault(LONG code, UBYTE *header, UBYTE *buffer, LONG len) { amiga_errno=code; if(header) { int hdlen=strlen((char *)header); if(hdlen+2>len) return FALSE; strcpy((char *)buffer, (char *)header); buffer+=hdlen; *buffer++=':'; *buffer++=' '; len-=hdlen+2; } if(code>=MIN_ERRNO && code