Skip to content

Convert private C++ headers to .hpp file extension#220

Merged
ChrisThrasher merged 1 commit intomasterfrom
hpp_headers
Aug 25, 2024
Merged

Convert private C++ headers to .hpp file extension#220
ChrisThrasher merged 1 commit intomasterfrom
hpp_headers

Conversation

@ChrisThrasher
Copy link
Member

Closes #208

These are C++ source code files. To be consistent with SFML they should use an .hpp extension. This also has the benefit of making it easier to readers to understand whether a given file contains C or C++ code.

@eXpl0it3r
Copy link
Member

This makes it really tricky to differentiate between CSFML headers and SFML headers next to each other.

Like this:
image

@ChrisThrasher
Copy link
Member Author

CSFML ought to use a CSFML prefix for its headers. I think that's a better solution that using an ambiguous file extension. I'm aware we can't do this in CSFML 2 but we can do it in v3 and we can do it for the private headers.

@eXpl0it3r
Copy link
Member

I guess for CSFML 3 it's okay to move everything to CSFML/

@ChrisThrasher
Copy link
Member Author

ChrisThrasher commented Mar 12, 2024

I guess for CSFML 3 it's okay to move everything to CSFML/

master...include_dir

Here's a patch that changes the SFML/ directory prefix to CSFML/. If you like this I'll submit a PR.

@ChrisThrasher
Copy link
Member Author

ChrisThrasher commented Aug 23, 2024

Updated this PR to be up to date with master. Currently this PR depends on #266 and #269. Once those are merged then this will be ready for review. Now that all CSFML live in a CSFML/ directory it's really clear what files are from CSFML and which are from SFML.

@ChrisThrasher ChrisThrasher marked this pull request as draft August 23, 2024 23:01
@ChrisThrasher ChrisThrasher force-pushed the hpp_headers branch 3 times, most recently from a4da208 to a2b075c Compare August 24, 2024 17:33
@ChrisThrasher ChrisThrasher marked this pull request as ready for review August 25, 2024 02:23
@ChrisThrasher ChrisThrasher merged commit e2e5ef1 into master Aug 25, 2024
@ChrisThrasher ChrisThrasher deleted the hpp_headers branch August 25, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use .hpp extension for private C++ headers

2 participants