X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/c846879ccf3e86ea293c157f4aa2ff8716fb5b4c..573eadb534c42c4feace5e493cc135dd5e7b00d9:/exc.h diff --git a/exc.h b/exc.h index 6025a4a..42bba1a 100644 --- a/exc.h +++ b/exc.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: exc.h,v 1.2 1999/05/05 18:50:31 mdw Exp $ + * $Id: exc.h,v 1.6 2000/08/07 19:50:18 mdw Exp $ * * Structured exception handling in C * @@ -22,13 +22,26 @@ * GNU Library General Public License for more details. * * You should have received a copy of the GNU Library General Public - * License along with mLib; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * License along with mLib; if not, write to the Free + * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. */ /*----- Revision history --------------------------------------------------* * * $Log: exc.h,v $ + * Revision 1.6 2000/08/07 19:50:18 mdw + * Fix typo in comment. + * + * Revision 1.5 1999/12/10 23:42:04 mdw + * Change header file guard names. + * + * Revision 1.4 1999/10/22 22:39:18 mdw + * Add an exception group for mLib. + * + * Revision 1.3 1999/05/06 19:51:35 mdw + * Reformatted the LGPL notice a little bit. + * * Revision 1.2 1999/05/05 18:50:31 mdw * Change licensing conditions to LGPL. * @@ -37,8 +50,8 @@ * */ -#ifndef EXC_H -#define EXC_H +#ifndef MLIB_EXC_H +#define MLIB_EXC_H #ifdef __cplusplus extern "C" { @@ -127,7 +140,7 @@ * the type of the value field (see below). */ -/* --- Type type of an exception --- */ +/* --- Type of an exception --- */ typedef unsigned long exc_extype; @@ -148,6 +161,7 @@ typedef unsigned long exc_extype; #define EXC_GLOBAL 0u /* The global space defined here */ #define EXC_SHARED 0xFFFFu /* The shared space for everyone */ +#define EXC_MLIB EXC_PAIR('m', 'L') /* Space for mLib exceptions */ /*----- Exception values --------------------------------------------------* *