"M.-A. Lemburg" <mal@lemburg.com> writes: > The problem is that I can't change the library all that much, > e.g. add some context parameter to all calls, so I have to use > some other technique for accessing the call-specific variables. I recommend to use thread-local variables. Regards, Martin