| 1 | /* |
| 2 | * |
| 3 | * except.m - XXX |
| 4 | * |
| 5 | * Copyright (C) 1999 Steve Ratcliffe |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License version 2 as |
| 9 | * published by the Free Software Foundation. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | * |
| 17 | */ |
| 18 | |
| 19 | #include <setjmp.h> |
| 20 | |
| 21 | struct except { |
| 22 | int set; |
| 23 | sigjmp_buf buf; |
| 24 | }; |
| 25 | |
| 26 | extern struct except *formatError; /* Bad file format */ |
| 27 | extern struct except *ioError; /* Error reading/writing file */ |
| 28 | extern struct except *debugError; /* Debugging 'shouldn't happen' errors */ |
| 29 | |
| 30 | void except(struct except *e, char *message, ...); |