1 #ifndef __P 2 # if defined(__STDC__) || defined(__GNUC__) 3 # define __P(x) x 4 # else 5 # define __P(x) () 6 # endif 7 #endif 8 /*------------------------------------------------------------\ 9 | | 10 | Tool : RDS | 11 | | 12 | File : rdserror.c | 13 | | 14 | Authors : Jacomme Ludovic | 15 | | 16 | Date : 27.06.95 | 17 | | 18 \------------------------------------------------------------*/ 19 20 # ifndef RDS_ERROR_H 21 # define RDS_ERROR_H 22 23 # include <libgen.h> 24 25 /*------------------------------------------------------------\ 26 | | 27 | Constants | 28 | | 29 \------------------------------------------------------------*/ 30 31 # define RDS_ALLOC_ERROR 0 32 33 /*------------------------------------------------------------\ 34 | | 35 | Types | 36 | | 37 \------------------------------------------------------------*/ 38 /*------------------------------------------------------------\ 39 | | 40 | Variables | 41 | | 42 \------------------------------------------------------------*/ 43 /*------------------------------------------------------------\ 44 | | 45 | Macros | 46 | | 47 \------------------------------------------------------------*/ 48 49 # define rdserror( E, V ) (rds_error( (E), (V), basename(__FILE__), __LINE__ )) 50 51 /*------------------------------------------------------------\ 52 | | 53 | Functions | 54 | | 55 \------------------------------------------------------------*/ 56 57 extern void rds_error __P((char Error, char *Text, char *File, long Line)); 58 59 # endif 60