[sane-devel] [SANE2 proposal] Error handling

Oliver Schwartz Oliver.Schwartz@gmx.de
Sat, 29 Nov 2003 18:31:44 +0100


=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

> 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 -Oliver
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/yNgJ/V6sbrmfIuMRApfTAJsFq09Ak7WtkjEdgjJ3izZlwm6PhACdG6v0
xyV0iYOc1KiY87WLodOQ/DI=3D
=3DbyQy
=2D----END PGP SIGNATURE-----