[commit: ghc] master: Add a comment about the units of platformWordSize (bd0649f)

Ian Lynagh igloo at earth.li
Wed Jul 25 14:58:42 CEST 2012


Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/bd0649f78f4a098172142cc0536b5b4afed27a9f

>---------------------------------------------------------------

commit bd0649f78f4a098172142cc0536b5b4afed27a9f
Author: Ian Lynagh <igloo at earth.li>
Date:   Tue Jul 24 21:13:00 2012 +0100

    Add a comment about the units of platformWordSize

>---------------------------------------------------------------

 compiler/utils/Platform.hs |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/compiler/utils/Platform.hs b/compiler/utils/Platform.hs
index 8252621..76bb386 100644
--- a/compiler/utils/Platform.hs
+++ b/compiler/utils/Platform.hs
@@ -21,6 +21,8 @@ data Platform
         = Platform {
               platformArch                     :: Arch,
               platformOS                       :: OS,
+              -- Word size in bytes (i.e. normally 4 or 8,
+              -- for 32bit and 64bit platforms respectively)
               platformWordSize                 :: {-# UNPACK #-} !Int,
               platformHasGnuNonexecStack       :: Bool,
               platformHasIdentDirective        :: Bool,





More information about the Cvs-ghc mailing list