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

Use of angle brackets around file names for include statements #3

Closed
elfring opened this issue Oct 21, 2015 · 2 comments
Closed

Use of angle brackets around file names for include statements #3

elfring opened this issue Oct 21, 2015 · 2 comments

Comments

@elfring
Copy link

elfring commented Oct 21, 2015

Would you like to replace any double quotes by angle brackets around file names for include statements?

@mdb256
Copy link

mdb256 commented Oct 22, 2015

The double quotes in hs.h are correct. We want hs.h to include files in the same directory so we know the user ends up with headers from the same version of libhs.

While double quotes and angle brackets may have implementation-defined behaviours, this has the intended result on all of our supported compilers.

@mdb256 mdb256 closed this as completed Oct 22, 2015
@elfring
Copy link
Author

elfring commented Oct 22, 2015

There are different opinions about the handling of the involved implementation-defined behaviour.

  • Will header files be also searched outside the specified include directories if double quotes are used for the discussed preprocessor statement?
  • Is there a speed difference measurable if a file is not found there and the search will be retried with "the angle brackets inclusion method"?

@intel intel locked and limited conversation to collaborators Aug 8, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants