[project @ 1998-12-02 13:17:09 by simonm]
[ghc-hetmet.git] / ghc / includes / Prelude.h
1 /* -----------------------------------------------------------------------------
2  * $Id: Prelude.h,v 1.2 1998/12/02 13:21:18 simonm Exp $
3  *
4  * Prelude identifiers that we sometimes need to refer to in the RTS.
5  *
6  * ---------------------------------------------------------------------------*/
7
8 #ifndef PRELUDE_H
9 #define PRELUDE_H
10
11 #ifdef COMPILER
12 extern const StgClosure PrelBase_Z91Z93_static_closure;
13 extern const StgClosure PrelBase_Z40Z41_static_closure;
14 extern const StgClosure PrelBase_True_static_closure;
15 extern const StgClosure PrelBase_False_static_closure;
16 extern const StgClosure PrelMain_mainIO_closure;
17 extern const StgClosure PrelPack_unpackCString_closure;
18
19 extern const StgInfoTable PrelBase_CZh_static_info;
20 extern const StgInfoTable PrelBase_IZh_static_info;
21 extern const StgInfoTable PrelBase_FZh_static_info;
22 extern const StgInfoTable PrelBase_DZh_static_info;
23 extern const StgInfoTable PrelAddr_AZh_static_info;
24 extern const StgInfoTable PrelAddr_WZh_static_info;
25 extern const StgInfoTable PrelBase_CZh_con_info;
26 extern const StgInfoTable PrelBase_IZh_con_info;
27 extern const StgInfoTable PrelBase_FZh_con_info;
28 extern const StgInfoTable PrelBase_DZh_con_info;
29 extern const StgInfoTable PrelAddr_AZh_con_info;
30 extern const StgInfoTable PrelAddr_WZh_con_info;
31 extern const StgInfoTable PrelAddr_I64Zh_con_info;
32 extern const StgInfoTable PrelAddr_W64Zh_con_info;
33 extern const StgInfoTable PrelForeign_StablePtr_static_info;
34 extern const StgInfoTable PrelForeign_StablePtr_con_info;
35
36 /* Define canonical names so we can abstract away from the actual
37  * module these names are defined in.
38  */
39
40 #define Nil_closure           PrelBase_Z91Z93_static_closure
41 #define Unit_closure          PrelBase_Z40Z41_static_closure
42 #define True_closure          PrelBase_True_static_closure
43 #define False_closure         PrelBase_False_static_closure
44 #define CZh_static_info       PrelBase_CZh_static_info
45 #define IZh_static_info       PrelBase_IZh_static_info
46 #define FZh_static_info       PrelBase_FZh_static_info
47 #define DZh_static_info       PrelBase_DZh_static_info
48 #define AZh_static_info       PrelAddr_AZh_static_info
49 #define WZh_static_info       PrelAddr_WZh_static_info
50 #define CZh_con_info          PrelBase_CZh_con_info
51 #define IZh_con_info          PrelBase_IZh_con_info
52 #define FZh_con_info          PrelBase_FZh_con_info
53 #define DZh_con_info          PrelBase_DZh_con_info
54 #define AZh_con_info          PrelAddr_AZh_con_info
55 #define WZh_con_info          PrelAddr_WZh_con_info
56 #define W64Zh_con_info        PrelAddr_W64Zh_con_info
57 #define I64Zh_con_info        PrelAddr_I64Zh_con_info
58 #define StablePtr_static_info PrelForeign_StablePtr_static_info
59 #define StablePtr_con_info    PrelForeign_StablePtr_con_info
60 #define mainIO_closure        PrelMain_mainIO_closure
61 #define unpackCString_closure PrelPack_unpackCString_closure
62
63 #else /* INTERPRETER, I guess */
64
65 extern const StgInfoTable CZh_con_info;
66 extern const StgInfoTable IZh_con_info;
67 extern const StgInfoTable I64Zh_con_info;
68 extern const StgInfoTable FZh_con_info;
69 extern const StgInfoTable DZh_con_info;
70 extern const StgInfoTable AZh_con_info;
71 extern const StgInfoTable WZh_con_info;
72 extern const StgInfoTable StablePtr_con_info;
73
74 extern const StgInfoTable CZh_static_info;
75 extern const StgInfoTable IZh_static_info;
76 extern const StgInfoTable I64Zh_static_info;
77 extern const StgInfoTable FZh_static_info;
78 extern const StgInfoTable DZh_static_info;
79 extern const StgInfoTable AZh_static_info;
80 extern const StgInfoTable WZh_static_info;
81 extern const StgInfoTable StablePtr_static_info;
82
83 #define W64Zh_con_info        I64Zh_con_info
84 #define W64Zh_static_info     I64Zh_con_info
85
86 #endif
87
88 #endif /* PRELUDE_H */