20 líneas
572 B
C
20 líneas
572 B
C
/**
|
|
* @PROJECT CGI Bash Shell Interface
|
|
* @COPYRIGHT See COPYING in the top level directory
|
|
* @FILE error.h
|
|
* @PURPOSE Error handling
|
|
* @DEVELOPERS Nathan Angelacos <nangel@users.sourceforge.net>
|
|
* Rafal Kupiec <belliash@asiotec.eu.org>
|
|
*/
|
|
|
|
#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
|