Skip to content

Conversation

fanquake
Copy link
Member

We already use a mix of <cstdio> and stdio.h unconditionally throughout
the codebase.

Us checking this header also duplicates work already done by autotools.
Currently stdio.h is checked for 3 times during a ./configure run, after
this change, at least it's only twice.

We currently use both. Consolidate on the former.
We already use a mix of <cstdio> and stdio.h unconditionally throughout
the codebase.

Us checking this header also duplicates work already done by autotools.
Currently stdio.h is checked for 3 times during a ./configure run, after
this change, at least it's only twice.
Copy link
Contributor

@kristapsk kristapsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 55aad5f

@TheCharlatan
Copy link
Contributor

ACK 55aad5f

@fanquake fanquake merged commit 590d206 into bitcoin:master Sep 22, 2022
@fanquake fanquake deleted the remove_stdio_h branch September 22, 2022 13:46
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Sep 23, 2022
55aad5f build: remove stdio.h from header checks (fanquake)
b956331 refactor: use <cstdio> over stdio.h (fanquake)

Pull request description:

  We already use a mix of `<cstdio>` and `stdio.h` unconditionally throughout
  the codebase.

  Us checking this header also duplicates work already done by autotools.
  Currently `stdio.h` is checked for 3 times during a ./configure run, after
  this change, at least it's only twice.

ACKs for top commit:
  TheCharlatan:
    ACK 55aad5f
  kristapsk:
    ACK 55aad5f

Tree-SHA512: a83cc724528ab92aacfa53048b12fcccec3962637ca7fad30f6c610365edeb0e951f74e37832ad7d3f79ca9b8d7203cb10165c89d0e4b63eeda7a970dab82dfb
maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request Sep 25, 2022
553ff45 build: remove stdlib.h from header checks (fanquake)
a63d4cb refactor: use <cstdlib> over stdlib.h (fanquake)

Pull request description:

  We already use a mix of `<cstlib>` and `stdlib.h` unconditionally throughout
  the codebase.

  Us checking this header also duplicates work already done by autotools.
  Currently stdlib.h is checked for 3 times during a ./configure run, after
  this change, at least it's only twice.

  Similar to bitcoin#26150.

ACKs for top commit:
  kristapsk:
    ACK 553ff45
  TheCharlatan:
    ACK 553ff45

Tree-SHA512: 0a43d39d3df180a1614dbd3a1ee1531b0969ffe4a0c09dfe9d2f3f0ec16196b5fd7523309f6722936a8c8b20908508724e1903e939dd81c3b4538d85d0f42953
@bitcoin bitcoin locked and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants