summaryrefslogtreecommitdiff
path: root/rts/Printer.h
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2009-08-03 20:32:52 +0000
committerSimon Marlow <marlowsd@gmail.com>2009-08-03 20:32:52 +0000
commit9a0030858ea9f26bb8fddc920f217f431f5bdebb (patch)
tree6862c27a0ebbe4c60b0b4662f64d56e5af914ce3 /rts/Printer.h
parent3ce4cf858bbcae18ffc6989ca19522cb8887aab9 (diff)
downloadhaskell-9a0030858ea9f26bb8fddc920f217f431f5bdebb.tar.gz
Common up two closure type -> string tables
Also, use C99-style array initialisers
Diffstat (limited to 'rts/Printer.h')
-rw-r--r--rts/Printer.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/rts/Printer.h b/rts/Printer.h
index 52c1c3eb21..f627049e8a 100644
--- a/rts/Printer.h
+++ b/rts/Printer.h
@@ -12,6 +12,12 @@
extern void printPtr ( StgPtr p );
extern void printObj ( StgClosure *obj );
+extern char * closure_type_names[];
+
+void info_hdr_type ( StgClosure *closure, char *res );
+char * info_type ( StgClosure *closure );
+char * info_type_by_ip ( StgInfoTable *ip );
+
#ifdef DEBUG
extern void prettyPrintClosure (StgClosure *obj);
extern void printClosure ( StgClosure *obj );
@@ -19,10 +25,6 @@ extern StgPtr printStackObj ( StgPtr sp );
extern void printStackChunk ( StgPtr sp, StgPtr spLim );
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 const char *lookupGHCName( void *addr );