projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4211484
)
[project @ 2000-10-11 14:07:52 by simonmar]
author
simonmar
<unknown>
Wed, 11 Oct 2000 14:07:52 +0000
(14:07 +0000)
committer
simonmar
<unknown>
Wed, 11 Oct 2000 14:07:52 +0000
(14:07 +0000)
add macro GLOBAL_VAR()
ghc/compiler/HsVersions.h
patch
|
blob
|
history
diff --git
a/ghc/compiler/HsVersions.h
b/ghc/compiler/HsVersions.h
index
eae9cc9
..
d1bad70
100644
(file)
--- a/
ghc/compiler/HsVersions.h
+++ b/
ghc/compiler/HsVersions.h
@@
-10,6
+10,12
@@
you will screw up the layout where they are used in case expressions!
#endif
+#ifdef __GLASGOW_HASKELL__
+#define GLOBAL_VAR(name,value,ty) \
+name = global (value) :: IORef (ty); \
+{-# NOINLINE name #-}
+#endif
+
#define COMMA ,
#ifdef DEBUG