[sane-devel] typedef int SANE_Word, etc

2008-12-04 Thread ABC
SANE_Hi! 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.

[sane-devel] typedef int SANE_Word, etc

2008-12-03 Thread ABC
Btw, what the point of having these typedefs? (Besides obscurity and advertising of course). typedef unsigned char SANE_Byte; typedef int SANE_Word; typedef SANE_Word SANE_Bool; typedef SANE_Word SANE_Int; typedef char SANE_Char; typedef SANE_Char *SANE_String; typedef const SANE_Char

[sane-devel] typedef int SANE_Word, etc

2008-12-03 Thread Alessandro Zummo
On Wed, 3 Dec 2008 04:53:24 +0300 ABC abc at telekom.ru wrote: Btw, what the point of having these typedefs? (Besides obscurity and advertising of course). typedef unsigned char SANE_Byte; typedef int SANE_Word; typedef SANE_Word SANE_Bool; typedef SANE_Word SANE_Int; typedef

[sane-devel] typedef int SANE_Word, etc

2008-12-03 Thread Julien BLACHE
Alessandro Zummo azummo-lists at towertech.it wrote: Hi, 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.

[sane-devel] typedef int SANE_Word, etc

2008-12-03 Thread Alessandro Zummo
On Wed, 03 Dec 2008 21:20:58 +0100 Julien BLACHE jb at jblache.org wrote: Alessandro Zummo azummo-lists at towertech.it wrote: Hi, 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

[sane-devel] typedef int SANE_Word, etc

2008-12-03 Thread Julien BLACHE
ABC abc at telekom.ru wrote: Hi, For example typedef int SANE_Word; It's is int forever on all platforms. And we already have int for that. Although that's true on all the platforms SANE runs now, it isn't true for all platforms. Be it for that type or another one. void *SANE_Handle is