[sane-devel] [SANE2 proposal] Error handling

Oliver Schwartz Oliver.Schwartz at gmx.de
Sat Nov 29 17:31:44 GMT 2003


-----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 
implementation, but passing back a string from the error function 
doesn't look like an unsolvable problem to me.

- -Oliver
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/yNgJ/V6sbrmfIuMRApfTAJsFq09Ak7WtkjEdgjJ3izZlwm6PhACdG6v0
xyV0iYOc1KiY87WLodOQ/DI=
=byQy
-----END PGP SIGNATURE-----





More information about the sane-devel mailing list