rts: Make function pointer parameters `const` where possible
authorErik de Castro Lopo <erikd@mega-nerd.com>
Thu, 12 May 2016 13:45:00 +0000 (15:45 +0200)
committerBen Gamari <ben@smart-cactus.org>
Thu, 12 May 2016 15:33:39 +0000 (17:33 +0200)
commit995cf0f356ef3a8b7a394de640a853fd6ca9c2b5
tree54cac37b35be9896ea94e8db806a2bd5cf8ae431
parent69c974fef825cfc286c9cad17ed8f4e138bf84fc
rts: Make function pointer parameters `const` where possible

If a function takes a pointer parameter and doesn't update what
the pointer points to, we can add `const` to the parameter
declaration to document that no updates occur.

Test Plan: Validate on Linux, OS X and Windows

Reviewers: austin, Phyx, bgamari, simonmar, hsyl20

Reviewed By: bgamari, simonmar, hsyl20

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2200
includes/rts/storage/ClosureMacros.h
rts/Capability.h
rts/LdvProfile.c
rts/ProfHeap.c
rts/RetainerProfile.h
rts/sm/HeapAlloc.h
rts/sm/MBlock.c
rts/sm/Sanity.c