Hi Jochen,
my answer to your e-mail address returned to me with a mailer-error.
Therefore another try through the SANE-mailing list.
I have added the patches to my local copy. Please tell me when I should
submit the changes to the CVS. I will include some other changes too.
One hint: In sanei_debug.h the function DBG_LOCAL should be declared as
static void, not as void static.
--Peter
Jochen Eisinger wrote:
>
> Hi!
>
> I've rewritten the SANE DBG-Interface to avoid the use of vararg
> macros... with the help of Heninng Meier-Geinitz I brought it to a point
> where everything works fine... however, I had to patch the HP backend:
>
> I introduced two new #defines
>
> 1. #define DEBUG_NOT_STATIC which is declared in hp.h and forces
> sanei_debug.h not to declare the sanei_debug_call_hp function as static
>
> 2. #define DEBUG_DECLARE_ONLY which is declared in all hp*.c files but
> hp.c itself. This definition forces sanei_debug.h to define prototypes
> instead of real declarations... int DBG_LEVEL and void DBG (level, msg,
> ...) are only declared in hp.c...
>
> I also removed the #define STUBS; extern int DBG_LEVEL; -stuff because
> it's obsolete now.
>
> Please have a look at it, whether you want to include these patches in
> your backend. If you're Ok with it, I'll commit the patches for
> sanei_debug.h, sanei_init_debug.c & saned.c - the patches for the
> HP-backend should be commited from you
>
> thanx
>
> -- jochen
>
> ------------------------------------------------------------------------
> Name: sane-debug.patch.tar.gz
> sane-debug.patch.tar.gz Type: Unix Tape Archive (application/x-tar)
> Encoding: base64
-- Peter Kirchgessner http://www.kirchgessner.net mailto:peter@kirchgessner.net-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
This archive was generated by hypermail 2b29 : Sun Oct 22 2000 - 02:12:17 PDT