[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: obsd build include trouble
From: |
Ben Pfaff |
Subject: |
Re: obsd build include trouble |
Date: |
Mon, 27 Mar 2006 12:21:37 -0800 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
John Darrington <address@hidden> writes:
> Did you use <> instead of "" for libpspp #includes for some
> related reason? I am a little puzzled by that choice.
>
> Well yes. Because of the problems inhibiting the current directory
> inclusion for "", some people advocate never using #include "".
>
> There's no formal standard which dictates when <> should be
> prefered over "". ANSI C says it's implementation dependent. We've
> all been taught since 1st year undergrads, that <> is for 'system
> files' and "" is for everything else. Unfortunately noone has ever
> been able to satisfactorily explain what a 'system file' is.
>
> I don't have any strong opinions on what we should consider our
> 'system' to be. However, the rule which I've found has led to fewest
> complications over the years is that "" is used only for including
> files which are never intended to be public (ie #included by files
> which reside in the same directory). Everything else uses <>.
To me using <> for files actually included in the source tree
looks odd. I've always considered the "system" to be whatever
is outside the current source tree.
However, <> works too, and as long as it does I guess it's fine.
It's a waste of time to sweat the truly unimportant details.
--
Ben Pfaff
email: address@hidden
web: http://benpfaff.org
- Re: obsd build include trouble, (continued)
Re: obsd build include trouble, Ben Pfaff, 2006/03/14
Re: obsd build include trouble, Jason Stover, 2006/03/16
Re: obsd build include trouble, Jason Stover, 2006/03/20
Re: obsd build include trouble, John Darrington, 2006/03/20
Message not availableRe: obsd build trouble, John Darrington, 2006/03/21
Re: obsd build trouble, Jason Stover, 2006/03/21
Re: obsd build trouble, John Darrington, 2006/03/27
Re: obsd build trouble, Ben Pfaff, 2006/03/23