[sane-devel] sane.h and commented out definitions for next version SANE

Ilmārs Poikāns ilmars at delibero.lv
Mon Apr 26 17:45:44 UTC 2010


Hi,

As I understood code in sane.h commented out with "#if 0" is for next
version SANE. Isn't it better to have one switch like SANE_API_2 in
sane.h instead of two "#if 0"? See patch to current git master in
attachment (previous patch I sent was other way round). Then there is
flexibility to switch on/off new features with one #define in code or
by passing argument to gcc. WIth those changes old sane-frontends
compiles successfully (except you need to either add #define
SANE_API_2 1 to scanadf.c or pass additional argument when compiling
during make).

Best regards,
Ilmars Poikans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sane-header.patch
Type: text/x-patch
Size: 2834 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20100426/29610ff4/attachment.bin>


More information about the sane-devel mailing list