kopia lustrzana https://gitlab.com/sane-project/website
60 wiersze
2.6 KiB
HTML
60 wiersze
2.6 KiB
HTML
<!-- received="Thu Aug 19 10:48:35 1999 PDT" -->
|
||
<!-- sent="Thu, 19 Aug 1999 19:55:02 +0200" -->
|
||
<!-- name="Andreas Beck" -->
|
||
<!-- email="becka@rz.uni-duesseldorf.de" -->
|
||
<!-- subject="Re: Mustek Paragon 1200SP" -->
|
||
<!-- id="" -->
|
||
<!-- inreplyto="Pine.LNX.4.10.9908190024310.1016-100000@chef.ecs.soton.ac.uk" -->
|
||
<title>sane-devel: Re: Mustek Paragon 1200SP</title>
|
||
<h1>Re: Mustek Paragon 1200SP</h1>
|
||
<b>Andreas Beck</b> (<a href="mailto:becka@rz.uni-duesseldorf.de"><i>becka@rz.uni-duesseldorf.de</i></a>)<br>
|
||
<i>Thu, 19 Aug 1999 19:55:02 +0200</i>
|
||
<p>
|
||
<ul>
|
||
<li> <b>Messages sorted by:</b> <a href="date.html#236">[ date ]</a><a href="index.html#236">[ thread ]</a><a href="subject.html#236">[ subject ]</a><a href="author.html#236">[ author ]</a>
|
||
<!-- next="start" -->
|
||
<li> <b>Next message:</b> <a href="0237.html">252353N@knotes.kodak.com: "Re: Starting a discussion about SANE and TWAIN..."</a>
|
||
<li> <b>Previous message:</b> <a href="0235.html">Oliver Rauch: "Re: sane-umax"</a>
|
||
<!-- nextthread="start" -->
|
||
<!-- reply="end" -->
|
||
</ul>
|
||
<!-- body="start" -->
|
||
<i>> > The memset is just more clean and doesn't leave you with garbage in the </i><br>
|
||
<i>> > top few lines (which are wrong anyway due to the lack of correction data). </i><br>
|
||
<p>
|
||
<i>> Wouldn't s/malloc/calloc/ and tidy up be better style? </i><br>
|
||
<p>
|
||
Yes. I had made the patch after I got it to work right. It isn't intended to<br>
|
||
be applied to a the sane source to make a final version, just to show what <br>
|
||
is wrong.<br>
|
||
<p>
|
||
I hadn't used calloc, as when you are debugging (especially very strange<br>
|
||
errors that might be a buffer overrun), it is almost always bad to do <br>
|
||
multiple things at one.<br>
|
||
<p>
|
||
<i>> clearing it once immediately after allocation it could be a performance</i><br>
|
||
<i>> improvement to let the libc know that when you allocate.</i><br>
|
||
<p>
|
||
Well - not that it would matter. We are talking about 0.5M max, but ...<br>
|
||
<p>
|
||
CU, ANdy<br>
|
||
<p>
|
||
<pre>
|
||
--
|
||
= Andreas Beck | Email : <<a href="mailto:andreas.beck@ggi-project.org">andreas.beck@ggi-project.org</a>> =
|
||
<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">majordomo@mostang.com</a>
|
||
</pre>
|
||
<!-- body="end" -->
|
||
<p>
|
||
<ul>
|
||
<!-- next="start" -->
|
||
<li> <b>Next message:</b> <a href="0237.html">252353N@knotes.kodak.com: "Re: Starting a discussion about SANE and TWAIN..."</a>
|
||
<li> <b>Previous message:</b> <a href="0235.html">Oliver Rauch: "Re: sane-umax"</a>
|
||
<!-- nextthread="start" -->
|
||
<!-- reply="end" -->
|
||
</ul>
|