Zoran Vasiljevic wrote:
On Saturday 15 March 2003 19:28, you wrote:
Hmmm ... I added a bunch of typecasts to avoid warnings at compile time,
are you saying you had to add more or that you've taken some out? Most
were to cast int to size_t - the code uses size information as a signed
integer in some places (-1 as a flag) so simply changing the offending
vars to size_t caused new warnings to pop up.
I just had to add a couple.
OK ... it had compiled clean here but then again the version of gcc I
was using was relatively ancient, I haven't updated my laptop in the
three years I've had it.
I would probably take the approach of adding a new command to ns_cache,
using servPtr == NULL as a flag seems a bit of a kludge. Most of the
code works on a cache pointer with no other context information,
implementing a true global cache will just involve adding a new proc to
use a static tcl hashtable to map the name to a cache pointer. You
initializing that hashtable and an associated static lock the first time
the module is loaded, and only the first time ...
I see. Well, this is quite simple as well. I'll look into it and try to get
it in the Tcl API as transparent as possible.
Yes, it will be simple, if it weren't for the fact that the OpenACS
project's taking 100% of my time at the moment I would be more than glad
to finish up this last remaining piece.
--
Don Baccus
Portland, OR
http://donb.photo.net, http://birdnotes.net, http://openacs.org
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/