Debian Codegraph @

f77/fcom/ftypes.h

raw symbols SCIP
1 /* $Id: ftypes.h,v 1.5 2008/12/19 08:08:48 ragge Exp $ */
2 /*
3 * Copyright(C) Caldera International Inc. 2001-2002. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code and documentation must retain the above
10 * copyright notice, this list of conditions and the following disclaimer.
11 * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditionsand the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * All advertising materials mentioning features or use of this software
15 * must display the following acknowledgement:
16 * This product includes software developed or owned by Caldera
17 * International, Inc.
18 * Neither the name of Caldera International, Inc. nor the names of other
19 * contributors may be used to endorse or promote products derived from
20 * this software without specific prior written permission.
21 *
22 * USE OF THE SOFTWARE PROVIDED FOR UNDER THIS LICENSE BY CALDERA
23 * INTERNATIONAL, INC. AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR
24 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26 * DISCLAIMED. IN NO EVENT SHALL CALDERA INTERNATIONAL, INC. BE LIABLE
27 * FOR ANY DIRECT, INDIRECT INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OFLIABILITY, WHETHER IN CONTRACT,
31 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
32 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33 * POSSIBILITY OF SUCH DAMAGE.
34 */
35 /* variable types
36 * numeric assumptions:
37 * int < reals < complexes
38 * TYDREAL-TYREAL = TYDCOMPLEX-TYCOMPLEX
39 */
40
41 #ifndef _FTYPES_H_
42 #define _FTYPES_H_
43
44
45 #define TYUNKNOWN 0
46 #define TYADDR 1
47 #define TYSHORT 2
48 #define TYLONG 3
49 #define TYREAL 4
50 #define TYDREAL 5
51 #define TYCOMPLEX 6
52 #define TYDCOMPLEX 7
53 #define TYLOGICAL 8
54 #define TYCHAR 9
55 #define TYSUBR 10
56 #define TYERROR 11
57
58 #define NTYPES (TYERROR+1)
59
60 /*
61 * Type conversion from pcc to f77 internal format.
62 */
63 #define FSZADDR (SZPOINT(0)/SZCHAR) /* XXX - typecheck? */
64 #define FSZSHORT (SZSHORT/SZCHAR)
65 #define FSZINT (SZINT/SZCHAR)
66 #define FSZLONG (SZLONG/SZCHAR)
67 #define ALIADDR (ALPOINT/ALCHAR)
68 #define ALISHORT (ALSHORT/ALCHAR)
69 #define ALILONG (ALLONG/ALCHAR)
70 #define ALIDOUBLE (ALDOUBLE/ALCHAR)
71
72 #ifndef SZINT
73 #include "macdefs.h"
74 #endif
75 #if SZINT == SZSHORT
76 #define TYINT TYSHORT
77 #else /* SZLONG >= SZINT */
78 #define TYINT TYLONG
79 #endif
80
81 #define TYLENG TYLONG
82 #endif /* !_FTYPES_H_ */