1 /* yForth? - A Forth interpreter written in ANSI C
2 * Copyright (C) 2012 Luca Padovani
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 * ------------------------------------------------------------------------
17 * Module name: errors.h
18 * Abstract: definitions for system error codes
21 #define E_OK 0 /* no error */
22 #define E_NOINPUT -1 /* no input available */
23 #define E_NOWORD -2 /* unknown word */
24 #define E_NOCOMP -3 /* word must be compiled */
25 #define E_NOVOC -4 /* corrupted dictionary */
26 #define E_NOMEM -5 /* not enough memory */
27 #define E_DSTK_UNDER -6 /* data-stack underflow */
28 #define E_DSTK_OVER -7 /* data-stack overflow */
29 #define E_RSTK_UNDER -8 /* return-stack underflow */
30 #define E_RSTK_OVER -9 /* return-stack overflow */
31 #define E_FSTK_UNDER -10 /* floating-stack undeflow */
32 #define E_FSTK_OVER -11 /* floading-stack overflow */
33 #define E_DSPACE_UNDER -12 /* dictionary-space underflow */
34 #define E_DSPACE_OVER -13 /* dictionary-space overflow */
35 #define E_NOFILE -14 /* unable to access image file */
36 #define E_NOPRIM -15 /* primitive not implemented */
37 #define E_FPE -16 /* floating point exception */
38 #define E_SEGV -17 /* segmentation violation */
39 #define E_FILENOTFOUND -18 /* file not found (during "included") */