[sane-devel] [SANE2 proposal] Error handling
Julien BLACHE
jb@jblache.org
Sat, 29 Nov 2003 18:51:14 +0100
Andi McLean <andi.mclean@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@jblache.org>