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.   \*/   /**/   #include "global.h" - RCSID("$Id: pike_types.c,v 1.188 2002/06/25 14:26:41 grubba Exp $"); + RCSID("$Id: pike_types.c,v 1.189 2002/07/03 09:05:56 grubba Exp $");   #include <ctype.h>   #include "svalue.h"   #include "pike_types.h"   #include "stralloc.h"   #include "stuff.h"   #include "array.h"   #include "program.h"   #include "constants.h"   #include "object.h"   #include "multiset.h"
pike.git/src/pike_types.c:1467:    if(min!=MIN_INT32 || max!=MAX_INT32)    {    char buffer[100];    sprintf(buffer,"(%ld..%ld)",(long)min,(long)max);    my_strcat(buffer);    }    break;    }    case T_FLOAT: my_strcat("float"); break;    case T_PROGRAM: +  if ((t->car->type == T_OBJECT) && +  (!t->car->cdr)) { +  my_strcat("program"); +  } else {    my_strcat("program(");    my_describe_type(t->car);    my_strcat(")"); -  +  }    break;    case T_OBJECT:    if (t->cdr)    {    char buffer[100];    sprintf(buffer,"object(%s %ld)",    t->car?"is":"implements",    (long)(ptrdiff_t)t->cdr);    my_strcat(buffer);    }else{