/** * @PROJECT CGI Bash Shell Interface * @COPYRIGHT See COPYING in the top level directory * @FILE error.h * @PURPOSE Error handling * @DEVELOPERS Nathan Angelacos * Rafal Kupiec */ #ifndef __ERROR_H #define __ERROR_H enum error_types { E_NO_ERROR, E_MALLOC_FAIL, E_FILE_OPEN_FAIL, E_END_BEFORE_BEGIN, E_NO_END_MARKER , E_NO_OP, E_SUBSHELL_FAIL, E_WHATEVER }; extern char *g_err_msg[]; void die_with_error(char* msg); void die_with_message(void* sp, char* where, const char* s, ...); #endif