Branch: Tag:

2004-01-27

2004-01-27 18:35:41 by Martin Stjernholm <mast@lysator.liu.se>

Fixed bug in handling of subvariables (foo.bar.gnu etc) in
Context.set_var and delete_var. That code has probably not been used
much..

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

2:   //   // Created 1999-07-30 by Martin Stjernholm.   // - // $Id: module.pmod,v 1.321 2004/01/27 18:30:36 mast Exp $ + // $Id: module.pmod,v 1.322 2004/01/27 18:35:41 mast Exp $      // Kludge: Must use "RXML.refs" somewhere for the whole module to be   // loaded correctly.
1672:    else    rec_chgs[-1][encode_value_canonic (({scope_name}) + var)] = val;    -  array(string|int) path = var[..sizeof (var) - 1]; +  array(string|int) path = var[..sizeof (var) - 2];    vars = rxml_index (vars, path, scope_name, this_object());    scope_name += "." + (array(string)) path * ".";    index = var[-1];
1764:    else    rec_chgs[-1][encode_value_canonic (({scope_name}) + var)] = nil;    -  array(string|int) path = var[..sizeof (var) - 1]; +  array(string|int) path = var[..sizeof (var) - 2];    vars = rxml_index (vars, path, scope_name, this_object());    scope_name += "." + (array(string)) path * ".";    var = var[-1];