error.h

00001 /*****************************************************************************
00002  *                             error.h
00003  * This file defines the constants, macros and enumerations useful in error
00004  * handling.
00005  *
00006  ***************************************************************************/
00007 
00008 #ifndef H_ERROR_INCLUDED
00009 #define H_ERROR_INCLUDED
00010 #include <stdarg.h>
00011 
00012 typedef enum
00013 { ERR_ERRNO,                            /* , int */
00014                                         /* ENOMEM */
00015                                         /* EACCES --> file, action */
00016                                         /* ENOENT --> file */
00017   ERR_TYPE,                             /* char *expected, term_t actual */
00018   ERR_DOMAIN,                           /* char *expected, term_t actual */
00019   ERR_EXISTENCE,                        /* char *expected, term_t actual */
00020 
00021   ERR_FAIL,                             /* term_t goal */
00022 
00023   ERR_LIMIT,                            /* char *limit, long max */
00024   ERR_MISC                              /* char *fmt, ... */
00025 } plerrorid;
00026 
00027 int             sgml2pl_error(plerrorid, ...);
00028 
00029 #endif /*H_ERROR_INCLUDED*/

Generated on Wed Jul 26 13:30:45 2006 for XSB by  doxygen 1.4.5