SMmark: multi-slurp protect SMmarkDefs.h; lift out SMmarkDefs include from the insides of an ifdef
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
-# $Id: Makefile,v 1.11 1998/08/14 10:57:58 sof Exp $
+# $Id: Makefile,v 1.12 1998/08/15 14:06:48 sof Exp $
# This is the Makefile for the runtime-system stuff.
# This stuff is written in C (and cannot be written in Haskell).
# This is the Makefile for the runtime-system stuff.
# This stuff is written in C (and cannot be written in Haskell).
# Note: _have_ to drop the -optc prefix for the GC-type opts (e.g. -optc-DGCap), since
# -o<foo> is interpreted by mkdependC as meaning use <foo> as suffix.
#
# Note: _have_ to drop the -optc prefix for the GC-type opts (e.g. -optc-DGCap), since
# -o<foo> is interpreted by mkdependC as meaning use <foo> as suffix.
#
-# Include -D for all the different collectors to be sure we get at all deps.
+# Hack: Include -D for all the different collectors to be sure we gather all the deps.
#
SRC_MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR) -DGCap -DGC1s -DGC2s
#
SRC_MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR) -DGCap -DGC1s -DGC2s
This code is only used if @_INFO_MARKING@ is defined.
\begin{code}
This code is only used if @_INFO_MARKING@ is defined.
\begin{code}
+#include "SMmarkDefs.h"
+
#if defined(_INFO_MARKING)
\end{code}
#if defined(_INFO_MARKING)
\end{code}
\begin{code}
/* #define MARK_REG_MAP -- Must be done on command line for threaded code */
#include "SMinternal.h"
\begin{code}
/* #define MARK_REG_MAP -- Must be done on command line for threaded code */
#include "SMinternal.h"
#if defined(GRAN)
extern P_ ret_MRoot, ret_Mark;
#if defined(GRAN)
extern P_ ret_MRoot, ret_Mark;
Describe how to set the mark bit for a closure.
\begin{code}
Describe how to set the mark bit for a closure.
\begin{code}
+#ifndef SMMARKDEFS_H
+#define SMMARKDEFS_H
+
#if defined(GCgn)
#define SET_MARK_BIT(closure) \
#if defined(GCgn)
#define SET_MARK_BIT(closure) \
+#endif /* SMMARKDEFS_H */