HomePhabricator

scripted-diff: replace non-standard fixed width integer types (u_int... -> uint.

Description

scripted-diff: replace non-standard fixed width integer types (u_int... -> uint...)

Summary:

-BEGIN VERIFY SCRIPT-
sed -i 's/u_int/uint/g' $(git grep -l u_int)
-END VERIFY SCRIPT-

Fixed width integer types prefixed with u_int are not part of C++ (see https://en.cppreference.com/w/cpp/types/integer), so it's better to avoid and replace them with their standard-conforming counterparts. (For those interested in history, according to one theory those u_int... types have been introduced by BSD: https://stackoverflow.com/a/5163960, http://lists.freedesktop.org/archives/release-wranglers/2004-August/000923.html).

This is a backport of core#25115

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D13243

Details

Provenance
PiRKAuthored on Mar 6 2023, 09:42
PiRKPushed on Mar 6 2023, 14:04
Reviewer
Restricted Project
Differential Revision
D13243: scripted-diff: replace non-standard fixed width integer types (u_int... -> uint...)
Parents
rABC70912f9a54fd: Sanity assert GetAncestor() != nullptr where appropriate
Branches
Unknown
Tags
Unknown