Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tobias Decking
GHC
Commits
c346a002
Commit
c346a002
authored
Oct 27, 1999
by
simonmar
Browse files
[project @ 1999-10-27 09:57:48 by simonmar]
small cleanup; reduce amount of conditionally-compiled stuff
parent
a279d5ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/includes/ClosureMacros.h
View file @
c346a002
/* ----------------------------------------------------------------------------
* $Id: ClosureMacros.h,v 1.
19
1999/
08/03 15:44:21
simonmar Exp $
* $Id: ClosureMacros.h,v 1.
20
1999/
10/27 09:57:48
simonmar Exp $
*
* (c) The GHC Team, 1998-1999
*
...
...
@@ -59,10 +59,11 @@
#define INIT_INFO(i) info : &(i)
#define SET_INFO(c,i) ((c)->header.info = (i))
#define GET_INFO(c) ((c)->header.info)
#define GET_ENTRY(c) (ENTRY_CODE(GET_INFO(c)))
#define get_itbl(c) (INFO_PTR_TO_STRUCT((c)->header.info))
#ifdef TABLES_NEXT_TO_CODE
#define INIT_ENTRY(e) code : {}
#define GET_ENTRY(c) ((StgFunPtr)((c)->header.info))
#define ENTRY_CODE(info) (info)
#define INFO_PTR_TO_STRUCT(info) ((StgInfoTable *)(info) - 1)
static
__inline__
StgFunPtr
get_entry
(
const
StgInfoTable
*
itbl
)
{
...
...
@@ -70,7 +71,6 @@ static __inline__ StgFunPtr get_entry(const StgInfoTable *itbl) {
}
#else
#define INIT_ENTRY(e) entry : (F_)(e)
#define GET_ENTRY(c) ((c)->header.info->entry)
#define ENTRY_CODE(info) (((StgInfoTable *)info)->entry)
#define INFO_PTR_TO_STRUCT(info) ((StgInfoTable *)info)
static
__inline__
StgFunPtr
get_entry
(
const
StgInfoTable
*
itbl
)
{
...
...
@@ -78,8 +78,6 @@ static __inline__ StgFunPtr get_entry(const StgInfoTable *itbl) {
}
#endif
#define get_itbl(c) (INFO_PTR_TO_STRUCT((c)->header.info))
/* -----------------------------------------------------------------------------
Macros for distinguishing data pointers from code pointers
-------------------------------------------------------------------------- */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment