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.
backend/plustek-usbdevs.c backend/plustek.[ch]:
Tweaked TravelScan464 settings. Improved AFE gaincalculation
for CIS devices. This should avoid stripes in the scanned images.
* backend/plustek.c: Bumped build number.
* backend/plustek-usb.c: Fixed typo.
* backend/plustek-usbdevs.c: Added CanoScan to all Canon
device strings, identified one more Plustek device as U24.
* backend/plustek-usbhw.c: Fixed button handling for Plustek/
KYE devices and added some more debug messages.
* backend/plustek.c: Bumped build number.
* backend/plustek-usb.c backend/plustek-usbscan.c: Fixed problem,
when trying to scan at resolutions beyond the optical one
(sensor stops too early).
LiDE20 does not seem to have a reliable black calibration area, so the
devices now will switch off the lamp for dark calibration.
Fixed line statistics and added calibration data output.
Bumped build number.