[sane-devel] [SANE2 proposal] Error handling
Sat, 29 Nov 2003 18:31:44 +0100
=2D----BEGIN PGP SIGNED MESSAGE-----
> Personally I don't like using macros as they are not type safe, and
> can cause problems when porting to other languages.
> 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.
I favour this approach. I admit I don't know a lot about the network=20
implementation, but passing back a string from the error function=20
doesn't look like an unsolvable problem to me.
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
=2D----END PGP SIGNATURE-----