cvs commit: hugs98/src printer.c

Sigbjorn Finne sof@glass.cse.ogi.edu
Sat, 9 Jun 2001 08:55:13 -0700


sof         2001/06/09 08:55:13 PDT

  Modified files:
    src                  printer.c 
  Log:
  Fall into line with how GHC shows Addrs, i.e.,
    0x<hex value using lowercase chars, left zero-padded
       to be WIDTH digits long>
  
  where WIDTH = 2 * CPU's word width in bytes
  
  i.e., using printf()'s %p format specifier leaves you open
  to platform-specific behaviour (e.g., nullAddr comes out as
  "(nil)" with glibc; the MSVC CRT uses upper-case hex digits).
  
  Revision  Changes    Path
  1.6       +9 -2      hugs98/src/printer.c