Files
Digital-Research-Source-Code/CPM OPERATING SYSTEMS/CPM 68K/cpm68k_pgms/sdbas/ERR.C
Sepp J Morris 31738079c4 Upload
Digital Research
2020-11-06 18:50:37 +01:00

1 line
1.8 KiB
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* SDB - error messages */
#include "sdbio.h"
char *db_ertxt(msg)
int msg;
{
char *txt;
/* select the appropriate message text */
switch (msg) {
case INSMEM:
txt = "insufficient memory";
break;
case RELFNF:
txt = "relation file not found";
break;
case BADHDR:
txt = "bad relation header";
break;
case TUPINP:
txt = "tuple input error";
break;
case TUPOUT:
txt = "tuple output error";
break;
case RELFUL:
txt = "relation file full";
break;
case RELCRE:
txt = "error creating relation file";
break;
case DUPATT:
txt = "duplicate attribute";
break;
case MAXATT:
txt = "too many attributes";
break;
case INSBLK:
txt = "insufficient disk space";
break;
case SYNTAX:
txt = "syntax error";
break;
case ATUNDF:
txt = "undefined attribute";
break;
case ATAMBG:
txt = "ambiguous attribute";
break;
case RLUNDF:
txt = "undefined relation";
break;
case CDSIZE:
txt = "boolean expression too complex";
break;
case INPFNF:
txt = "input file not found";
break;
case OUTCRE:
txt = "error creating output file";
break;
case INDFNF:
txt = "indirect command file not found";
break;
case BADSET:
txt = "bad set parameter";
break;
default:
txt = "undefined error";
break;
}
/* return the message text */
return (txt);
}