1 /*------------------------------------------------------------\
2 |                                                             |
3 | This file is part of the Alliance CAD System Copyright      |
4 | (C) Laboratoire LIP6 - D�partement ASIM Universite P&M Curie|
5 |                                                             |
6 | Home page      : http://www-asim.lip6.fr/alliance/          |
7 | E-mail         : mailto:alliance-users@asim.lip6.fr       |
8 |                                                             |
9 | This progam is  free software; you can redistribute it      |
10 | and/or modify it under the  terms of the GNU Library General|
11 | Public License as published by the Free Software Foundation |
12 | either version 2 of the License, or (at your option) any    |
13 | later version.                                              |
14 |                                                             |
15 | Alliance VLSI  CAD System  is distributed  in the hope that |
16 | it  will be useful, but WITHOUT  ANY WARRANTY;              |
17 | without even the  implied warranty of MERCHANTABILITY or    |
18 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General       |
19 | Public License for more details.                            |
20 |                                                             |
21 | You should have received a copy  of the GNU General Public  |
22 | License along with the GNU C Library; see the file COPYING. |
23 | If not, write to the Free Software Foundation, Inc.,        |
24 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.                     |
25 |                                                             |
26 \------------------------------------------------------------*/
27 /*------------------------------------------------------------\
28 |                                                             |
29 | Tool    :                     Aut                           |
30 |                                                             |
31 | File    :                 Aut Errors                        |
32 |                                                             |
33 | Authors :                Jacomme Ludovic                    |
34 |                                                             |
35 | Date    :                   03.12.96                        |
36 |                                                             |
37 \------------------------------------------------------------*/
38 
39 # ifndef AUT_ERROR_H
40 # define AUT_ERROR_H
41 
42 #ifndef __P
43 # if defined(__STDC__) ||  defined(__GNUC__)
44 #  define __P(x) x
45 # else
46 #  define __P(x) ()
47 # endif
48 #endif
49 
50 /*------------------------------------------------------------\
51 |                                                             |
52 |                           Constants                         |
53 |                                                             |
54 \------------------------------------------------------------*/
55 
56 # define AUT_ALLOC_ERROR             0
57 # define AUT_ALLOC_SIZE_ERROR        1
58 # define AUT_RESIZE_ERROR            2
59 # define AUT_HASH_SIZE_ERROR         3
60 # define AUT_HASH_KEY_ERROR          4
61 # define AUT_OPEN_FILE_ERROR         5
62 # define AUT_CLOSE_FILE_ERROR        6
63 
64 # define AUT_EXIT_CORE_WARNING       0
65 # define AUT_ALLOC_DEBUG_WARNING     1
66 # define AUT_ABNORMAL_EXIT_WARNING   2
67 
68 /*------------------------------------------------------------\
69 |                                                             |
70 |                            Types                            |
71 |                                                             |
72 \------------------------------------------------------------*/
73 /*------------------------------------------------------------\
74 |                                                             |
75 |                          Variables                          |
76 |                                                             |
77 \------------------------------------------------------------*/
78 /*------------------------------------------------------------\
79 |                                                             |
80 |                            Macros                           |
81 |                                                             |
82 \------------------------------------------------------------*/
83 
84 # define auterror( E, V ) \
85   (aut_error( (int)(E), (char *)(V), autbasename(__FILE__,NULL), __LINE__ ))
86 # define autwarning( W, V ) \
87   (aut_warning( (int)(W), (char *)(V), autbasename(__FILE__,NULL), __LINE__ ))
88 
89 /*------------------------------------------------------------\
90 |                                                             |
91 |                          Functions                          |
92 |                                                             |
93 \------------------------------------------------------------*/
94 
95   extern  void  aut_error   __P((int Error, char *Text, char *File, long Line));
96   extern  void  aut_warning __P((int Warning, char* Text, char* File, long Line ));
97 
98 # endif
99