Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 134 lines (121 sloc) 7.49 kB
0d5d32b [project @ 2000-03-13 10:53:55 by simonmar]
simonmar authored
1 /* -----------------------------------------------------------------------------
2 *
03a9ff0 [project @ 2005-10-21 14:02:17 by simonmar]
simonmar authored
3 * (c) The GHC Team, 1998-2005
0d5d32b [project @ 2000-03-13 10:53:55 by simonmar]
simonmar authored
4 *
5 * Prelude identifiers that we sometimes need to refer to in the RTS.
6 *
7 * ---------------------------------------------------------------------------*/
8
9 #ifndef PRELUDE_H
10 #define PRELUDE_H
11
423d477 [project @ 2004-08-13 13:04:50 by simonmar]
simonmar authored
12 /* These definitions are required by the RTS .cmm files too, so we
13 * need declarations that we can #include into the generated .hc files.
14 */
15 #if IN_STG_CODE
16 #define PRELUDE_INFO(i) extern W_(i)[]
17 #define PRELUDE_CLOSURE(i) extern W_(i)[]
18 #else
006a18e @clefru Build RTS as dynamic library
clefru authored
19 #define PRELUDE_INFO(i) extern const StgInfoTable DLL_IMPORT_DATA_VARNAME(i)
20 #define PRELUDE_CLOSURE(i) extern StgClosure DLL_IMPORT_DATA_VARNAME(i)
423d477 [project @ 2004-08-13 13:04:50 by simonmar]
simonmar authored
21 #endif
22
3ddfe34 [project @ 2000-03-14 09:55:05 by simonmar]
simonmar authored
23 /* Define canonical names so we can abstract away from the actual
efa8812 [project @ 2001-01-11 17:25:56 by simonmar]
simonmar authored
24 * modules these names are defined in.
3ddfe34 [project @ 2000-03-14 09:55:05 by simonmar]
simonmar authored
25 */
0d5d32b [project @ 2000-03-13 10:53:55 by simonmar]
simonmar authored
26
fcf6b22 @igfoo Follow library changes
igfoo authored
27 PRELUDE_CLOSURE(ghczmprim_GHCziBool_True_closure);
28 PRELUDE_CLOSURE(ghczmprim_GHCziBool_False_closure);
e7d4b77 change wired-in Haskell symbols to include the package name
Simon Marlow authored
29 PRELUDE_CLOSURE(base_GHCziPack_unpackCString_closure);
30 PRELUDE_CLOSURE(base_GHCziWeak_runFinalizzerBatch_closure);
423d477 [project @ 2004-08-13 13:04:50 by simonmar]
simonmar authored
31
32 #ifdef IN_STG_CODE
33 extern W_ ZCMain_main_closure[];
34 #else
aa698b4 [project @ 2003-07-10 08:02:29 by simonpj]
simonpj authored
35 extern StgClosure ZCMain_main_closure;
423d477 [project @ 2004-08-13 13:04:50 by simonmar]
simonmar authored
36 #endif
3ddfdc1 [project @ 2000-03-16 17:27:12 by simonmar]
simonmar authored
37
1c83695 @simonmar Changes for the new IO library, mainly base-package modules moving ar…
simonmar authored
38 PRELUDE_CLOSURE(base_GHCziIOziException_stackOverflow_closure);
39 PRELUDE_CLOSURE(base_GHCziIOziException_heapOverflow_closure);
a916885 @simonmar Handle renames from #3310
simonmar authored
40 PRELUDE_CLOSURE(base_GHCziIOziException_blockedIndefinitelyOnMVar_closure);
41 PRELUDE_CLOSURE(base_GHCziIOziException_blockedIndefinitelyOnSTM_closure);
2378b23 @RossPaterson get exception names from Control.Exception.Base instead of Control.Ex…
RossPaterson authored
42 PRELUDE_CLOSURE(base_ControlziExceptionziBase_nonTermination_closure);
43 PRELUDE_CLOSURE(base_ControlziExceptionziBase_nestedAtomically_closure);
0d5d32b [project @ 2000-03-13 10:53:55 by simonmar]
simonmar authored
44
2b16fa4 @simonmar Run sparks in batches, instead of creating a new thread for each one
simonmar authored
45 PRELUDE_CLOSURE(base_GHCziConc_runSparks_closure);
e7d4b77 change wired-in Haskell symbols to include the package name
Simon Marlow authored
46 PRELUDE_CLOSURE(base_GHCziConc_ensureIOManagerIsRunning_closure);
7ed3f75 @simonmar Rewrite of signal-handling (ghc patch; see also base and unix patches)
simonmar authored
47 PRELUDE_CLOSURE(base_GHCziConc_runHandlers_closure);
7a1f8fb Better control of the IO manager thread; improvements to deadlock che…
Simon Marlow authored
48
897301c @igfoo C# has moved to ghc-prim:GHC.Types
igfoo authored
49 PRELUDE_INFO(ghczmprim_GHCziTypes_Czh_static_info);
e5345fe @igfoo Move Int, Float and Double into ghc-prim:GHC.Types
igfoo authored
50 PRELUDE_INFO(ghczmprim_GHCziTypes_Izh_static_info);
51 PRELUDE_INFO(ghczmprim_GHCziTypes_Fzh_static_info);
52 PRELUDE_INFO(ghczmprim_GHCziTypes_Dzh_static_info);
e7d4b77 change wired-in Haskell symbols to include the package name
Simon Marlow authored
53 PRELUDE_INFO(base_Addr_Azh_static_info);
54 PRELUDE_INFO(base_GHCziPtr_Ptr_static_info);
55 PRELUDE_INFO(base_GHCziPtr_FunPtr_static_info);
56 PRELUDE_INFO(base_GHCziInt_I8zh_static_info);
57 PRELUDE_INFO(base_GHCziInt_I16zh_static_info);
58 PRELUDE_INFO(base_GHCziInt_I32zh_static_info);
59 PRELUDE_INFO(base_GHCziInt_I64zh_static_info);
60 PRELUDE_INFO(base_GHCziWord_Wzh_static_info);
61 PRELUDE_INFO(base_GHCziWord_W8zh_static_info);
62 PRELUDE_INFO(base_GHCziWord_W16zh_static_info);
63 PRELUDE_INFO(base_GHCziWord_W32zh_static_info);
64 PRELUDE_INFO(base_GHCziWord_W64zh_static_info);
897301c @igfoo C# has moved to ghc-prim:GHC.Types
igfoo authored
65 PRELUDE_INFO(ghczmprim_GHCziTypes_Czh_con_info);
e5345fe @igfoo Move Int, Float and Double into ghc-prim:GHC.Types
igfoo authored
66 PRELUDE_INFO(ghczmprim_GHCziTypes_Izh_con_info);
67 PRELUDE_INFO(ghczmprim_GHCziTypes_Fzh_con_info);
68 PRELUDE_INFO(ghczmprim_GHCziTypes_Dzh_con_info);
e7d4b77 change wired-in Haskell symbols to include the package name
Simon Marlow authored
69 PRELUDE_INFO(base_GHCziPtr_Ptr_con_info);
70 PRELUDE_INFO(base_GHCziPtr_FunPtr_con_info);
71 PRELUDE_INFO(base_Addr_Azh_con_info);
72 PRELUDE_INFO(base_GHCziWord_Wzh_con_info);
73 PRELUDE_INFO(base_GHCziInt_I8zh_con_info);
74 PRELUDE_INFO(base_GHCziInt_I16zh_con_info);
75 PRELUDE_INFO(base_GHCziInt_I32zh_con_info);
76 PRELUDE_INFO(base_GHCziInt_I64zh_con_info);
77 PRELUDE_INFO(base_GHCziWord_W8zh_con_info);
78 PRELUDE_INFO(base_GHCziWord_W16zh_con_info);
79 PRELUDE_INFO(base_GHCziWord_W32zh_con_info);
80 PRELUDE_INFO(base_GHCziWord_W64zh_con_info);
81 PRELUDE_INFO(base_GHCziStable_StablePtr_static_info);
82 PRELUDE_INFO(base_GHCziStable_StablePtr_con_info);
0d5d32b [project @ 2000-03-13 10:53:55 by simonmar]
simonmar authored
83
fcf6b22 @igfoo Follow library changes
igfoo authored
84 #define True_closure DLL_IMPORT_DATA_REF(ghczmprim_GHCziBool_True_closure)
85 #define False_closure DLL_IMPORT_DATA_REF(ghczmprim_GHCziBool_False_closure)
006a18e @clefru Build RTS as dynamic library
clefru authored
86 #define unpackCString_closure DLL_IMPORT_DATA_REF(base_GHCziPack_unpackCString_closure)
87 #define runFinalizerBatch_closure DLL_IMPORT_DATA_REF(base_GHCziWeak_runFinalizzerBatch_closure)
aa698b4 [project @ 2003-07-10 08:02:29 by simonpj]
simonpj authored
88 #define mainIO_closure (&ZCMain_main_closure)
d305801 [project @ 2000-05-22 13:09:29 by simonmar]
simonmar authored
89
1c83695 @simonmar Changes for the new IO library, mainly base-package modules moving ar…
simonmar authored
90 #define stackOverflow_closure DLL_IMPORT_DATA_REF(base_GHCziIOziException_stackOverflow_closure)
91 #define heapOverflow_closure DLL_IMPORT_DATA_REF(base_GHCziIOziException_heapOverflow_closure)
a916885 @simonmar Handle renames from #3310
simonmar authored
92 #define blockedIndefinitelyOnMVar_closure DLL_IMPORT_DATA_REF(base_GHCziIOziException_blockedIndefinitelyOnMVar_closure)
93 #define blockedIndefinitelyOnSTM_closure DLL_IMPORT_DATA_REF(base_GHCziIOziException_blockedIndefinitelyOnSTM_closure)
2378b23 @RossPaterson get exception names from Control.Exception.Base instead of Control.Ex…
RossPaterson authored
94 #define nonTermination_closure DLL_IMPORT_DATA_REF(base_ControlziExceptionziBase_nonTermination_closure)
cbc5fb0 @igfoo Fix references to exceptions from the RTS
igfoo authored
95 #define nestedAtomically_closure DLL_IMPORT_DATA_REF(base_ControlziExceptionziBase_nestedAtomically_closure)
d305801 [project @ 2000-05-22 13:09:29 by simonmar]
simonmar authored
96
897301c @igfoo C# has moved to ghc-prim:GHC.Types
igfoo authored
97 #define Czh_static_info DLL_IMPORT_DATA_REF(ghczmprim_GHCziTypes_Czh_static_info)
e5345fe @igfoo Move Int, Float and Double into ghc-prim:GHC.Types
igfoo authored
98 #define Fzh_static_info DLL_IMPORT_DATA_REF(ghczmprim_GHCziTypes_Fzh_static_info)
99 #define Dzh_static_info DLL_IMPORT_DATA_REF(ghczmprim_GHCziTypes_Dzh_static_info)
006a18e @clefru Build RTS as dynamic library
clefru authored
100 #define Azh_static_info DLL_IMPORT_DATA_REF(base_Addr_Azh_static_info)
e5345fe @igfoo Move Int, Float and Double into ghc-prim:GHC.Types
igfoo authored
101 #define Izh_static_info DLL_IMPORT_DATA_REF(ghczmprim_GHCziTypes_Izh_static_info)
006a18e @clefru Build RTS as dynamic library
clefru authored
102 #define I8zh_static_info DLL_IMPORT_DATA_REF(base_GHCziInt_I8zh_static_info)
103 #define I16zh_static_info DLL_IMPORT_DATA_REF(base_GHCziInt_I16zh_static_info)
104 #define I32zh_static_info DLL_IMPORT_DATA_REF(base_GHCziInt_I32zh_static_info)
105 #define I64zh_static_info DLL_IMPORT_DATA_REF(base_GHCziInt_I64zh_static_info)
106 #define Wzh_static_info DLL_IMPORT_DATA_REF(base_GHCziWord_Wzh_static_info)
107 #define W8zh_static_info DLL_IMPORT_DATA_REF(base_GHCziWord_W8zh_static_info)
108 #define W16zh_static_info DLL_IMPORT_DATA_REF(base_GHCziWord_W16zh_static_info)
109 #define W32zh_static_info DLL_IMPORT_DATA_REF(base_GHCziWord_W32zh_static_info)
110 #define W64zh_static_info DLL_IMPORT_DATA_REF(base_GHCziWord_W64zh_static_info)
111 #define Ptr_static_info DLL_IMPORT_DATA_REF(base_GHCziPtr_Ptr_static_info)
112 #define FunPtr_static_info DLL_IMPORT_DATA_REF(base_GHCziPtr_FunPtr_static_info)
897301c @igfoo C# has moved to ghc-prim:GHC.Types
igfoo authored
113 #define Czh_con_info DLL_IMPORT_DATA_REF(ghczmprim_GHCziTypes_Czh_con_info)
e5345fe @igfoo Move Int, Float and Double into ghc-prim:GHC.Types
igfoo authored
114 #define Izh_con_info DLL_IMPORT_DATA_REF(ghczmprim_GHCziTypes_Izh_con_info)
115 #define Fzh_con_info DLL_IMPORT_DATA_REF(ghczmprim_GHCziTypes_Fzh_con_info)
116 #define Dzh_con_info DLL_IMPORT_DATA_REF(ghczmprim_GHCziTypes_Dzh_con_info)
006a18e @clefru Build RTS as dynamic library
clefru authored
117 #define Azh_con_info DLL_IMPORT_DATA_REF(base_Addr_Azh_con_info)
118 #define Wzh_con_info DLL_IMPORT_DATA_REF(base_GHCziWord_Wzh_con_info)
119 #define W8zh_con_info DLL_IMPORT_DATA_REF(base_GHCziWord_W8zh_con_info)
120 #define W16zh_con_info DLL_IMPORT_DATA_REF(base_GHCziWord_W16zh_con_info)
121 #define W32zh_con_info DLL_IMPORT_DATA_REF(base_GHCziWord_W32zh_con_info)
122 #define W64zh_con_info DLL_IMPORT_DATA_REF(base_GHCziWord_W64zh_con_info)
123 #define I8zh_con_info DLL_IMPORT_DATA_REF(base_GHCziInt_I8zh_con_info)
124 #define I16zh_con_info DLL_IMPORT_DATA_REF(base_GHCziInt_I16zh_con_info)
125 #define I32zh_con_info DLL_IMPORT_DATA_REF(base_GHCziInt_I32zh_con_info)
126 #define I64zh_con_info DLL_IMPORT_DATA_REF(base_GHCziInt_I64zh_con_info)
127 #define I64zh_con_info DLL_IMPORT_DATA_REF(base_GHCziInt_I64zh_con_info)
128 #define Ptr_con_info DLL_IMPORT_DATA_REF(base_GHCziPtr_Ptr_con_info)
129 #define FunPtr_con_info DLL_IMPORT_DATA_REF(base_GHCziPtr_FunPtr_con_info)
130 #define StablePtr_static_info DLL_IMPORT_DATA_REF(base_GHCziStable_StablePtr_static_info)
131 #define StablePtr_con_info DLL_IMPORT_DATA_REF(base_GHCziStable_StablePtr_con_info)
0d5d32b [project @ 2000-03-13 10:53:55 by simonmar]
simonmar authored
132
133 #endif /* PRELUDE_H */
Something went wrong with that request. Please try again.