Wykres commitów

57 Commity (b49deae017ea893f0ffbca44fa1c26b54ee4fb11)

Autor SHA1 Wiadomość Data
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 064d73ed5a spelling fixes for umax backend 2020-08-29 09:18:03 +02:00
Olaf Meeuwissen df1aba21bc SANE_Pid: Fix [-Wint-conversion] issues
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.
2017-07-15 14:47:54 +09:00
Olaf Meeuwissen deb856cb27 umax: Fix [-Wshift-negative-value] compiler warning 2017-06-26 12:09:54 +09:00
Olaf Meeuwissen 23891a2646 .editorconfig: trim trailing whitespace 2017-05-29 21:14:29 +09:00
Jörg Frings-Fürst e21bb28e50 Source code string typo fixes 2017-05-13 18:38:43 +09:00
Olaf Meeuwissen d3d5dc3da0 Update to autoconf-2.69
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.
2016-06-13 22:05:34 +09:00
Olaf Meeuwissen e094c5b43b Invert sense of sanei_thread validity check
Double negatives suck.
2015-11-24 18:19:31 +09:00
Olaf Meeuwissen fe12d31e68 Fix SANE_Pid related -Wsign-compare warnings
This may fix threading related issues on WIN32 platforms, BTW.
2015-11-24 18:19:31 +09:00
Mark Buda c591d2b7da Correction of some spelling/grammatical errors in source code 2014-05-15 22:04:37 -04:00
Nils Philippsen defdc1ab5c umax: initialize reader_pid early in sane_start()
This avoids that subsequent errors followed by do_cancel() attempt to
phtread_cancel() an invalid thread (which may cause a crash).
2013-01-16 12:06:09 +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
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
m. allan noah 2dc0cb38bd separate x-resolution from resolution, and update all backends that use
it, to prevent ui change
2008-07-26 03:53:44 +00:00
Mattias Ellert d5ae0bbc3d Fix for bug #306751: sanei-thread with pthreads on 64 bit 2008-05-15 12:50:25 +00:00
m. allan noah 994bef3b16 reduce gcc pedantic/ansi warnings from 690 to 280 lines, mostly via casts in
str*() calls, also update hpljm1005 sane_cancel code
2008-02-04 01:20:01 +00:00
Mattias Ellert 7c6b4d6a99 Fix handling of valid "negative" PIDs 2007-11-18 10:59:18 +00:00
Mattias Ellert abd402ad51 Correct the test of the return value from sanei_thread_begin 2007-11-16 08:04:02 +00:00
Oliver Rauch 9c31766111 Modified Files:
backend/umax.c
	corrected highlight blu bug
2007-01-29 21:43:04 +00:00
Mattias Ellert 21f94b0264 Fix SANE_DEBUG_SANEI_PV8630 2005-09-22 19:02:25 +00:00
Oliver Rauch a776ea2311 *** empty log message *** 2004-10-16 08:55:51 +00:00
Oliver Rauch 75018e1ad0 backend/umax: bugfix for sense_handler and do_calibration 2004-03-15 20:42:19 +00:00
Oliver Rauch af4a252e02 sane-umax: bugfix for DOR mode 2004-02-08 14:02:26 +00:00
Oliver Rauch c287806dc0 *** empty log message *** 2004-01-12 19:54:31 +00:00
Oliver Rauch 3f7078d7f6 *** empty log message *** 2004-01-08 19:59:05 +00:00
Oliver Rauch 872a4544c9 umax backend: disabled quality calibration for umax Astra 2200 SU via USB 2004-01-07 23:01:48 +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
Oliver Rauch 23c1118df7 Finally here is the changed umax.c ;-) 2003-07-21 22:18:31 +00:00
Oliver Rauch 2624635b6a changed bug in umax.c that broke compilation for OS2 2003-05-05 18:11:30 +00:00
Oliver Rauch 415c14a101 Applied changes that replace fork() by thread for OS2 2003-05-04 12:23:50 +00:00
Oliver Rauch 24f6d3563b Update of umax-scsi backend 2003-05-01 20:19:31 +00:00
Oliver Rauch 0b681c7438 update to sane-umax build 39 2003-01-07 18:18:46 +00:00
Oliver Rauch 9a266515f9 umax backend build 38 2002-10-16 15:03:41 +00:00
Oliver Rauch 8b7e476644 umax.c: update to build 37 2002-09-28 12:31:06 +00:00
Oliver Rauch 08bc05d7cd 2002-09-07 Oliver Rauch <Oliver.Rauch@rauch-domain.de>
* backend/umax.c, umax.h, umax-scanner.c, umax.conf
          doc/descriptions/umax.desc
          Update to sane-umax build 36
2002-09-07 10:11:17 +00:00
Oliver Rauch 836ca96943 2002-04-21 Oliver Rauch <Oliver.Rauch@rauch-domain.de>
* sane-umax backend update to version 1.0 build 34
2002-04-21 13:26:17 +00:00
Oliver Rauch 31d39a110b 2002-03-07 Oliver Rauch <Oliver.Rauch@rauch-domain.de>
* updated umax backend to version 1.0.7-build-33
          new file: umax-usb.c (by Frank Zago)
2002-03-07 19:47:15 +00:00
Oliver Rauch 50c2fee614 2002-01-05 Oliver Rauch <Oliver.Rauch@rauch-domain.de>
* backend/umax-scanner.c, umax.c, umax.conf, umax.desc, umax.h:
          update to backend version 1.0 build 32
2002-01-05 17:23:53 +00:00
Oliver Rauch 3b1411d8e0 2001-10-17 Oliver Rauch <Oliver.Rauch@rauch-domain.de>
* umax backend bugfixes (new version number: 1.0 build 31):
    man page uses @LIBDIR@ and @CONFIGDIR@,
    calibration fix for Supervista S-12 and compatible scanners
    directory backend:
      umax.c umax-scanner.c umax-scsidef.h
    directory doc:
      sane-umax.man /umax/sane-umax-advanced-options-doc.html
      umax/sane-umax-standard-options-doc.html umax/umax.CHANGES
2001-10-27 11:58:09 +00:00
Oliver Rauch 5e5f8c366a 2001-10-13 Oliver Rauch <Oliver.Rauch@rauch-domain.de>
* 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
2001-10-12 23:08:10 +00:00
Oliver Rauch 4ddf86fe34 Oliver Rauch:
corrected wrong version number in umax.c
2001-08-26 09:03:49 +00:00
Oliver Rauch a0048c88a2 2001-08-26 Oliver Rauch <Oliver.Rauch@rauch-domain.de>
* backend/umax.c backend/umax.desc doc/umax/umax.CHANGES:
          umax scsi backend update to version 1.0 build 29
2001-08-26 09:02:39 +00:00
Oliver Rauch 92e44963e8 2001-06-24 Oliver Rauch <Oliver.Rauch@rauch-domain.de>
* 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.
2001-06-24 01:02:36 +00:00
Oliver Rauch 0dfd18228d 2001-06-17 Oliver Rauch <Oliver.Rauch@rauch-domain.de>
* 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
2001-06-17 22:49:17 +00:00
Oliver Rauch 36a7f44f64 *** empty log message *** 2001-06-04 13:26:09 +00:00
Oliver Rauch f0ecd3d80b 2001-06-02 Oliver Rauch <Oliver.Rauch@rauch-domain.de>
* changed minimum scsi buffer size from 64KB to 32KB
2001-06-02 12:07:14 +00:00
Oliver Rauch 974b5eacf6 removed bug in umax backend sane_exit
Oliver Rauch <Oliver.Rauch@Rauch-Domain.DE>
2001-05-17 21:47:34 +00:00