Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib: change controlling expressions in if/while to Boolean #73929

Commits on Jun 7, 2024

  1. lib: change controlling expressions in if/while to Boolean

    Use `do { ... } while (false)' instead of `do { ... } while (0)'.
    Use comparisons with zero instead of implicitly testing integers.
    Use comparisons with NULL instead of implicitly testing pointers.
    Use comparisons with NUL instead of implicitly testing plain chars.
    Use `bool' instead of `int' to represent Boolean values.
    Use `while (true)' instead of `while (1)' to express infinite loops.
    
    Signed-off-by: frei tycho <[email protected]>
    tychofrei02 committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    dcd8c10 View commit details
    Browse the repository at this point in the history