home *** CD-ROM | disk | FTP | other *** search
- /*
- error.h
- */
- /* Copyright (c) 1994 Christian F. Tschudin. All rights reserved.
-
- Distributed under the terms of the GNU General Public License
- version 2 of june 1991 as published by the Free Software
- Foundation, Inc.
-
- This file is part of M0.
-
- M0 is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY. No author or distributor accepts responsibility to anyone for
- the consequences of using it or for whether it serves any particular
- purpose or works at all, unless he says so in writing. Refer to the GNU
- General Public License for full details.
-
- Everyone is granted permission to copy, modify and redistribute M0, but
- only under the conditions described in the GNU General Public License.
- A copy of this license is supposed to have been given to you along with
- M0 so you can know your rights and responsibilities. It should be in a
- file named LICENSE. Among other things, the copyright notice and this
- notice must be preserved on all copies. */
-
- #ifndef ERROR_H
- #define ERROR_H
-
- #include "std.h"
-
- enum {
- ERR_STACK_UNDERFLOW,
- ERR_OSTACK_OVERFLOW,
- ERR_DSTACK_OVERFLOW,
- ERR_ESTACK_OVERFLOW,
-
- ERR_TYPE_CHECK,
- ERR_RANGE_CHECK,
- ERR_ACCESS_CHECK,
- ERR_DIVISION_BY_ZERO,
-
- ERR_NOT_IN_LOOP,
- ERR_NOT_IN_HALTED,
- ERR_NO_MARK_FOUND,
-
- ERR_DICT_FULL,
- ERR_INVALID_CHANNEL,
- ERR_UNDEFINED,
-
- ERR_SYNTAX,
- ERR_NOT_IMPLEMENTED,
- ERR_IMPLEMENTATION_LIMIT,
-
- ERR_CIRCULAR_DATA,
-
- LAST_ERROR,
-
- OK,
-
- ERR_IN_INIT,
- ERR_INVALID_FILE_NAME,
- ERR_WHILE_READING_FILE,
-
- ERR_MALLOC_FAILED,
- ERR_OUT_OF_LOCALS,
-
- ERR_SHORT_MSGR,
- ERR_MSGR_CRC,
- ERR_MSGR_WRONG_VERSION,
-
- ERR_NO_PROCESS,
- YIELD_CPU,
- ABORT,
- IDLE
- };
-
- typedef int retcode;
-
- #endif
-