1 /* yForth? - Written by Luca Padovani (C) 1996/97
2 * ------------------------------------------------------------------------
3 * This software is FreeWare as long as it comes with this header in each
4 * source file, anyway you can use it or any part of it whatever
5 * you want. It comes without any warranty, so use it at your own risk.
6 * ------------------------------------------------------------------------
7 * Module name: errors.h
8 * Abstract: definitions for system error codes
11 #define E_OK 0 /* no error */
12 #define E_NOINPUT -1 /* no input available */
13 #define E_NOWORD -2 /* unknown word */
14 #define E_NOCOMP -3 /* word must be compiled */
15 #define E_NOVOC -4 /* corrupted dictionary */
16 #define E_NOMEM -5 /* not enough memory */
17 #define E_DSTK_UNDER -6 /* data-stack underflow */
18 #define E_DSTK_OVER -7 /* data-stack overflow */
19 #define E_RSTK_UNDER -8 /* return-stack underflow */
20 #define E_RSTK_OVER -9 /* return-stack overflow */
21 #define E_FSTK_UNDER -10 /* floating-stack undeflow */
22 #define E_FSTK_OVER -11 /* floading-stack overflow */
23 #define E_DSPACE_UNDER -12 /* dictionary-space underflow */
24 #define E_DSPACE_OVER -13 /* dictionary-space overflow */
25 #define E_NOFILE -14 /* unable to access image file */
26 #define E_NOPRIM -15 /* primitive not implemented */
27 #define E_FPE -16 /* floating point exception */
28 #define E_SEGV -17 /* segmentation violation */
29 #define E_FILENOTFOUND -18 /* file not found (during "included") */