pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:1:   // -*- Pike -*-   //   // Master Control Program for Pike.   //   // This file is part of Pike. For copyright information see COPYRIGHT.   // Pike is distributed under GPL, LGPL and MPL. See the file COPYING   // for more information.   // - // $Id: master.pike.in,v 1.458 2008/09/14 12:19:36 grubba Exp $ + // $Id: master.pike.in,v 1.459 2008/09/25 11:42:42 mast Exp $      #pike __REAL_VERSION__   //#pragma strict_types      // Some programs destroys character pairs beginning with the currency   // symbol when running in chinese locale.   #if "ยค/" != "\244/"   #error "master.pike.in is corrupted."   #endif   
pike.git/lib/master.pike.in:4062:    identify_stack += indices([mapping]stuff) + values([mapping]stuff);    }    }    }       string describe_string (string m, int maxlen)    {    canclip++;    if(sizeof(m) < maxlen)    { -  string t = sprintf("%O", m); +  string t = sprintf("%q", m);    if (sizeof(t) < (maxlen + 2))    return t;    t = 0;    }    clipped++;    if(maxlen>10) -  return sprintf("%O+[%d]",m[..maxlen-5],sizeof(m)-(maxlen-5)); +  return sprintf("%q+[%d]",m[..maxlen-5],sizeof(m)-(maxlen-5));       return "string["+sizeof(m)+"]";    }       string describe_array (array m, int maxlen)    {    if(!sizeof(m)) return "({})";    else {    if(maxlen<5)    {