Fix up some problems with the IN_STG_CODE macro.
/* -----------------------------------------------------------------------------
- * $Id: Regs.h,v 1.6 1999/11/09 15:47:08 simonmar Exp $
+ * $Id: Regs.h,v 1.7 1999/11/09 15:57:39 simonmar Exp $
*
* (c) The GHC Team, 1998-1999
*
extern DLL_IMPORT_RTS StgRegTable MainRegTable;
#endif
-#ifdef IN_STG_CODE
+#if IN_STG_CODE
/*
* Registers Hp and HpLim are global across the entire system, and are
Handy bunches of saves/restores
------------------------------------------------------------------------ */
-#ifdef IN_STG_CODE
+#if IN_STG_CODE
#define CALLER_SAVE_USER \
CALLER_SAVE_R1 \
/* -----------------------------------------------------------------------------
- * $Id: Stg.h,v 1.20 1999/11/09 15:47:08 simonmar Exp $
+ * $Id: Stg.h,v 1.21 1999/11/09 15:57:40 simonmar Exp $
*
* (c) The GHC Team, 1998-1999
*
* with that. If "Stg.h" is included via "Rts.h", we're assumed to
* be in vanilla C.
*/
-#if ! IN_STG_CODE
+#ifndef IN_STG_CODE
+# define IN_STG_CODE 1
+#endif
+
+#if IN_STG_CODE == 0
# ifndef NO_REGS
# define NO_REGS /* don't define fixed registers */
# endif
-#else
-# define IN_STG_CODE 1
#endif
/* Configuration */
/* -----------------------------------------------------------------------------
- * $Id: StgMacros.h,v 1.17 1999/11/09 15:47:09 simonmar Exp $
+ * $Id: StgMacros.h,v 1.18 1999/11/09 15:57:40 simonmar Exp $
*
* (c) The GHC Team, 1998-1999
*
we have one).
-------------------------------------------------------------------------- */
-#ifdef IN_STG_CODE
+#if IN_STG_CODE
static __inline__ void
SaveThreadState(void)
/* -----------------------------------------------------------------------------
- * $Id: HeapStackCheck.h,v 1.4 1999/08/25 16:11:48 simonmar Exp $
+ * $Id: HeapStackCheck.h,v 1.5 1999/11/09 15:57:42 simonmar Exp $
*
* (c) The GHC Team, 1998-1999
*
* ---------------------------------------------------------------------------*/
EXTFUN(stg_gc_entertop);
+EXTFUN(stg_gc_enter_1_hponly);
EXTFUN(stg_gc_enter_1);
EXTFUN(stg_gc_enter_2);
EXTFUN(stg_gc_enter_3);