pike.git / src / pike_types.c

version» Context lines:

pike.git/src/pike_types.c:1:   /*   || 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: pike_types.c,v 1.269 2007/03/29 15:53:55 grubba Exp $ + || $Id: pike_types.c,v 1.270 2007/03/30 12:47:25 grubba Exp $   */      #include "global.h"   #include <ctype.h>   #include "svalue.h"   #include "pike_types.h"   #include "stralloc.h"   #include "stuff.h"   #include "array.h"   #include "program.h"
pike.git/src/pike_types.c:1906:    my_strcat("program");    } else {    my_strcat("program(");    my_describe_type(t->car);    my_strcat(")");    }    break;    case T_OBJECT:    if (t->cdr)    { +  struct svalue s; +  if (t->car) { +  my_strcat("object(is "); +  } else { +  my_strcat("object(implements "); +  } +  if ((s.u.program = id_to_program(CDR_TO_INT(t)))) { +  s.type = T_PROGRAM; +  s.subtype = 0; +  describe_svalue(&s, 0, NULL); +  my_strcat(")"); +  } else {    char buffer[100]; -  sprintf(buffer,"object(%s %"PRINTPTRDIFFT"d)", -  t->car?"is":"implements", +  sprintf(buffer,"%"PRINTPTRDIFFT"d)",    CDR_TO_INT(t));    my_strcat(buffer); -  +  }    }else{    my_strcat("object");    }    break;       case T_STRING:    {    INT32 bitwidth=CAR_TO_INT(t);    my_strcat("string");    if (bitwidth != 32) {