Wykres commitów

22 Commity (fc85e7d15d4a8631e9777cf7704d3115fdc8058a)

Autor SHA1 Wiadomość Data
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 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
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
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
Henning Geinitz af58065746 64 bit platform fixes (bug #300799). 2004-10-03 17:34:36 +00:00
Mattias Ellert ac9ec0ff1c Missed one... 2004-06-20 01:22:44 +00:00
Gerhard Jaeger b3352dd14f Switched backend over to sanei_thread usage, to make it also work with OS/2. 2003-11-10 07:12:23 +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
Simon Munton d152930b5e incremented BUILD in pie.c (missed in last change) 2003-02-23 17:12:51 +00:00
Simon Munton 0423675807 fixed segmentation faults in pie.c when sane_init/sane_exit called more than once 2003-02-23 13:32:52 +00:00
Simon Munton 7f6ea34a85 added TL_X < BR_X and TL_Y < BR_Y consistency check 2002-07-23 21:09:30 +00:00
Simon Munton 837f3692c8 Changes to make AdLib JetScan scanners work - was using incorrect case in
spelling of AdLib
2001-09-17 20:57:12 +00:00
Simon Munton 1a78ebaf5f Updates to pie.c to free devlist in sane_exit and to not try and remove
newlines after calling sanei_config_read()
2001-05-08 12:08:40 +00:00
Simon Munton a794b91839 Added backend for Pacific Image Electronics ScanAce scanners (also works with DevCom BlackWidow
and ADLIB JetScan scanners)
2000-11-13 10:50:41 +00:00