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
Peter Marschall
33f413e790
spelling fixes for epson backend
2020-08-29 09:18:03 +02:00
Olaf Meeuwissen
23891a2646
.editorconfig: trim trailing whitespace
2017-05-29 21:14:29 +09:00
Olaf Meeuwissen
cbeb98daec
epson: fix [-Wunused-but-set-variable] compiler warning
2015-12-27 18:38:41 +09:00
Volker Diels-Grabsch
7c8c8e29be
Remove dead code due to unused variables
...
This fixes some occurrences of the following GCC warning:
warning: variable '...' set but not used
2015-12-20 15:21:45 +09:00
Yuri Chornoivan
648d933c56
Fix minor typos in messages and comments
2015-08-31 20:31:54 -04:00
Nils Philippsen
d835d9d565
epson: don't leak memory if realloc() fails
2013-11-07 14:29:28 +01:00
Nils Philippsen
8cd2d36f1e
epson: ensure that command() allocates enough memory
2013-11-05 14:05:25 +01:00
m. allan noah
ff048f4176
add three new SANE_VALUE macros and use mode name macros from saneopts.h
2010-02-10 23:48:21 -05:00
Alessandro Zummo
b39c12dd7b
Define MM_PER_INCH once for all
2009-06-18 15:54:49 +02:00
chris@cnpbagwell.com
4d9e8138af
standardize including local sane/ include files.
...
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).
2009-05-07 22:06:20 -05:00
Chris Bagwell
8b5df29714
Submit Makefile.in from Makefile.am submitted previously.
...
Updated backends with EXTRA_* files to allow Makefile's
to always pass in BACKEND_NAME to be fixed to backend name
instead of filename; while still making sure that
SANE_DEBUG_${BACKEND}* exist as documented in man pages.
Add references to epson and epson2 man pages about
SANE_DEBUG_EPSONx_SCSI and _NET options.
Created an epson2 man page; based mostly on epson page.
2009-01-23 03:50:22 +00: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
Julien BLACHE
7ca41423ac
OPT_NUM_OPTS must be of type SANE_TYPE_INT.
2007-10-26 14:56:38 +00:00
Julien BLACHE
d1d46d8d2a
Remove bogus check in get_identity2_information().
2007-04-21 10:12:48 +00:00
Mattias Ellert
5d42e90718
String harmonization
2007-01-20 14:46:25 +00:00
Mattias Ellert
cc0b23c5da
String harmonization
2007-01-20 14:32:08 +00:00
Karl Heinz Kremer
cc1d524c66
Fix buffer overflow error (submitted by Johannes Meixner)
2006-08-22 01:44:49 +00:00
Karl Heinz Kremer
3d057d04c6
Applied Henning's patch, Fixed some compiler warnings.
2006-06-11 19:46:09 +00:00
Karl Heinz Kremer
bc91d375dc
"flaming hack to get USB scanners working without timeouts under linux"
...
submitted by "Steve" (in comment to bug #300830 )
2005-01-09 15:33:56 +00:00
Karl Heinz Kremer
634e4a9210
Added USB IDs for CX-4600 and CX-3650.
2004-12-18 15:15:15 +00:00
Karl Heinz Kremer
1de7d6867b
Added USB ID for Expression 10000XL
2004-10-17 00:33:06 +00:00
Henning Geinitz
af58065746
64 bit platform fixes (bug #300799 ).
2004-10-03 17:34:36 +00:00
Karl Heinz Kremer
f19a7ac039
backend/epson_usb.c: add USB device ID for CX6400 back in
...
backend/epson.c: disable "feed" command for Perfection 1640 w/ ADF
2004-09-14 23:21:29 +00:00
Karl Heinz Kremer
ad0b4850a4
Corrected typo introduced in last commit.
2004-03-03 02:55:39 +00:00
Karl Heinz Kremer
6e96cb5f90
Added function level D8 for RX-500
2004-03-03 01:34:49 +00:00
Frank Zago
7771e34ff6
Reverted unintentianal changes.
2004-02-28 18:39:28 +00:00
Frank Zago
eed30216b5
ChangeLog
2004-02-28 18:33:09 +00:00
Karl Heinz Kremer
5a3f789018
Reformat of source code to get rid of different coding styles used by different
...
authors over the years.
2004-02-08 18:32:33 +00:00
Karl Heinz Kremer
d89d6730ea
Updated version number and added changelog comments
2004-02-01 15:14:17 +00:00
Karl Heinz Kremer
39b8c6b325
backend/epson.c: Added D7 function level as copy of D1 for CX-6400
...
backend/epson_usb.c: Added IDs for CX-6400 and Perfection 4870
2004-02-01 15:12:45 +00:00
Karl Heinz Kremer
243d4e9498
Fixed bug # 300444 - Changed OPT_CCT_9 desc. string.
2004-01-13 01:02:46 +00:00
Karl Heinz Kremer
2c60f5a9d2
Replaced all DBG(0, ... statements with DBG(1, ...
2003-10-27 23:52:59 +00:00
Karl Heinz Kremer
e01652aab8
Start two descriptions with capital characters.
2003-10-05 12:20:03 +00:00
Karl Heinz Kremer
b8198665c4
Fixed bug 300246 - Use SANE_TITLE_SCAN_SPEED (and DESC and NAME) from saneopts.h
...
instead of my own strings.
Fixed typo in gamma correction description.
2003-10-05 12:03:09 +00:00
Karl Heinz Kremer
f28084301a
Added Henning's change ro re-order the #include statements back in.
2003-09-14 12:41:58 +00:00
Karl Heinz Kremer
cad89342fa
Increment loop variable only once in loop to find USB scanners
...
Fix rounding problem when calculating number of lines to scan.
2003-09-13 00:59:54 +00:00
Henning Geinitz
0e70e29baf
Moved union Option_Value from backend header files to sanei_backend.h. No need
...
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>.
2003-09-12 16:10:33 +00:00
Karl Heinz Kremer
afd14b97f3
Fixed compile problem on Linux
...
Code cleanup to get rid of compiler warnings
2003-08-22 12:17:18 +00:00
Karl Heinz Kremer
84199865c5
Removed '//' comments - again ...
...
Added EPSON KOWA copyright
2003-08-21 22:35:56 +00:00
Karl Heinz Kremer
4bd825cac8
* backend/epson.[ch]: Added support for GT-30000, with support for the
...
ADF in simplex mode (used some code from the EPSON Kowa IScan version
of the backend)
* backend/epson_scsi.c: Use sanei_scsi_cmd2() to send commands to fix a problem
with SBP-2 under FreeBSD
2003-08-15 17:07:58 +00:00
Karl Heinz Kremer
5652917dd6
Added workaround for GT-8000 scanner, fixed two warnings reported by der Mouse.
2003-03-26 23:18:58 +00:00
Karl Heinz Kremer
e1b2d70a16
Moved sanei_usb_init() to sane_init(). Thanks to Ron Cemer for the patch.
2003-02-15 21:09:47 +00:00
Karl Heinz Kremer
aae28825db
Fix problem with "usb <vendor> <product> syntax in config file
2003-02-15 18:18:58 +00:00
Karl Heinz Kremer
fa68479dcb
Removed one '//' comment.
2002-12-31 21:20:33 +00:00
Karl Heinz Kremer
e9f5b82656
Added option to display short resolution list to support displays (e.g.
...
Sony Vaio PictureBook) that cannot show the complete list.
2002-12-29 02:40:35 +00:00
Karl Heinz Kremer
820ac413e7
Fixed problem with dropout color
2002-12-07 12:00:15 +00:00
Karl Heinz Kremer
0ee8173f13
Full support for libusb.
2002-11-03 20:47:46 +00:00