Skip to content

Switch to stdbool.h#355

Merged
mstroh76 merged 1 commit intoWiringPi:developfrom
Next-Door-Tech:stdbool
Jun 11, 2025
Merged

Switch to stdbool.h#355
mstroh76 merged 1 commit intoWiringPi:developfrom
Next-Door-Tech:stdbool

Conversation

@Next-Door-Tech
Copy link
Contributor

Switch to using stdbool.h and true/false keyword macros instead of WiringPi-specific TRUE and FALSE #defines

  • Done mainly to improve forward-compatibility. As of C23, true and false are core keywords and stdbool.h does nothing.
  • #define TRUE true and #define FALSE false are left in wiringPi.h for compatibility with existing outside code implementing WiringPi.

@Next-Door-Tech Next-Door-Tech force-pushed the stdbool branch 3 times, most recently from 3330c0e to 8f5614a Compare June 1, 2025 22:20
@mwallner mwallner requested a review from mstroh76 June 5, 2025 11:32
 - Add `#include <stdbool.h> to all files previously using the
   `TRUE`/`FALSE` macros
 - Replace all instances of `TRUE`/`FALSE` with `true`/`false`,
   respectively
 - Definitions of `TRUE`/`FALSE` macros retained in wiringPi.h for compatibility.
@mwallner mwallner self-requested a review June 7, 2025 20:21
@mstroh76 mstroh76 merged commit 82aa892 into WiringPi:develop Jun 11, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants