Branch: Tag:

2002-07-16

2002-07-16 09:23:18 by Martin Stjernholm <mast@lysator.liu.se>

Fixed a bug that caused encoding of p-code containing CacheStaticFrame
objects to fail. Made VariableChange._sprintf a bit more robust.

Rev: server/etc/modules/RXML.pmod/module.pmod:1.288

2:   //   // Created 1999-07-30 by Martin Stjernholm.   // - // $Id: module.pmod,v 1.287 2002/06/27 21:18:35 mast Exp $ + // $Id: module.pmod,v 1.288 2002/07/16 09:23:18 mast Exp $      // Kludge: Must use "RXML.refs" somewhere for the whole module to be   // loaded correctly.
2291:   #endif   }    - static class CacheStaticFrame (string scope_name) + /*static*/ class CacheStaticFrame (string scope_name)   // This class is used when tracking local scopes in frames that have   // been optimized away by FLAG_IS_CACHE_STATIC. It contains the scope   // name and is used as the key for Context.enter_scope and   // Context.leave_scope. -  + // + // Can't be static since encode_value must be able to index it.   {    constant is_RXML_CacheStaticFrame = 1;    constant is_RXML_encodable = 1;
6829:    string _sprintf()    {    string ind = ""; +  if (!mappingp (settings)) return "RXML.VariableChange()";    foreach (indices (settings), mixed encoded_var) {    mixed var;    if (stringp (encoded_var)) {