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    :                  rprerror.h                       |
13 |                                                             |
14 | Authors :                Jacomme Ludovic                    |
15 |                                                             |
16 | Date    :                   27.06.95                        |
17 |                                                             |
18 \------------------------------------------------------------*/
19 
20 # ifndef RPR_ERROR_H
21 # define RPR_ERROR_H
22 
23 /*------------------------------------------------------------\
24 |                                                             |
25 |                           Constants                         |
26 |                                                             |
27 \------------------------------------------------------------*/
28 /*------------------------------------------------------------\
29 |                                                             |
30 |                       Rpr Error Constants                   |
31 |                                                             |
32 \------------------------------------------------------------*/
33 
34 # define RPR_DEFINE_MISSING  0
35 # define RPR_TABLE_MISSING   1
36 # define RPR_LINE_EXPECTED   2
37 # define RPR_UNKNOWN_DEFINE  3
38 # define RPR_NOT_DEFINED     4
39 # define RPR_MULTIPLE_GRID   5
40 # define RPR_TOO_SMAL        6
41 # define RPR_MISSING_VALUE   7
42 # define RPR_MISSING_NAME    8
43 # define RPR_ILLEGAL_FLOAT   9
44 # define RPR_UNEXPECTED_LINE 10
45 # define RPR_UNEXPECTED_EOF  11
46 # define RPR_TOO_MANY_WORDS  12
47 # define RPR_MISSING_TABLE   13
48 # define RPR_OPEN_FILE       14
49 # define RPR_MISSING_POST    15
50 # define RPR_NEGATIVE_VALUE  16
51 # define RPR_SYNTAX_ERROR    17
52 
53 /*------------------------------------------------------------\
54 |                                                             |
55 |                            Types                            |
56 |                                                             |
57 \------------------------------------------------------------*/
58 /*------------------------------------------------------------\
59 |                                                             |
60 |                          Variables                          |
61 |                                                             |
62 \------------------------------------------------------------*/
63 /*------------------------------------------------------------\
64 |                                                             |
65 |                            Macros                           |
66 |                                                             |
67 \------------------------------------------------------------*/
68 
69 # define rprerror( E, V, D ) (rpr_error( (E), (V), (D), basename(__FILE__), __LINE__ ))
70 
71 /*------------------------------------------------------------\
72 |                                                             |
73 |                          Functions                          |
74 |                                                             |
75 \------------------------------------------------------------*/
76 
77   extern           void  rpr_error __P((char Error, char *Text, long Data, char *File, long Line));
78 
79 # endif
80