Roxen.git / server / etc / modules / RXML.pmod / utils.pmod

version» Context lines:

Roxen.git/server/etc/modules/RXML.pmod/utils.pmod:1:   //! Things that belong elsewhere but can't lie there for various silly   //! reasons. Everything here is considered internal and not part of   //! the RXML.pmod API.   //!   //! E.g. one reason is to avoid circular references in the parser   //! objects when the callbacks are defined in them.   //!   //! Created 2000-01-21 by Martin Stjernholm   //! - //! $Id: utils.pmod,v 1.34 2008/09/28 12:10:07 mast Exp $ + //! $Id: utils.pmod,v 1.35 2008/10/12 22:14:03 mast Exp $      constant is_RXML_encodable = 1;      #ifdef RXML_ENCODE_DEBUG   string _sprintf() {return "RXML.utils.pmod";}   #endif      constant short_format_length = 40;    -  + // Tell Pike.count_memory this is global. + constant pike_cycle_depth = 0; +    final string format_short (mixed val, void|int length)   // This one belongs somewhere else..   {    string res = "";    if (!length) length = short_format_length;       void format_val (mixed val)    {    if (arrayp (val) || multisetp (val)) {    string end;