Deprecate lnat, and use StgWord instead
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.
Showing
- ghc/hschooks.c 1 addition, 1 deletionghc/hschooks.c
- includes/mkDerivedConstants.c 1 addition, 1 deletionincludes/mkDerivedConstants.c
- includes/rts/Hooks.h 3 additions, 3 deletionsincludes/rts/Hooks.h
- includes/rts/SpinLock.h 1 addition, 1 deletionincludes/rts/SpinLock.h
- includes/rts/Types.h 4 additions, 2 deletionsincludes/rts/Types.h
- includes/rts/storage/ClosureMacros.h 4 additions, 4 deletionsincludes/rts/storage/ClosureMacros.h
- includes/rts/storage/GC.h 2 additions, 2 deletionsincludes/rts/storage/GC.h
- includes/rts/storage/MBlock.h 3 additions, 3 deletionsincludes/rts/storage/MBlock.h
- rts/Arena.c 1 addition, 1 deletionrts/Arena.c
- rts/Capability.h 1 addition, 1 deletionrts/Capability.h
- rts/Disassembler.c 1 addition, 1 deletionrts/Disassembler.c
- rts/FrontPanel.c 1 addition, 1 deletionrts/FrontPanel.c
- rts/FrontPanel.h 1 addition, 1 deletionrts/FrontPanel.h
- rts/Linker.c 4 additions, 4 deletionsrts/Linker.c
- rts/Messages.c 5 additions, 5 deletionsrts/Messages.c
- rts/Printer.c 7 additions, 7 deletionsrts/Printer.c
- rts/ProfHeap.c 1 addition, 1 deletionrts/ProfHeap.c
- rts/Profiling.c 1 addition, 1 deletionrts/Profiling.c
- rts/RetainerProfile.c 2 additions, 2 deletionsrts/RetainerProfile.c
- rts/RetainerProfile.h 1 addition, 1 deletionrts/RetainerProfile.h
Loading
Please register or sign in to comment