[sane-devel] In search of a master

Major A andras at users.sourceforge.net
Fri Dec 19 08:39:50 GMT 2003


> Does anyone know which standard header file to include for size_t?
> Shouldn't that be included in sanei_usb.h evene if a backend includes
> it anyway?

I think stdlib.h is sufficient (it defines malloc(size_t)). That's all
I can find quickly in the glibc docs, don't have K&R at hand at the
moment.

Even so, I think a better header scheme is called for. Since the
sanei_* headers are parts of the libraries that backends build upon, I
think it would be better to make a single sane.h that include
everything that is needed. The libraries can still include the headers
separately, but backends only have to use a single include to get
everything right.

Please comment.

  Andras

===========================================================================
Major Andras
    e-mail: andras at users.sourceforge.net
    www:    http://andras.webhop.org/
===========================================================================




More information about the sane-devel mailing list