Wykres commitów

20 Commity (2ae58b0e6f15fca44984839c4e7dd6a9bb854b0b)

Autor SHA1 Wiadomość Data
David Ward f3162bafa8 Replace variable self-assignments to avoid Clang warnings
These were intended to suppress GCC warnings about unused variables.
However, this leads to different warnings from Clang instead.

Use another approach that suppresses warnings from both compilers.
2022-03-08 19:00:00 -05:00
Wolfram Sang eb42ad08d5 treewide: use SANE_CURRENT_* macros consistently
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.
2021-06-08 19:01:41 +02:00
Olaf Meeuwissen e79adde8b2
Use URL to refer users to copies of the GPL and LGPL
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.
2021-02-12 17:41:38 +09:00
Ralph Little 5441ea1c51 hp5400: use standard defines for "color" and "grey" texts 2020-03-07 19:55:52 -08:00
Ralph Little 19d033837e hp5400: fix cancel bug that caused a crash when cancelling a scan or a preview 2020-03-07 15:37:14 -08:00
Ralph Little 28bcb9179d hp5400: added support for editable colour/bw switch and copy count sensors. 2020-03-07 14:36:27 -08:00
Ralph Little a34382c67b hp5400: some small corrections to button descriptions. 2020-03-05 09:19:53 -08:00
Ralph Little dd078cd17d hp5400: Added support for all buttons.
Support to read copy counter display to be done shortly.
2020-03-05 08:58:54 -08:00
Ralph Little 4f6b7665a8 hp5400: small enhancement from review to reduce code and increase clarity. 2020-03-03 09:56:39 -08:00
Ralph Little 2868e9e346 hp5400: corrected source for default values.
Just correcting a mistake from the previous check in.
Also substituted value variable for clarity.
2020-03-01 23:30:03 -08:00
Ralph Little 385543519b scanimage,hp5400: added option checking for hp5400 and rationalised scanimage help
h5400 now checks validity of -l, -t, -x and -y and auto selects a supported resolution.
scanimage now shows the full range for -x and -y despite other selections.
2020-03-01 22:53:48 -08:00
Ralph Little 93a0971576 hp5400: Change defaults for -x, -y, -l, -t for full page scan.
Official doc says that the max length is 297 not 300 (which scans a bit of the plastic case at the bottom)
2020-02-01 11:48:28 -08:00
Julien BLACHE 74509fc4cb hp5400: kill unused strdup() call, leaking memory 2010-06-23 18:21:38 +02:00
m. allan noah 91598aa800 * backend/*.[ch]: nearly every backend used V_MAJOR
instead of SANE_CURRENT_MAJOR in sane_init()
* backend/snapscan.c: remove EXPECTED_VERSION check
since new SANE standard is forward compatible
2008-11-26 21:21:31 +00:00
Thomas Soumarmon f50c42d4fb * hp5400: removing more compilation warnings 2004-10-03 11:14:03 +00:00
Thomas Soumarmon fe611e1011 * hp5400 : removed some compilation warnings 2004-10-02 18:39:01 +00:00
Thomas Soumarmon 973198cb30 * hp5400 : removed some compilation warnings 2004-10-02 18:31:28 +00:00
Thomas Soumarmon 96d46f8a7b *fixed bug #300252 : added static to all non SANE specific functions\n*changed #include <sane/..> into #include ../include/sane/... as mentioned in the backend-writing.txt file 2003-10-06 11:25:50 +00:00
Thomas Soumarmon c8845a70e2 hp5400 backend: moved constants init to sane_init() and sane_exit() 2003-07-28 07:14:16 +00:00
Thomas Soumarmon c84bdda420 hp5400: synching SANE CVS with hp5400backend sourceforge project CVS : added and modified hp5400 files (see Changelog) 2003-06-05 07:05:59 +00:00