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