HomePhabricator

Get rid of C99 PRI?64 usage in source files
f48742c2bf60Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Get rid of C99 PRI?64 usage in source files

Amend to d5f1e72. It turns out that BerkelyDB was including inttypes.h
indirectly, so we cannot fix this with just macros.

Trivial commit: apply the following script to all .cpp and .h files:

  1. Middle sed -i 's/"PRIx64"/x/g' "$1" sed -i 's/"PRIu64"/u/g' "$1" sed -i 's/"PRId64"/d/g' "$1"
  2. Initial sed -i 's/PRIx64"/"x/g' "$1" sed -i 's/PRIu64"/"u/g' "$1" sed -i 's/PRId64"/"d/g' "$1"
  3. Trailing sed -i 's/"PRIx64/x"/g' "$1" sed -i 's/"PRIu64/u"/g' "$1" sed -i 's/"PRId64/d"/g' "$1"

After this commit, git grep for PRI.64 should turn up nothing except
the defines in util.h.

Details

Provenance
Wladimir J. van der Laan <laanwj@gmail.com>Authored on Feb 24 2014, 08:08
deadalnixPushed on May 14 2017, 22:04
Parents
rABC4fd082ded7af: Merge pull request #3729
Branches
Unknown
Tags
Unknown

Event Timeline

Wladimir J. van der Laan <laanwj@gmail.com> committed rABCf48742c2bf60: Get rid of C99 PRI?64 usage in source files (authored by Wladimir J. van der Laan <laanwj@gmail.com>).Feb 24 2014, 08:08