[sane-devel] In search of a master

Henning Meier-Geinitz henning@meier-geinitz.de
Fri, 19 Dec 2003 20:17:25 +0100


Hi,

On Fri, Dec 19, 2003 at 08:39:50AM +0000, Major A wrote:
> > 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.

Ok.

> 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.

sane.h should only contain statndard stuff, nothing internal.

sanei_backend.h is used for stuff like this.

> The libraries can still include the headers separately, but backends
> only have to use a single include to get everything right. 

I don't mind adding #includes used by several backends to
sanei_backend.h.

Bye,
  Henning