[tor-bugs] #26142 [Core Tor/Tor]: replace uses of U64_* and I64_* macros with their C99 stdint.h or inttypes.h equivalents

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon May 21 03:32:15 UTC 2018


#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


More information about the tor-bugs mailing list