Branch: Tag:

2002-11-29

2002-11-29 01:35:28 by Martin Nilsson <mani@lysator.liu.se>

Improved _sprintf

Rev: lib/modules/Protocols.pmod/HTTP.pmod/Query.pike:1.47
Rev: lib/modules/Protocols.pmod/HTTP.pmod/Server.pmod/Request.pike:1.13
Rev: lib/modules/Protocols.pmod/IRC.pmod/Client.pike:1.8
Rev: lib/modules/Protocols.pmod/LysKOM.pmod/ProtocolTypes.pmod:1.9
Rev: lib/modules/Protocols.pmod/LysKOM.pmod/Session.pike:1.32
Rev: lib/modules/Protocols.pmod/XMLRPC.pmod/module.pmod:1.20
Rev: lib/modules/SSL.pmod/sslfile.pike:1.50
Rev: lib/modules/Sql.pmod/Sql.pike:1.62
Rev: lib/modules/Sql.pmod/sql_result.pike:1.11
Rev: lib/modules/Standards.pmod/CIFF.pmod/File.pike:1.3
Rev: lib/modules/Standards.pmod/RDF.pike:1.8
Rev: lib/modules/Stdio.pmod/FakeFile.pike:1.4
Rev: lib/modules/Stdio.pmod/module.pmod:1.161
Rev: lib/modules/Thread.pmod:1.35

154: Inside #if constant(thread_create)
      static string _sprintf( int f )    { -  switch( f ) -  { -  case 't': -  return "Thread.Fifo"; -  case 'O': -  return sprintf( "%t(%d / %d)", this_object(), size(), read_tres ); +  return f=='O' && sprintf( "%O(%d / %d)", this_program, +  size(), read_tres );    }   } - }; +       //! @[Queue] implements a queue, or a pipeline. The main difference   //! between @[Queue] and @[Fifo] is that @[Queue]
233: Inside #if constant(thread_create)
      static string _sprintf( int f )    { -  switch( f ) -  { -  case 't': -  return "Thread.Queue"; -  case 'O': -  return sprintf( "%t(%d)", this_object(), size() ); +  return f=='O' && sprintf( "%O(%d)", this_program, size() );    }   } - } +          
400: Inside #if constant(thread_create)
   case 't':    return "Thread.Farm().Handler";    case 'O': -  return sprintf( "%t(%f / %d, %d)", total_time, max_time,handled ); +  return sprintf( "%t(%f / %d, %d)", this_object(), +  total_time, max_time, handled );    }    }    }
517: Inside #if constant(thread_create)
   return res;    }    -  +     static string _sprintf( int f )    { -  switch( f ) -  { -  case 't': -  return "Thread.Farm"; -  case 'O': -  return sprintf( "%t(/* %s */)", this_object, debug_status() ); +  return f=='O' && sprintf( "%O(/* %s */)", this_program, debug_status() );    } -  } +     -  -  +     static void create()    {    thread_create( dispatcher );