Skip to content

Use consistent include syntax/formatting - #571

Merged
focalintent merged 1 commit into
FastLED:masterfrom
per1234:correct-include-syntax
Apr 18, 2018
Merged

focalintent merged 1 commit into
FastLED:masterfrom
per1234:correct-include-syntax

Conversation

@per1234

@per1234 per1234 commented Feb 17, 2018

Copy link
Copy Markdown
Contributor
  • Angle brackets for external includes
  • Space after #include directive

- Angle brackets for external includes
- Space after #include directive
@kriegsman

Copy link
Copy Markdown
Member

Thanks for the cleanup PR!
The only item I have a question about in this PR is the change from "./dmx" to "dmx.h". I wonder if the original included the "./" for a reason, e.g. some other dmx.h being accidentally found in a search path somewhere.
Any thoughts?

@per1234

per1234 commented Mar 24, 2018

Copy link
Copy Markdown
Contributor Author

I puzzled over that one too. My understanding is that the #include "dmx.h" syntax should always search the current folder first before the rest of the include search paths so I can't see how that would be necessary.

https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html

#include "file"
This variant is used for header files of your own program. It searches for a file named file first in the directory containing the current file

I'm happy to remove that part of the PR if you like.

@focalintent
focalintent merged commit 6fd2366 into FastLED:master Apr 18, 2018
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