[project @ 2000-05-08 15:57:01 by simonmar]
[ghc-hetmet.git] / ghc / rts / Printer.h
index e435895..0e3977a 100644 (file)
@@ -1,5 +1,7 @@
 /* -----------------------------------------------------------------------------
- * $Id: Printer.h,v 1.2 1998/12/02 13:28:34 simonm Exp $
+ * $Id: Printer.h,v 1.5 2000/01/14 14:56:40 simonmar Exp $
+ *
+ * (c) The GHC Team, 1998-2000
  *
  * Prototypes for functions in Printer.c
  *
@@ -7,6 +9,8 @@
 
 extern void       printPtr        ( StgPtr p );
 extern void       printObj        ( StgClosure *obj );
+
+#ifdef DEBUG
 extern void       printClosure    ( StgClosure *obj );
 extern StgStackPtr printStackObj   ( StgStackPtr sp );
 extern void        printStackChunk ( StgStackPtr sp, StgStackPtr spLim );
@@ -14,9 +18,11 @@ extern void        printStack      ( StgStackPtr sp, StgStackPtr spLim,
                                     StgUpdateFrame* su );
 extern void        printTSO        ( StgTSO *tso );
 
+void                      info_hdr_type   ( StgClosure *closure, char *res );
+char  *                   info_type       ( StgClosure *closure );
+char  *                   info_type_by_ip ( StgInfoTable *ip );
 
 extern void DEBUG_LoadSymbols( char *name );
 
 extern rtsBool lookupGHCName( StgPtr addr, const char **result );
-
-
+#endif