diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-08-19 03:12:28 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-08-19 03:12:28 +0000 |
commit | 1fd361a1ea06e44286c213ca1f814f49306fdc43 (patch) | |
tree | 64c8c96cf54d8718847339a403e5e67b922e8c3f /converter/other/fiasco/binerror.h | |
download | netpbm-mirror-1fd361a1ea06e44286c213ca1f814f49306fdc43.tar.gz netpbm-mirror-1fd361a1ea06e44286c213ca1f814f49306fdc43.tar.xz netpbm-mirror-1fd361a1ea06e44286c213ca1f814f49306fdc43.zip |
Create Subversion repository
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/fiasco/binerror.h')
-rw-r--r-- | converter/other/fiasco/binerror.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/converter/other/fiasco/binerror.h b/converter/other/fiasco/binerror.h new file mode 100644 index 00000000..e7ff43c9 --- /dev/null +++ b/converter/other/fiasco/binerror.h @@ -0,0 +1,50 @@ +/* + * error.h + * + * Written by: Stefan Frank + * Ullrich Hafner + * + * This file is part of FIASCO («F»ractal «I»mage «A»nd «S»equence «CO»dec) + * Copyright (C) 1994-2000 Ullrich Hafner <hafner@bigfoot.de> + */ + +/* + * $Date: 2000/03/20 21:29:59 $ + * $Author: hafner $ + * $Revision: 4.3 $ + * $State: Exp $ + */ + +#ifndef _ERROR_H +#define _ERROR_H + +#define error error_line=__LINE__,error_file=__FILE__,_error +#define warning error_line=__LINE__,error_file=__FILE__,_warning +#define file_error(fn) error_line=__LINE__,error_file=__FILE__,_file_error(fn) + +#ifdef _ERROR_C +#define _EXTERN_TYPE +#else +#define _EXTERN_TYPE extern +#endif + +_EXTERN_TYPE int error_line; +_EXTERN_TYPE const char *error_file; + +void +init_error_handling (const char *name); +void +_error (const char *format, ...); +void +_warning (const char *format, ...); +void +_file_error (const char *filename); + +#if HAVE_ASSERT_H +# include <assert.h> +#else /* not HAVE_ASSERT_H */ +# define assert(exp) {if (!(exp)) error ("Assertion `" #exp " != NULL' failed.");} +#endif /* not HAVE_ASSERT_H */ + +#endif /* not _ERROR_H */ + |