diff options
Diffstat (limited to 'rts/Printer.h')
-rw-r--r-- | rts/Printer.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/rts/Printer.h b/rts/Printer.h index 31185aaf34..bd2db35aeb 100644 --- a/rts/Printer.h +++ b/rts/Printer.h @@ -14,16 +14,16 @@ extern void printPtr ( StgPtr p ); extern void printObj ( StgClosure *obj ); -extern char * closure_type_names[]; +extern const char * closure_type_names[]; -void info_hdr_type ( StgClosure *closure, char *res ); -char * info_type ( StgClosure *closure ); -char * info_type_by_ip ( StgInfoTable *ip ); -char * info_update_frame ( StgClosure *closure ); +void info_hdr_type ( const StgClosure *closure, char *res ); +const char * info_type ( const StgClosure *closure ); +const char * info_type_by_ip ( const StgInfoTable *ip ); +const char * info_update_frame ( const StgClosure *closure ); #ifdef DEBUG -extern void prettyPrintClosure (StgClosure *obj); -extern void printClosure ( StgClosure *obj ); +extern void prettyPrintClosure (const StgClosure *obj); +extern void printClosure ( const StgClosure *obj ); extern void printStackChunk ( StgPtr sp, StgPtr spLim ); extern void printTSO ( StgTSO *tso ); @@ -31,7 +31,7 @@ extern void DEBUG_LoadSymbols( char *name ); extern const char *lookupGHCName( void *addr ); -extern char *what_next_strs[]; +extern const char *what_next_strs[]; #endif #include "EndPrivate.h" |