kopia lustrzana https://gitlab.com/sane-project/website
170 wiersze
6.2 KiB
HTML
170 wiersze
6.2 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: New backends for SANE 1.0.4</TITLE>
|
|
<META NAME="Author" CONTENT="Henning Meier-Geinitz (hmg-ml@gmx.de)">
|
|
<META NAME="Subject" CONTENT="Re: New backends for SANE 1.0.4">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>Re: New backends for SANE 1.0.4</H1>
|
|
<!-- received="Wed Nov 8 13:21:17 2000" -->
|
|
<!-- isoreceived="20001108212117" -->
|
|
<!-- sent="Wed, 8 Nov 2000 22:06:06 +0100" -->
|
|
<!-- isosent="20001108210606" -->
|
|
<!-- name="Henning Meier-Geinitz" -->
|
|
<!-- email="hmg-ml@gmx.de" -->
|
|
<!-- subject="Re: New backends for SANE 1.0.4" -->
|
|
<!-- id="20001108220606.D26393@vortex.swb.de" -->
|
|
<!-- inreplyto="008401c04927$f4d7a7e0$740d10ac@hq.iei" -->
|
|
<STRONG>From:</STRONG> Henning Meier-Geinitz (<A HREF="mailto:hmg-ml@gmx.de?Subject=Re:%20New%20backends%20for%20SANE%201.0.4&In-Reply-To=<20001108220606.D26393@vortex.swb.de>"><EM>hmg-ml@gmx.de</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Wed Nov 08 2000 - 13:06:06 PST
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0137.html">Karsten Festag: "Re: New backends for SANE 1.0.4"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0135.html">Henning Meier-Geinitz: "Re: TODO list"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0133.html">kwlee: "Re: New backends for SANE 1.0.4"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0141.html">kwlee: "Re: New backends for SANE 1.0.4"</A>
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0127.html">Karsten Festag: "Re: New backends for SANE 1.0.4"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0141.html">kwlee: "Re: New backends for SANE 1.0.4"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#136">[ date ]</A>
|
|
<A HREF="index.html#136">[ thread ]</A>
|
|
<A HREF="subject.html#136">[ subject ]</A>
|
|
<A HREF="author.html#136">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
Hi,
|
|
<BR>
|
|
<P>On Wed, Nov 08, 2000 at 10:02:02AM +0800, kwlee wrote:
|
|
<BR>
|
|
<EM>> I definitely hope this backend can be included in SANE 1.0.4 but as said,
|
|
</EM><BR>
|
|
<EM>> i have no idea about desc or PROJECTS:(
|
|
</EM><BR>
|
|
<P>Ok, so I will have a closer look.
|
|
<BR>
|
|
<P><EM>> the only thing i have done is modify the Makefile and just compile my
|
|
</EM><BR>
|
|
<EM>> backend. So, i hope someone can help me include my backend to
|
|
</EM><BR>
|
|
<EM>> the config file or something like that, especially to put all my c++ and *
|
|
</EM><BR>
|
|
<EM>> .h files
|
|
</EM><BR>
|
|
<EM>> under viceo directory(there are too many files on my backend, so putting
|
|
</EM><BR>
|
|
<EM>> them on one directory is a good choice) .
|
|
</EM><BR>
|
|
<P>Yes, definitely. I personally don't like these many files...
|
|
<BR>
|
|
especially because all other backends come with one (or few) .c
|
|
<BR>
|
|
file(s).
|
|
<BR>
|
|
<P><EM>> Other issues, i have read other mail about your concern on putting
|
|
</EM><BR>
|
|
<EM>> backend on SANE 1.04:
|
|
</EM><BR>
|
|
<EM>> .global variable to static var
|
|
</EM><BR>
|
|
<EM>> .remove c++ // comment
|
|
</EM><BR>
|
|
<EM>> I'm afraid i can not do it:( because there are too many c++ files with
|
|
</EM><BR>
|
|
<EM>> hundred of global vars...
|
|
</EM><BR>
|
|
<P>Both are necessary. The // comments will break the build with older
|
|
<BR>
|
|
compilers (e.g. on Solaris, AIX and Irix). The global variables and
|
|
<BR>
|
|
functions without "static" can lead to a naming problems because they
|
|
<BR>
|
|
can occur in other backends, too.
|
|
<BR>
|
|
<P>Some more points:
|
|
<BR>
|
|
<P>* All this code is GPL? Add the GPL header to all of them.
|
|
<BR>
|
|
* Why is the prefix .cpp? Is there any c++ code in these files? Only C
|
|
<BR>
|
|
should be used in SANE
|
|
<BR>
|
|
* Don't use printf for messages. Use the DBG macros instead.
|
|
<BR>
|
|
* there are lots of warnings about comparison between signed and
|
|
<BR>
|
|
unsigned, unused vars, comma at end of enumerator list, etc.
|
|
<BR>
|
|
* the code doesn't seem to compile with all the warning options enabled
|
|
<BR>
|
|
* don't use "pragma" or any other gcc-specific directives
|
|
<BR>
|
|
* look at the file "GUIDE" in the SANE distribution for some more hints
|
|
<BR>
|
|
* write a man page
|
|
<BR>
|
|
<P>I was surprised a bit because the code is this big (ca. 500 kb source
|
|
<BR>
|
|
code) in comparison to the compiled library (ca. 50k). Is all of the
|
|
<BR>
|
|
code used in the library?
|
|
<BR>
|
|
<P>As far as I see there is quite some work to do. So I suggest to not
|
|
<BR>
|
|
include the backend into SANE 1.0.4. If you want to do the changes,
|
|
<BR>
|
|
you will have more time until SANE 1.0.5. This will give some time for
|
|
<BR>
|
|
testing, too.
|
|
<BR>
|
|
<P>However, a viceo.desc file can be included now. Look at the other
|
|
<BR>
|
|
.desc files and the template file for examples and send your file to
|
|
<BR>
|
|
me. I can check it into CVS and add a PROJECTS entry, too.
|
|
<BR>
|
|
<P>Bye,
|
|
<BR>
|
|
Henning
|
|
<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:%20New%20backends%20for%20SANE%201.0.4&In-Reply-To=<20001108220606.D26393@vortex.swb.de>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0137.html">Karsten Festag: "Re: New backends for SANE 1.0.4"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0135.html">Henning Meier-Geinitz: "Re: TODO list"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0133.html">kwlee: "Re: New backends for SANE 1.0.4"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0141.html">kwlee: "Re: New backends for SANE 1.0.4"</A>
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0127.html">Karsten Festag: "Re: New backends for SANE 1.0.4"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0141.html">kwlee: "Re: New backends for SANE 1.0.4"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#136">[ date ]</A>
|
|
<A HREF="index.html#136">[ thread ]</A>
|
|
<A HREF="subject.html#136">[ subject ]</A>
|
|
<A HREF="author.html#136">[ 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>Wed Nov 08 2000 - 13:22:56 PST</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|