[sane-devel] [SANE2 proposal] Error handling

Julien BLACHE jb at jblache.org
Sat Nov 29 17:51:14 GMT 2003


Andi McLean <andi.mclean at ntlworld.com> wrote:

Hi,

> Personally I don't like using macros as they are not type safe, and can
> cause problems when porting to other languages.

Fair point.

> If you want to save memory (4 bytes :) ) then use 
> typedef SANE_Status
> {
>   short code;
>   short backend-code;
> } SANE_Status;
> which is still 32 bits long.

Looks like I'm definitely going for something too complicated.

JB.

-- 
Julien BLACHE                                   <http://www.jblache.org> 
<jb at jblache.org> 




More information about the sane-devel mailing list