Re: cbdata doco

From: Robert Collins <robert.collins@dont-contact.us>
Date: Sat, 6 Jan 2001 13:44:38 +1100

Thanks. A question if you would...

scopewise, if I have two datatypes of the same name, both invisible to the other

global
   module1
      datatype (20bytes in size)
   module2
      datatype (32 bytes in size)

and they both get registered via CBDATA_TYPE... will there be problems?

Rob

----- Original Message -----
From: "Henrik Nordstrom" <hno@hem.passagen.se>
To: "Robert Collins" <robert.collins@itdomain.com.au>
Cc: <squid-dev@squid-cache.org>
Sent: Saturday, January 06, 2001 11:36 AM
Subject: Re: cbdata doco

> The preferred way is the dynamic one, except possibly for basic core
> Squid structures.
>
> Have added documentation for CBDATA_TYPE and CBDATA_INIT_TYPE..
>
> For a summary of what has changed, see:
>
> http://www.squid-cache.org/cgi-bin/cvsweb.cgi/squid/doc/Programming-Guide/prog-guide.sgml.diff?r1=1.29&r2=1.31&f=h
>
> /Henrik
>
>
> Robert Collins wrote:
> >
> > Well,
> > It wasn't quite enough: What I was looking for in terms of doco on the *new stuff* is something like the below (which I've
> > puzzled out - I may have it wrong)
> >
> > ===
> > To use cbdata now, one must
> >
> > initalise the cbdatatype by either
> > *add a entry to the cbdata_type enum,
> > *add a call to CREATE_CBDATA in cbdataInit
> >
> > or for dynamically registered types.
> > * insert the macro CBDATA_TYPE(type) in a source file to register the type.
> > * call CBDATA_INIT_TYPE(type) in a source file to initialise the type.
> >
> > >From then on , use CBDATA_ALLOC rather than MEM_ALLOC + cbDataAdd.
> > ===
>
>
Received on Fri Jan 05 2001 - 19:33:46 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:11 MST