Wykres commitów

33 Commity (3fae2e561d969caae937337e4a52b793d0ceba71)

Autor SHA1 Wiadomość Data
David Ward 0d032cd982 Remove useless conditionals which cause compiler warnings
These always evaluate to true in the context of the surrounding code.
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
Mikolaj Kucharski cbf9627fd8 final Revision CVS keyword removal 2020-11-29 09:19:26 +00:00
Mikolaj Kucharski 7de7c051fa more CVS keywords removed, Log and Revision 2020-11-29 09:06:48 +00:00
Peter Marschall ffb741852a spelling fixes for hp backend 2020-08-29 09:18:04 +02:00
Olaf Meeuwissen 23891a2646 .editorconfig: trim trailing whitespace 2017-05-29 21:14:29 +09:00
Olaf Meeuwissen 99c14f2d95 Use a single symbol to flag unused parameters
The __sane_unused__ symbol was used slightly more often then UNUSEDARG
and, more importantly, defined in include/sane/sanei_backend.h.  That
makes it readily available to virtually all backends.
2016-07-18 16:51:08 +09:00
Olaf Meeuwissen 51277aec4a hp: fix [-Wunused-but-set-variable] compiler warnings 2015-12-27 18:38:41 +09:00
Julien BLACHE 1bd8404c12 hp: remove "/*" within comment 2010-06-23 18:21:36 +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
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
Peter Kirchgessner 07a22cd39f Rename global function hp_init_openfd to sanei_hp_init_openfd 2004-10-04 18:09:05 +00:00
Peter Kirchgessner d77b4b4736 Keep USB-connection open (was problem with Linux 2.6.x) 2004-03-27 13:52:39 +00:00
Peter Kirchgessner d66b755e7f Use new sanei-thread-interface 2003-10-24 17:26:07 +00:00
Peter Kirchgessner d5b479a19a Redo when TEST UNIT READY failed
Redo when read returns with 0 bytes (non-SCSI only)
Bug #300241: fix invers image on 3c/4c/6100C at 10 bit depth
2003-10-09 19:37:29 +00:00
Peter Kirchgessner 22020eba9c Bug #300248: correct "Negatives" to "Negative" in option description 2003-10-06 19:54:07 +00:00
Peter Kirchgessner 030e0f0722 Add SANE_I18N 2003-07-24 18:31:58 +00:00
Peter Kirchgessner 3b43770843 Second try to fix problem with null-pointer in sane_control_option 2003-04-14 19:29:37 +00:00
Peter Kirchgessner b35cbffda9 check pointer received from sane_control_option() 2003-04-14 18:20:41 +00:00
Peter Kirchgessner 216c5cec42 Add OS/2-support for hp-backend 2003-02-02 17:03:36 +00:00
Peter Kirchgessner 41cdb74d97 Workaround problem with Buslogic SCSI driver in hp-backend 2002-12-06 19:46:39 +00:00
Peter Kirchgessner 09538261ab Add libusb-support to hp-backend 2002-11-25 20:36:36 +00:00
Peter Kirchgessner f60b851fa7 HP-backend V0.96. Check device names to prevent USB-device to be
opened as SCSI-device
2002-08-06 19:33:08 +00:00
Peter Kirchgessner b94f799b28 - add support for active XPA
- check if paper in ADF for ADF scan
      - add option lamp off
      - remove some really unused parameters
2001-09-04 13:51:11 +00:00
Peter Kirchgessner 90cafb8935 Switch off lamp after scan 2001-02-04 17:36:26 +00:00
Peter Kirchgessner f1a237520c Fix problem with ADF-support (hp backend) 2000-12-04 21:03:43 +00:00
Peter Kirchgessner 2ba681f320 Write warning for missing ptal support with DBG(0... 2000-11-26 13:44:12 +00:00
Peter Kirchgessner fcf012d292 Change sanei_debug-interface
Allocate accessor only once (for fixed size accessors)
2000-10-23 18:32:37 +00:00
Peter Kirchgessner e907811055 hp-backend V 0.91, 04-Sep-2000, David Paschal (paschal@rcsis.com):
- Added support for flatbed HP OfficeJets
      - (PK) fix problem with cancel preview

   hp-backend V 0.91, V 0.90, 02-Sep-2000, PK:
      - fix timing problem between killing child and writing to pipe
      - change fprintf(stderr,...) to DBG
      - change include <sane..> to "sane.." in hp.h
      - change handling of options that have global effects.
        i.e. if option scanmode is received (has global effect),
        all options that "may change" are send to the scanner again.
        This fixes a problem that --resolution specified infront of
        --mode on command line of scanimage was ignored.
        NOTE: This change does not allow to specify --depth 12 infront of
        --mode color, because --depth is only enabled with --mode color.
      - add depth greater 8 bits for mode grayscale
      - add option for 8 bit output but 10/12 bit scanning
2000-09-09 17:44:14 +00:00
Petter Reinholdtsen b4a1a513c9 Merge devel (v1.0.3) into head branch. 2000-08-12 15:11:46 +00:00
Petter Reinholdtsen 760423d864 Merged main branch with current DEVEL_1_9. 2000-03-05 13:57:25 +00:00
Petter Reinholdtsen 30ab5e718a Initial revision 1999-08-09 18:06:01 +00:00