pike.git / src / array.c

version» Context lines:

pike.git/src/array.c:16:   #include "pike_types.h"   #include "fsort.h"   #include "builtin_functions.h"   #include "pike_memory.h"   #include "gc.h"   #include "main.h"   #include "security.h"   #include "stuff.h"   #include "bignum.h"    - RCSID("$Id: array.c,v 1.90 2000/10/10 01:20:37 hubbe Exp $"); + RCSID("$Id: array.c,v 1.91 2000/10/19 13:58:45 grubba Exp $");      PMOD_EXPORT struct array empty_array=   {    1, /* Never free */   #ifdef PIKE_SECURITY    0,   #endif    &empty_array, /* Next */    &empty_array, /* previous (circular) */    0, /* Size = 0 */
pike.git/src/array.c:1519:    for(e=0;p;e++,p=p->next)    {    if(p->pointer_a == (void *)a)    {    sprintf(buf,"@%ld",(long)e);    my_strcat(buf);    return;    }    }    -  sprintf(buf, a->size == 1 ? "({ /* %ld element */\n" : -  "({ /* %ld elements */\n", -  (long)a->size); +  if (a->size == 1) { +  sprintf(buf, "({ /* 1 element */\n"); +  } else { +  sprintf(buf, "({ /* %ld elements */\n", (long)a->size); +  }    my_strcat(buf);    describe_array_low(a,&doing,indent);    my_putchar('\n');    for(e=2; e<indent; e++) my_putchar(' ');    my_strcat("})");   }      PMOD_EXPORT struct array *aggregate_array(INT32 args)   {    struct array *a;