-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 #440
Comments
and the files included by json.h are meant to be those which are locate in the same directory so, no, we will not replace those with angle brackets. |
I suggest to reconsider the consequences of the following wording from the section “16.2 Source file inclusion” in the standard specification for the programming language “C++”.
|
You're not making any sense. How do you end up with a "duplicated file search" when the headers are in the same directory, and thus will be found immediately? |
I suggest to take another look at the situation for an application programmer.
I prefer to avoid possible misunderstandings around the wording “the same directory”. |
In this case, I think the ultimate answers to your pointed questions is that you will not be comfortable using libevent and should find an alternative. |
The statement “ |
No, because that will pick up /usr/include/json-c/debug.h, even if I am attempting to compile against, for instance, a copy I've installed to /home/erh/json-c-current/ and it should be including /home/erh/json-c-current/include/json-c/debug.h. |
|
mmmhhh.. while @elfring is doing some nit-picking, the argument is not that weak. But @hawicz is also right in regard to developing json-c or having a special version on the system that is not installed into the default locations (but that could be handled via ./configure --prefix, --includedir, etc). It's primarily an issue for json-c developers themselves. How about adding a configure switch (--enable-system-includes) which could selectively use one form or the other? |
What argument? That we abandon a proven working method for ensuring the right header files are included, and instead switch to something that is dependent on getting the build parameters for anything that uses json-c just right? No thank you, not even as a configure switch, especially since that would be building some kind of terrible hack to generate the header files. If there's a clash between the file names that json-c uses for it's headers and those located elsewhere, then feel free to do something like rename "debug.h" to "json_c_debug,h", but that's not at all what is being suggested in this bug report. |
|
Just in case you were also curios. I did some background checks on elfring: it's highly probable a bot. Just one reference: https://twitter.com/johnregehr/status/718832080118005760 - also a look at the user profile might be helpful. |
I suggest to recheck the available public development statistics. |
Clearly not a bot, I think; just a very unusual individual. |
Well, in a sense it doesn't matter if it is carbon or silicone based - it
acts like a bot. Nough said ;-)
Sent from phone, thus brief.
Pierce Lopez <[email protected]> schrieb am So., 29. Juli 2018,
18:23:
… Clearly not a bot, I think; just a very unusual individual.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#440 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABadi2skAOniN-A3lAy58unJs5STzBdeks5uLeGZgaJpZM4ViP5A>
.
|
Would you like to replace any double quotes by angle brackets around file names for include statements?
The text was updated successfully, but these errors were encountered: