[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Relative imports
- From: liam mail <liam.list@...>
- Date: Mon, 14 Mar 2011 03:19:55 +0000
On 14 March 2011 02:57, Rob Hoelz <email@example.com>
Things that are implementation defined tend to be undefined in the standard...
On Mar 13, 2011, at 9:43 PM, liam mail wrote:
On 14 March 2011 00:57, Luiz Henrique de Figueiredo <firstname.lastname@example.org>
> And even C does relative including - by using quotes:I think this is actually *undefined* in the C standard.
> #include "foo.h"
> This would search for a file named "foo.h" in the same directory the
> sourcefile lies
It is implementation defined not undefined.
Rob I am sorry that is totally incorrect, undefined and implementation defined have specific meanings in the standard and this instance it is implementation defined. Maybe it would be better if I add a quote.
2 A preprocessing directive of the form
# include <h-char-sequence> new-line
searches a sequence of implementation-defined places for a header identified uniquely by the specified sequence between the < and > delimiters,
3 A preprocessing directive of the form
# include "q-char-sequence" new-line
causes the replacement of that directive by the entire contents of the source file identified by the specified sequence between the " delimiters. The named source file is searched for in an implementation-defined manner.