1 /* -----------------------------------------------------------------------------
2 * $Id: Prelude.h,v 1.5 1999/02/05 16:02:24 simonm Exp $
4 * (c) The GHC Team, 1998-1999
6 * Prelude identifiers that we sometimes need to refer to in the RTS.
8 * ---------------------------------------------------------------------------*/
14 extern const StgClosure PrelBase_Z91Z93_static_closure;
15 extern const StgClosure PrelBase_Z40Z41_static_closure;
16 extern const StgClosure PrelBase_True_static_closure;
17 extern const StgClosure PrelBase_False_static_closure;
18 extern const StgClosure PrelMain_mainIO_closure;
19 extern const StgClosure PrelPack_unpackCString_closure;
21 extern const StgInfoTable PrelBase_Czh_static_info;
22 extern const StgInfoTable PrelBase_Izh_static_info;
23 extern const StgInfoTable PrelBase_Fzh_static_info;
24 extern const StgInfoTable PrelBase_Dzh_static_info;
25 extern const StgInfoTable PrelAddr_Azh_static_info;
26 extern const StgInfoTable PrelAddr_Wzh_static_info;
27 extern const StgInfoTable PrelBase_Czh_con_info;
28 extern const StgInfoTable PrelBase_Izh_con_info;
29 extern const StgInfoTable PrelBase_Fzh_con_info;
30 extern const StgInfoTable PrelBase_Dzh_con_info;
31 extern const StgInfoTable PrelAddr_Azh_con_info;
32 extern const StgInfoTable PrelAddr_Wzh_con_info;
33 extern const StgInfoTable PrelAddr_I64zh_con_info;
34 extern const StgInfoTable PrelAddr_W64zh_con_info;
35 extern const StgInfoTable PrelStable_StablePtr_static_info;
36 extern const StgInfoTable PrelStable_StablePtr_con_info;
38 /* Define canonical names so we can abstract away from the actual
39 * module these names are defined in.
42 #define Nil_closure PrelBase_ZMZN_static_closure
43 #define Unit_closure PrelBase_Z0T_static_closure
44 #define True_closure PrelBase_True_static_closure
45 #define False_closure PrelBase_False_static_closure
46 #define Czh_static_info PrelBase_Czh_static_info
47 #define Izh_static_info PrelBase_Izh_static_info
48 #define Fzh_static_info PrelBase_Fzh_static_info
49 #define Dzh_static_info PrelBase_Dzh_static_info
50 #define Azh_static_info PrelAddr_Azh_static_info
51 #define Wzh_static_info PrelAddr_Wzh_static_info
52 #define Czh_con_info PrelBase_Czh_con_info
53 #define Izh_con_info PrelBase_Izh_con_info
54 #define Fzh_con_info PrelBase_Fzh_con_info
55 #define Dzh_con_info PrelBase_Dzh_con_info
56 #define Azh_con_info PrelAddr_Azh_con_info
57 #define Wzh_con_info PrelAddr_Wzh_con_info
58 #define W64zh_con_info PrelAddr_W64zh_con_info
59 #define I64zh_con_info PrelAddr_I64zh_con_info
60 #define StablePtr_static_info PrelStable_StablePtr_static_info
61 #define StablePtr_con_info PrelStable_StablePtr_con_info
63 #define mainIO_closure PrelMain_mainIO_closure
64 #define unpackCString_closure PrelPack_unpackCString_closure
66 #else /* INTERPRETER, I guess */
68 extern const StgInfoTable Czh_con_info;
69 extern const StgInfoTable Izh_con_info;
70 extern const StgInfoTable I64zh_con_info;
71 extern const StgInfoTable Fzh_con_info;
72 extern const StgInfoTable Dzh_con_info;
73 extern const StgInfoTable Azh_con_info;
74 extern const StgInfoTable Wzh_con_info;
75 extern const StgInfoTable StablePtr_con_info;
77 extern const StgInfoTable Czh_static_info;
78 extern const StgInfoTable Izh_static_info;
79 extern const StgInfoTable I64zh_static_info;
80 extern const StgInfoTable Fzh_static_info;
81 extern const StgInfoTable Dzh_static_info;
82 extern const StgInfoTable Azh_static_info;
83 extern const StgInfoTable Wzh_static_info;
84 extern const StgInfoTable StablePtr_static_info;
86 #define W64zh_con_info I64zh_con_info
87 #define W64zh_static_info I64zh_con_info
91 #endif /* PRELUDE_H */