[AOLSERVER] Question about extending AOLserver in C

2001-08-29 Thread Michael Roberts

So I'm studying set.c and tclset.c, because the ns_set is probably the extension
I use the most and I figure it's Done Right -- but I can't for the life of me
see how the connection-local interpreter knows to call Ns_TclFreeSet.  Where is
the proper cleanup function assigned to the interpreter?  I'm so confused

Michael



Re: [AOLSERVER] Question about extending AOLserver in C

2001-08-29 Thread Rob Mayoff

+-- On Aug 23, Michael Roberts said:
> So I'm studying set.c and tclset.c, because the ns_set is probably the
> extension I use the most and I figure it's Done Right -- but I can't
> for the life of me see how the connection-local interpreter knows to
> call Ns_TclFreeSet. Where is the proper cleanup function assigned to
> the interpreter? I'm so confused

If you execute "ns_set free $setid", then NsTclSetCmd will call
Ns_TclFreeSet.

Sets that you don't delete this way will be deleted at interpreter
cleanup time by FreeSets.