sane-project-website/old-archive/2000-10/0324.html

122 wiersze
5.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: #include &lt;sane...&gt; instead of &quot;sane.</TITLE>
<META NAME="Author" CONTENT="Petter Reinholdtsen (pere@hungry.com)">
<META NAME="Subject" CONTENT="Re: #include &lt;sane...&gt; instead of &quot;sane...&quot;">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: #include &lt;sane...&gt; instead of &quot;sane...&quot;</H1>
<!-- received="Mon Oct 30 22:48:06 2000" -->
<!-- isoreceived="20001031064806" -->
<!-- sent="Tue, 31 Oct 2000 14:49:06 +0800" -->
<!-- isosent="20001031064906" -->
<!-- name="Petter Reinholdtsen" -->
<!-- email="pere@hungry.com" -->
<!-- subject="Re: #include &lt;sane...&gt; instead of &quot;sane...&quot;" -->
<!-- id="200010310649.OAA05131@minerva.ee.uwa.edu.au" -->
<!-- inreplyto="#include &lt;sane...&gt; instead of &quot;sane...&quot;" -->
<STRONG>From:</STRONG> Petter Reinholdtsen (<A HREF="mailto:pere@hungry.com?Subject=Re:%20#include%20&lt;sane...&gt;%20instead%20of%20&quot;sane...&quot;&In-Reply-To=&lt;200010310649.OAA05131@minerva.ee.uwa.edu.au&gt;"><EM>pere@hungry.com</EM></A>)<BR>
<STRONG>Date:</STRONG> Mon Oct 30 2000 - 22:49:06 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0325.html">Petter Reinholdtsen: "Re: X-Frontends (xscanimage+xcam) and sane-1.0.4"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0323.html">Petter Reinholdtsen: "Re: sane-config"</A>
<LI><STRONG>Maybe in reply to:</STRONG> <A HREF="0317.html">Henning Meier-Geinitz: "#include &lt;sane...&gt; instead of &quot;sane...&quot;"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0330.html">Oliver Rauch: "Re: #include &lt;sane...&gt; instead of &quot;sane...&quot;"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0330.html">Oliver Rauch: "Re: #include &lt;sane...&gt; instead of &quot;sane...&quot;"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0331.html">Henning Meier-Geinitz: "Re: #include &lt;sane...&gt; instead of &quot;sane...&quot;"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#324">[ date ]</A>
<A HREF="index.html#324">[ thread ]</A>
<A HREF="subject.html#324">[ subject ]</A>
<A HREF="author.html#324">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
<EM>&gt; yes, again the includes :-) Jochen Eisinger found some more lines
</EM><BR>
<EM>&gt; where #include &lt;sane...&gt; was used instead of #include &quot;sane...&quot;.
</EM><BR>
<P>Could someone explain to me what this change is supposed to do? As
<BR>
far as I know, include &lt;&gt; searches in all directories specified in -I
<BR>
(in order), plus all 'system' directories. Include &quot;&quot; on the other
<BR>
hand searches first in the same directory as the source file it self,
<BR>
and then behaves the same way as &lt;&gt;.
<BR>
<P>The C bible spesifies:
<BR>
<P>&nbsp;&nbsp;A control line of the form
<BR>
<P>&nbsp;&nbsp;&nbsp;&nbsp;# include &lt;filename&gt;
<BR>
<P>&nbsp;&nbsp;causes the replacement of that line by the entire content of the
<BR>
&nbsp;&nbsp;file filename. [...] The named file is searched for in a sequence
<BR>
&nbsp;&nbsp;of implementation-dependant places.
<BR>
<P>&nbsp;&nbsp;Similarly, a control line of the form
<BR>
<P>&nbsp;&nbsp;&nbsp;&nbsp;# include &quot;filename&quot;
<BR>
<P>&nbsp;&nbsp;searches first in assosiation with the original source file (a
<BR>
&nbsp;&nbsp;deliberately implementation-dependant phrase), and if that search
<BR>
&nbsp;&nbsp;fails, then as if in the first form. [...]
<BR>
<P>If you check the cpp manual page, it will tell you changing &lt;&gt; to &quot;&quot;
<BR>
only adds searching in the current directory. I can not see why this
<BR>
gives any advantages when compiling SANE.
<BR>
<P>What am I missing?
<BR>
<PRE>
--
##&gt; Petter Reinholdtsen &lt;## | <A HREF="mailto:pere@td.org.uit.no?Subject=Re:%20#include%20&lt;sane...&gt;%20instead%20of%20&quot;sane...&quot;&In-Reply-To=&lt;200010310649.OAA05131@minerva.ee.uwa.edu.au&gt;">pere@td.org.uit.no</A>
<P><P>--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20#include%20&lt;sane...&gt;%20instead%20of%20&quot;sane...&quot;&In-Reply-To=&lt;200010310649.OAA05131@minerva.ee.uwa.edu.au&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0325.html">Petter Reinholdtsen: "Re: X-Frontends (xscanimage+xcam) and sane-1.0.4"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0323.html">Petter Reinholdtsen: "Re: sane-config"</A>
<LI><STRONG>Maybe in reply to:</STRONG> <A HREF="0317.html">Henning Meier-Geinitz: "#include &lt;sane...&gt; instead of &quot;sane...&quot;"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0330.html">Oliver Rauch: "Re: #include &lt;sane...&gt; instead of &quot;sane...&quot;"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0330.html">Oliver Rauch: "Re: #include &lt;sane...&gt; instead of &quot;sane...&quot;"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0331.html">Henning Meier-Geinitz: "Re: #include &lt;sane...&gt; instead of &quot;sane...&quot;"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#324">[ date ]</A>
<A HREF="index.html#324">[ thread ]</A>
<A HREF="subject.html#324">[ subject ]</A>
<A HREF="author.html#324">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Mon Oct 30 2000 - 22:48:22 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>