• Simon Marlow's avatar
    Deprecate lnat, and use StgWord instead · 41737f12
    Simon Marlow authored
    lnat was originally "long unsigned int" but we were using it when we
    wanted a 64-bit type on a 64-bit machine.  This broke on Windows x64,
    where long == int == 32 bits.  Using types of unspecified size is bad,
    but what we really wanted was a type with N bits on an N-bit machine.
    StgWord is exactly that.
    lnat was mentioned in some APIs that clients might be using
    (e.g. StackOverflowHook()), so we leave it defined but with a comment
    to say that it's deprecated.
Linker.c 235 KB