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

Make C code more recognizably C #331

Merged
merged 1 commit into from
Jan 20, 2022
Merged

Commits on Jan 20, 2022

  1. Make C code more recognizably C

    As you may know, an empty parameter list can have [different semantics]
    in C compared to a `(void)` parameter list. Also, while it's fine to
    declare `main()` with an empty parameter list, it's implementation
    defined as to whether it is acceptable.
    
    Declare `main` with `(void)` so we use a standard-defined signature from
    section 5.1.2.2.1 of C99.
    
    [different semantics]: https://godbolt.org/z/fW66MsaMM
    XrXr committed Jan 20, 2022
    Configuration menu
    Copy the full SHA
    d57566a View commit details
    Browse the repository at this point in the history