Backends use a mixture of SANE_CURRENT_{MAJOR | MINOR} and V_{MAJOR |
MINOR} with all kind of permutations. I was confused by this and one
comment in pieusb.c tells me I was not alone. Some items in old
changelogs suggest to use the SANE_CURRENT_ macros in backends, so let's
switch to do that with the exception of net.c and dll.c. Done with:
$ find backend -name '*.[ch]' | xargs sed -i '/nearly every/ ! { s/\<V_M/SANE_CURRENT_M/g }'
$ git checkout backend/net.c backend/dll.c
And manually removing the comment from pieusb.c. Everything still builds
fine.
With the exception of use in three quotes as well as our inlcuded copy
of the GPL, all use of the Free Software Foundation's postal address
has been removed.
Re #320.
Not all pthreads implementations use an integer type for pthread_t.
As a matter of fact, POSIX has explicitly withdrawn the requirement
that it must be an arithmatic type.
The musl C library uses a `struct __pthread *` which triggered the
warnings. As of this change, sanei_thread.h works around this by
providing two new macros to help keep this issue out of sight. All
backends have been changed to use these macros.
This gets rid of a number of obsoleted macros and replaces RETSIGTYPE
with a void literal which can be assumed for C89 and later.
This changeset was prepared using autoupdate and modified to get rid of
whitespace and doubled [] changes. Changes to acinclude.m4 were added
by hand.
Source code was inconsistent on how they were referencing
include files in include/sane. In certain cases, sane/sane.h
and sane/saneopts.h was really including external copies (with
some preprocessor implementations anyways).
to copy it over and over again. Changed header inclusion order in backend
files to include backend.h after sanei_backend.h. Based on a patch from stef
<stef-listes@wanadoo.fr>.
* backend/umax.c, bachend/umax-scanner.c, backend/umax.desc,
doc/umax/sane-umax-config-doc.html, doc/umax/umax.CHANGES,
doc/sane-umax.man:
update to sane-umax-1.0 build 30:
- added EDGE KTX-9600US as supported scanner
- Changing scansource does not change lower left selection
edge if not necessary
* backend/umax*: bugfixes:
* bugfix for DOR:
- bottom-right edge keeps in position if possible when DOR is switched on
* bugfix for Astra 610S color mode:
- scale_y is set to 0.5 if y_resolutions is smaller than optical_res/2
this does fix the color scan problems for Astra 610S.
Not tested for Astra 600S.
* Changelog: added snapshot marker 2001-06-17
* backend/umax*: bugfixes:
- removed "#include <assert.h>" from umax.c: assert() is never called
- bugfix for 3 pass scanning:
reposition_scanner is called in sane_start for 2nd and 3rd pass of 3 pass scan
- bugfix for UTA and DOR geometry offsets