X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fdocs%2Fcomm%2Frts-libs%2Fcoding-style.html;h=58f5b4f9bb485f448ae1e10f2884821c0e142cc2;hb=153b9cb9b11e05c4edb1b6bc0a7b972660e41f70;hp=b72365739c4fe01c81e305edd7b080d47beed85e;hpb=d31d3e069e7f0811a17942414e5eb4f28c04bf5e;p=ghc-hetmet.git diff --git a/ghc/docs/comm/rts-libs/coding-style.html b/ghc/docs/comm/rts-libs/coding-style.html index b723657..58f5b4f 100644 --- a/ghc/docs/comm/rts-libs/coding-style.html +++ b/ghc/docs/comm/rts-libs/coding-style.html @@ -108,7 +108,7 @@ POSIX-compliant to explicitly say so by having #include

  • Some architectures have memory alignment constraints. Others don't have any constraints but go faster if you align things. These -macros (from config.h) tell you which alignment to use +macros (from ghcconfig.h) tell you which alignment to use
       /* minimum alignment of unsigned int */
    @@ -160,12 +160,12 @@ co above).
     Avoid conditional code like this:
     
     
    -  #ifdef solaris_HOST_OS
    +  #ifdef solaris_host_OS
       // do something solaris specific
       #endif
     
    -Instead, add an appropriate test to the configure.in script and use +Instead, add an appropriate test to the configure.ac script and use the result of that test instead.
    @@ -398,7 +398,6 @@ up as well.  Use the doNothing macro instead.
     
       #define doNothing() do { } while (0)
     
    -

  • This code