sane-project-website/old-archive/2001-05/0455.html

113 wiersze
4.6 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: assert.h problems with shared libraries</TITLE>
<META NAME="Author" CONTENT="Oliver Rauch (oliver.rauch@rauch-domain.de)">
<META NAME="Subject" CONTENT="Re: assert.h problems with shared libraries">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: assert.h problems with shared libraries</H1>
<!-- received="Thu May 31 14:40:17 2001" -->
<!-- isoreceived="20010531214017" -->
<!-- sent="Thu, 31 May 2001 23:39:01 +0200" -->
<!-- isosent="20010531213901" -->
<!-- name="Oliver Rauch" -->
<!-- email="oliver.rauch@rauch-domain.de" -->
<!-- subject="Re: assert.h problems with shared libraries" -->
<!-- id="3B16B9F5.AB420280@rauch-domain.de" -->
<!-- inreplyto="20010531224214.A6008@vortex.swb.de" -->
<STRONG>From:</STRONG> Oliver Rauch (<A HREF="mailto:oliver.rauch@rauch-domain.de?Subject=Re:%20assert.h%20problems%20with%20shared%20libraries&In-Reply-To=&lt;3B16B9F5.AB420280@rauch-domain.de&gt;"><EM>oliver.rauch@rauch-domain.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Thu May 31 2001 - 14:39:01 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0456.html">Nick Lamb: "Re: assert.h problems with shared libraries"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0454.html">Oliver Rauch: "Re: Xsane .\config errors"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0450.html">Henning Meier-Geinitz: "assert.h problems with shared libraries"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0456.html">Nick Lamb: "Re: assert.h problems with shared libraries"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0456.html">Nick Lamb: "Re: assert.h problems with shared libraries"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#455">[ date ]</A>
<A HREF="index.html#455">[ thread ]</A>
<A HREF="subject.html#455">[ subject ]</A>
<A HREF="author.html#455">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Henning Meier-Geinitz wrote:
<BR>
&nbsp;
<BR>
<EM>&gt; Some options: Don't use assert. Or use a local header file (lassert.h)
</EM><BR>
<EM>&gt; which checks for AIX and uses it's own assert if necessary. Or use a
</EM><BR>
<EM>&gt; #ifdef HAVE_ASSERT for every assert.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Any good ideas?
</EM><BR>
<P>Hi Henning.
<BR>
<P>An assert is an emergency stop. I think that most asserts can
<BR>
be removed without any problems (if not we would have several
<BR>
known problems).
<BR>
<P>I think we should do this:
<BR>
1) remove assert() where it is not necessary
<BR>
2) replace an assert(a&lt;b) by
<BR>
if (a&lt;b) {DBG(0, &quot;error...&quot;); + exit or return with error code}
<BR>
<P><P>Bye
<BR>
Oliver
<BR>
<P><P><PRE>
--
Homepage: <A HREF="http://www.rauch-domain.de">http://www.rauch-domain.de</A>
sane-umax: <A HREF="http://www.rauch-domain.de/sane-umax">http://www.rauch-domain.de/sane-umax</A>
xsane: <A HREF="http://www.xsane.org">http://www.xsane.org</A>
E-Mail: mailto:<A HREF="mailto:Oliver.Rauch@rauch-domain.de?Subject=Re:%20assert.h%20problems%20with%20shared%20libraries&In-Reply-To=&lt;3B16B9F5.AB420280@rauch-domain.de&gt;">Oliver.Rauch@rauch-domain.de</A>
<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:%20assert.h%20problems%20with%20shared%20libraries&In-Reply-To=&lt;3B16B9F5.AB420280@rauch-domain.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0456.html">Nick Lamb: "Re: assert.h problems with shared libraries"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0454.html">Oliver Rauch: "Re: Xsane .\config errors"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0450.html">Henning Meier-Geinitz: "assert.h problems with shared libraries"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0456.html">Nick Lamb: "Re: assert.h problems with shared libraries"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0456.html">Nick Lamb: "Re: assert.h problems with shared libraries"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#455">[ date ]</A>
<A HREF="index.html#455">[ thread ]</A>
<A HREF="subject.html#455">[ subject ]</A>
<A HREF="author.html#455">[ 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>Thu May 31 2001 - 14:40:40 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>