Wykres commitów

41 Commity (d62ba623b2118ca009a8491e40daedbbd643f267)

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 23891a2646 .editorconfig: trim trailing whitespace 2017-05-29 21:14:29 +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
Stéphane Voltz 1f1385ea67 fix memleaks in pnm backend
- fix memleaks reported in bug #313553
2015-08-08 21:31:05 +02:00
Mark Buda c591d2b7da Correction of some spelling/grammatical errors in source code 2014-05-15 22:04:37 -04: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
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 70f3fdfba4 * acinclude.m4, backend/*.[ch], tools/*.[ch], frontend/*.[ch]:
Global replace of u_int??_t with C9x standard based uintxx_t
 in order to remove some tricky and overlapping portability logic
 from acinclude.m4 and leave it in only m4/stdint.m4.
2009-02-26 03:15:43 +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
m. allan noah 8733651c4b test backend checks for options that have not been loaded before being controlled 2008-06-26 13:14:23 +00:00
Mattias Ellert d5ae0bbc3d Fix for bug #306751: sanei-thread with pthreads on 64 bit 2008-05-15 12:50:25 +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 7b03fc2168 Added option "source" which can be used to simulate an Automatic Document Feeder
(ADF). Added copyright header to test.h.
2006-01-02 22:55:44 +00:00
Henning Geinitz 8e367bc2da Fixed typo. 2004-10-10 13:08:40 +00:00
Henning Geinitz af58065746 64 bit platform fixes (bug #300799). 2004-10-03 17:34:36 +00:00
Gerard Klaver a2f4f13f7a Some opt_groups and options have not the same menu values (od->cap):
For the opt_bool_group, opt_int_group and opt_fixed_group: changed od->cap = 0; to od->cap = SANE_CAP_ADVANCED;
2004-04-06 20:18:41 +00:00
Gerhard Jaeger 09153449b7 reader_process terminates now, when running as thread. 2004-01-21 19:02:52 +00:00
Henning Geinitz a16dfafd6a Fixed initial value for --fixed-constraint-range (bug #300388). 2003-12-21 20:59:59 +00:00
Gerhard Jaeger e36fac9d88 Removed blocking SIGPIPE, as this is now handled in sanei_thread library. 2003-10-17 11:06:43 +00:00
Henning Geinitz d63c6321a6 Reindented. 2003-10-17 09:44:20 +00:00
Henning Geinitz cc8a3875ca Fixed cancelling when threads are used. Only SIGPIPE is blocked now. Sleep
indefinetly after the reader_process has finished. Minor fixes of debug
messages.
2003-10-13 18:03:40 +00:00
Gerhard Jaeger 6dd1661a65 removed OS/2 section. 2003-10-12 15:39:38 +00:00
Gerhard Jaeger a1ec707aee added sanei_thread support 2003-10-08 20:32:39 +00:00
Henning Geinitz 345401d726 Fixed some missing or duplicated spaces in option descriptions. 2003-10-05 11:43:20 +00:00
Henning Geinitz 982ef90ed4 Some options had wrong constraints or didn't match their descriptions (bug
#300235).
2003-09-28 22:19:22 +00:00
Henning Geinitz 9a6faa5046 Check if sanei_config_get_string fails because of a single quotation mark
in the configuration file.
2003-09-21 10:42:15 +00:00
Henning Geinitz 04dd7d101f Added support for OS/2 (from Franz Bakan <fbakan@gmx.net>). 2003-04-10 08:36:10 +00:00
Henning Geinitz 85dddb6ca0 Use "Color pattern" consistantly. 2003-01-24 14:00:11 +00:00
Henning Geinitz f63abd633e Make sure that frontend bugs concerning the select fd are detected. 2002-12-30 13:44:27 +00:00
Henning Geinitz 61a9534ac0 Minor spelling and translation fixes. 2002-12-05 09:17:19 +00:00
Henning Geinitz 991bd09675 Fixed PACKAGE_VERSION breakage. PACKAGE_VERSION was redefined by autoconf 2.5
with a different meaning. Use PACKAGE_STRING instead.
2002-11-29 18:19:58 +00:00
Henning Geinitz ba484e4b21 Explicitely close the pipe and wait until reader_process is killed. 2002-10-27 14:17:17 +00:00
Henning Geinitz 2958f7a844 Fixed bytes_per_line in 1 bit mode. Fixed 1 bit color three-pass mode
(grid). Changed bit order for 1 bit color to most significant bit is first
pixel.
2002-09-30 13:54:02 +00:00
Henning Geinitz 2c16e3308b Added option invert-endianess to test 16 bit modes.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-07-24 19:57:56 +00:00
Henning Geinitz 1e582217c0 Added support for lineart mode with pixels_per_line not divisible by 8. Added
support for padded image formats. Added documentation for all options.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-06-09 17:44:20 +00:00
Henning Geinitz f28fc112e0 Check return value of waitpid. Don't evaluate status of children if waitpid
wasn't successful.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-05-05 13:15:49 +00:00
Henning Geinitz f01f026fc4 Check if sane_init was called before any other SANE function.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-04-21 12:56:54 +00:00
Henning Geinitz aea28d0298 Added missing include.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-04-19 15:28:39 +00:00
Henning Geinitz 798ff200da Added new test backend.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-04-13 19:07:49 +00:00