]> Git Repo - VerusCoin.git/commit - src/wallet/wallet.cpp
Get rid of C99 PRI?64 usage in source files
authorWladimir J. van der Laan <[email protected]>
Mon, 24 Feb 2014 08:08:56 +0000 (09:08 +0100)
committerWladimir J. van der Laan <[email protected]>
Mon, 24 Feb 2014 08:08:56 +0000 (09:08 +0100)
commitf48742c2bf6002f7c1afaf1d1723659b85d4a3ac
tree70025f3ea0d6ad42058dbcf034180d0c961d305b
parent4fd082ded7af28929e909843eba5c801fe755257
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:

    # Middle
    sed -i 's/"PRIx64"/x/g' "$1"
    sed -i 's/"PRIu64"/u/g' "$1"
    sed -i 's/"PRId64"/d/g' "$1"
    # Initial
    sed -i 's/PRIx64"/"x/g' "$1"
    sed -i 's/PRIu64"/"u/g' "$1"
    sed -i 's/PRId64"/"d/g' "$1"
    # 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.
14 files changed:
src/alert.cpp
src/core.cpp
src/db.cpp
src/init.cpp
src/main.cpp
src/miner.cpp
src/net.cpp
src/net.h
src/rpcnet.cpp
src/test/util_tests.cpp
src/util.cpp
src/util.h
src/wallet.cpp
src/walletdb.cpp
This page took 0.02879 seconds and 4 git commands to generate.