kopia lustrzana https://gitlab.com/sane-project/website
148 wiersze
5.4 KiB
HTML
148 wiersze
5.4 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: bug in sanei_debug.h</TITLE>
|
|
<META NAME="Author" CONTENT="Jochen Eisinger (jochen.eisinger@gno.de)">
|
|
<META NAME="Subject" CONTENT="Re: bug in sanei_debug.h">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>Re: bug in sanei_debug.h</H1>
|
|
<!-- received="Sun Oct 15 11:06:03 2000" -->
|
|
<!-- isoreceived="20001015180603" -->
|
|
<!-- sent="Sun, 15 Oct 2000 20:13:32 +0200" -->
|
|
<!-- isosent="20001015181332" -->
|
|
<!-- name="Jochen Eisinger" -->
|
|
<!-- email="jochen.eisinger@gno.de" -->
|
|
<!-- subject="Re: bug in sanei_debug.h" -->
|
|
<!-- id="39E9F3CC.C5B3CEB1@gno.de" -->
|
|
<!-- inreplyto="20001014223307.A31650@vortex.swb.de" -->
|
|
<STRONG>From:</STRONG> Jochen Eisinger (<A HREF="mailto:jochen.eisinger@gno.de?Subject=Re:%20bug%20in%20sanei_debug.h&In-Reply-To=<39E9F3CC.C5B3CEB1@gno.de>"><EM>jochen.eisinger@gno.de</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Sun Oct 15 2000 - 11:13:32 PDT
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0159.html">Oliver Rauch: "xsane and new gimp versions"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0157.html">Adrian Perez Jorge: "Re: HP ScanJet 3300"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0155.html">Henning Meier-Geinitz: "Re: bug in sanei_debug.h"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0161.html">David Mosberger-Tang: "Re: bug in sanei_debug.h"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0161.html">David Mosberger-Tang: "Re: bug in sanei_debug.h"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0162.html">Jochen Eisinger: "Re: bug in sanei_debug.h"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0185.html">Henning Meier-Geinitz: "Re: bug in sanei_debug.h"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#158">[ date ]</A>
|
|
<A HREF="index.html#158">[ thread ]</A>
|
|
<A HREF="subject.html#158">[ subject ]</A>
|
|
<A HREF="author.html#158">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
Hi!
|
|
<BR>
|
|
<P>[Henning Meier-Geinitz]
|
|
<BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> Hi,
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> > However, I'm still going to commit the change tommorow... I think this
|
|
</EM><BR>
|
|
<EM>> > wasn't a objection from you, Henning, was it?
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> No, not at all!
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> I just wanted to confirm that it works.
|
|
</EM><BR>
|
|
<P>:-) Ok, I've commited the bugfix!
|
|
<BR>
|
|
<P>There's another bug in sanei_debug.h: before we test what value __GNUC__
|
|
<BR>
|
|
has, we should test, whether __GNUC__ is defined at all.
|
|
<BR>
|
|
<P>I'll patch this tommorow, and commit it on tuesday, if nobody objects...
|
|
<BR>
|
|
<P>
|
|
<BR>
|
|
<EM>> However, it doesn't seem to be an easy fix. The variable for the current
|
|
</EM><BR>
|
|
<EM>> debug level and the backend name is stored in the object code of the
|
|
</EM><BR>
|
|
<EM>> backend. It has to be transmitted to sanei_init_debug in some way. With
|
|
</EM><BR>
|
|
<EM>> vararg macros that's no problem because these two values can be transmitted
|
|
</EM><BR>
|
|
<EM>> as function parameters to sanei_debug_max. Without varargs we can't touch
|
|
</EM><BR>
|
|
<EM>> the parameters of DBG / sanei_debug so I don't have an idea how to tell
|
|
</EM><BR>
|
|
<EM>> sanei_debug_msg the debug level and backend name without moving all these
|
|
</EM><BR>
|
|
<EM>> functions to sanei_debug.h. Any ideas (maybe I didn't understand the code
|
|
</EM><BR>
|
|
<EM>> fully ...).
|
|
</EM><BR>
|
|
<P>I had a look at it. I thought, we could define DBG like this
|
|
<BR>
|
|
<P>#define DBG sanei_debug_set(DBG_LEVEL, STRINGIFY(BACKEND_NAME));
|
|
<BR>
|
|
sanei_debug
|
|
<BR>
|
|
<P>but this fails on code like this
|
|
<BR>
|
|
<P>if (...)
|
|
<BR>
|
|
DBG(...)
|
|
<BR>
|
|
else
|
|
<BR>
|
|
...
|
|
<BR>
|
|
<P>I also don't see an easy way arround this
|
|
<BR>
|
|
<P>-- jochen
|
|
<BR>
|
|
<P><PRE>
|
|
--
|
|
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:%20bug%20in%20sanei_debug.h&In-Reply-To=<39E9F3CC.C5B3CEB1@gno.de>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0159.html">Oliver Rauch: "xsane and new gimp versions"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0157.html">Adrian Perez Jorge: "Re: HP ScanJet 3300"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0155.html">Henning Meier-Geinitz: "Re: bug in sanei_debug.h"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0161.html">David Mosberger-Tang: "Re: bug in sanei_debug.h"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0161.html">David Mosberger-Tang: "Re: bug in sanei_debug.h"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0162.html">Jochen Eisinger: "Re: bug in sanei_debug.h"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0185.html">Henning Meier-Geinitz: "Re: bug in sanei_debug.h"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#158">[ date ]</A>
|
|
<A HREF="index.html#158">[ thread ]</A>
|
|
<A HREF="subject.html#158">[ subject ]</A>
|
|
<A HREF="author.html#158">[ 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>Sun Oct 15 2000 - 11:06:52 PDT</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|