On Thu, 2002-12-12 at 06:58, mcbethh@agresor.ath.cx wrote:
> Hi.
>
> In squid 2.5.STABLE-1 is a bit of code in "#if DRIVER" condition. In
> file lib/rfc1035.c there is 'int main' function (in line 675) and three
> functions ('main' too) and structure in lib/splay.c (line 149). Can
> somebody tell me what that parts of code are for ? DRIVER define is not
> defined in config.h nor autoconf.h.
>
> Please CC me when replying this post - i'm not subscribed to this list.
Those are for building self-test programs. So, for instance, if you
build rfc1035.c with DRIVER defined, it gets a main(), and can be run.
When run it will perform self-tests.
Cheers,
Rob
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:19:00 MST