kopia lustrzana https://gitlab.com/sane-project/website
122 wiersze
5.7 KiB
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 <sane...> instead of "sane.</TITLE>
|
||
|
<META NAME="Author" CONTENT="Petter Reinholdtsen (pere@hungry.com)">
|
||
|
<META NAME="Subject" CONTENT="Re: #include <sane...> instead of "sane..."">
|
||
|
</HEAD>
|
||
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
||
|
<H1>Re: #include <sane...> instead of "sane..."</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 <sane...> instead of "sane..."" -->
|
||
|
<!-- id="200010310649.OAA05131@minerva.ee.uwa.edu.au" -->
|
||
|
<!-- inreplyto="#include <sane...> instead of "sane..."" -->
|
||
|
<STRONG>From:</STRONG> Petter Reinholdtsen (<A HREF="mailto:pere@hungry.com?Subject=Re:%20#include%20<sane...>%20instead%20of%20"sane..."&In-Reply-To=<200010310649.OAA05131@minerva.ee.uwa.edu.au>"><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 <sane...> instead of "sane...""</A>
|
||
|
<!-- nextthread="start" -->
|
||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0330.html">Oliver Rauch: "Re: #include <sane...> instead of "sane...""</A>
|
||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0330.html">Oliver Rauch: "Re: #include <sane...> instead of "sane...""</A>
|
||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0331.html">Henning Meier-Geinitz: "Re: #include <sane...> instead of "sane...""</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>> yes, again the includes :-) Jochen Eisinger found some more lines
|
||
|
</EM><BR>
|
||
|
<EM>> where #include <sane...> was used instead of #include "sane...".
|
||
|
</EM><BR>
|
||
|
<P>Could someone explain to me what this change is supposed to do? As
|
||
|
<BR>
|
||
|
far as I know, include <> searches in all directories specified in -I
|
||
|
<BR>
|
||
|
(in order), plus all 'system' directories. Include "" 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 <>.
|
||
|
<BR>
|
||
|
<P>The C bible spesifies:
|
||
|
<BR>
|
||
|
<P> A control line of the form
|
||
|
<BR>
|
||
|
<P> # include <filename>
|
||
|
<BR>
|
||
|
<P> causes the replacement of that line by the entire content of the
|
||
|
<BR>
|
||
|
file filename. [...] The named file is searched for in a sequence
|
||
|
<BR>
|
||
|
of implementation-dependant places.
|
||
|
<BR>
|
||
|
<P> Similarly, a control line of the form
|
||
|
<BR>
|
||
|
<P> # include "filename"
|
||
|
<BR>
|
||
|
<P> searches first in assosiation with the original source file (a
|
||
|
<BR>
|
||
|
deliberately implementation-dependant phrase), and if that search
|
||
|
<BR>
|
||
|
fails, then as if in the first form. [...]
|
||
|
<BR>
|
||
|
<P>If you check the cpp manual page, it will tell you changing <> to ""
|
||
|
<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>
|
||
|
--
|
||
|
##> Petter Reinholdtsen <## | <A HREF="mailto:pere@td.org.uit.no?Subject=Re:%20#include%20<sane...>%20instead%20of%20"sane..."&In-Reply-To=<200010310649.OAA05131@minerva.ee.uwa.edu.au>">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<sane...>%20instead%20of%20"sane..."&In-Reply-To=<200010310649.OAA05131@minerva.ee.uwa.edu.au>">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 <sane...> instead of "sane...""</A>
|
||
|
<!-- nextthread="start" -->
|
||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0330.html">Oliver Rauch: "Re: #include <sane...> instead of "sane...""</A>
|
||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0330.html">Oliver Rauch: "Re: #include <sane...> instead of "sane...""</A>
|
||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0331.html">Henning Meier-Geinitz: "Re: #include <sane...> instead of "sane...""</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>
|