[sane-devel] typedef int SANE_Word, etc
abc at telekom.ru
Wed Dec 3 21:26:19 UTC 2008
On Wed, Dec 03, 2008 at 09:34:29PM +0100, Alessandro Zummo wrote:
> On Wed, 03 Dec 2008 21:20:58 +0100
> Julien BLACHE <jb at jblache.org> wrote:
> > Alessandro Zummo <azummo-lists at towertech.it> wrote:
> > > Now that we have ANSI C types for everything,
> > > it might be useful to switch.
> > Firstly, that's ISO C, and secondly, in a version of the norm that
> > isn't supported by the standard compiler on some of the UNIX platforms
> > supported by SANE.
> I beg your pardon.
> I at least hope there is still someone who is using SANE on
> those platforms.
Unfortunately I can not understant 'secondly' point, is it something
about portability? Then I ask how nine typedefs to standart types,
without any #ifdefs around or etc., could add any portability?
> > typedef int SANE_Word;
It's is int forever on all platforms. And we already have int for that.
> void *SANE_Handle is used to pass an opaque
> pointer and should be retained.
Well, it hides its pointer nature.
More information about the sane-devel