diff options
author | G. Branden Robinson <g.branden.robinson@gmail.com> | 2023-03-06 12:50:15 -0600 |
---|---|---|
committer | G. Branden Robinson <g.branden.robinson@gmail.com> | 2023-03-06 15:19:55 -0600 |
commit | 5848bf3a3ee43a8be529d5d8bcef7a80c1ef3934 (patch) | |
tree | 5f7c5b1c8ae31f8d4b53bd8ef79cbe285d19b162 /ChangeLog | |
parent | 405fe32847a598962dc3ad8469b9ed0bac4c50ba (diff) | |
download | groff-git-5848bf3a3ee43a8be529d5d8bcef7a80c1ef3934.tar.gz |
Use a better type for symbol hashes.
* bootstrap.conf: Add "stdint" module to ensure that the `uintptr_t`
type is available.
* src/include/symbol.h: Include <stdint.h> for `uintptr_t`.
(class symbol):
(symbol::hash): Change return type from `unsigned long`, which causes
build failures on 64-bit MinGW, to `uintptr_t`.
(symbol::hash): Use a C++ type cast, not a C-style one.
Thanks to Bruno Haible for reporting the build failure in the 64-bit
MinGW environment, and for suggesting a remedy.
Also update editor aid comments; drop old style Emacs file-local
variable setting.
Any day you get to use the foot-Howitzer reinterpret_cast is a good one.
Commits since 0221b657fe tested on:
Debian bullseye
Debian sid 2023-03-06 chroot
macOS 12
OpenBSD 7.2
Solaris 10
Solaris 11
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -1,5 +1,20 @@ 2023-03-06 G. Branden Robinson <g.branden.robinson@gmail.com> + Use a better type for symbol hashes. + + * bootstrap.conf: Add "stdint" module to ensure that the + `uintptr_t` type is available. + * src/include/symbol.h: Include <stdint.h> for `uintptr_t`. + (class symbol): + (symbol::hash): Change return type from `unsigned long`, which + causes build failures on 64-bit MinGW, to `uintptr_t`. + (symbol::hash): Use a C++ type cast, not a C-style one. + + Thanks to Bruno Haible for reporting the build failure in the + 64-bit MinGW environment, and for suggesting a remedy. + +2023-03-06 G. Branden Robinson <g.branden.robinson@gmail.com> + [groff]: Revise a test to be more revealing. * src/roff/groff/tests/initialization_is_quiet.sh: Stop using |