Branch: Tag:

2001-08-14

2001-08-14 18:35:44 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Support non-threaded operation.

Rev: server/base_server/roxenloader.pike:1.276
Rev: server/etc/modules/RXML.pmod/module.pmod:1.223

2:   //   // Created 1999-07-30 by Martin Stjernholm.   // - // $Id: module.pmod,v 1.222 2001/08/14 17:05:42 mast Exp $ + // $Id: module.pmod,v 1.223 2001/08/14 18:35:44 grubba Exp $      // Kludge: Must use "RXML.refs" somewhere for the whole module to be   // loaded correctly.
125:   #define HASH_INT2(m, n) (n < 65536 ? (m << 16) + n : sprintf ("%x,%x", m, n))      #undef RXML_CONTEXT - #if constant (thread_create) - # define RXML_CONTEXT (_cur_rxml_context->get()) - # define SET_RXML_CONTEXT(ctx) (_cur_rxml_context->set (ctx)) - #else - # define RXML_CONTEXT (_cur_rxml_context) - # define SET_RXML_CONTEXT(ctx) (_cur_rxml_context = (ctx)) - #endif + #define RXML_CONTEXT (_cur_rxml_context->get()) + #define SET_RXML_CONTEXT(ctx) (_cur_rxml_context->set (ctx))      // Use defines since typedefs doesn't work in soft casts yet.   #define SCOPE_TYPE mapping(string:mixed)|object(Scope)