[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #26142 [Core Tor/Tor]: replace uses of U64_* and I64_* macros with their C99 stdint.h or inttypes.h equivalents
#26142: replace uses of U64_* and I64_* macros with their C99 stdint.h or
inttypes.h equivalents
------------------------------+-------------------------------------
Reporter: catalyst | Owner: (none)
Type: defect | Status: new
Priority: Medium | Milestone: Tor: 0.3.5.x-final
Component: Core Tor/Tor | Version:
Severity: Normal | Keywords: technical-debt, cleanup
Actual Points: | Parent ID:
Points: | Reviewer:
Sponsor: |
------------------------------+-------------------------------------
There are many macros in compat.h that try to portably handle 64-bit
integer values in `printf()` and `scanf()` calls. Now that we seem to
require C99, we should use the equivalent macros from stdint.h or
inttypes.h instead. For example, `U64_FORMAT` is equivalent to `PRIu64`
in inttypes.h.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/26142>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs