pike.git / src / mapping.c

version» Context lines:

pike.git/src/mapping.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: mapping.c,v 1.153 2002/10/27 16:35:05 nilsson Exp $ + || $Id: mapping.c,v 1.154 2002/10/28 13:03:16 nilsson Exp $   */      #include "global.h" - RCSID("$Id: mapping.c,v 1.153 2002/10/27 16:35:05 nilsson Exp $"); + RCSID("$Id: mapping.c,v 1.154 2002/10/28 13:03:16 nilsson Exp $");   #include "main.h"   #include "object.h"   #include "mapping.h"   #include "svalue.h"   #include "array.h"   #include "pike_macros.h"   #include "pike_error.h"   #include "pike_memory.h"   #include "dynamic_buffer.h"   #include "interpret.h"
pike.git/src/mapping.c:1667:       if (m->data->size == 1) {    my_strcat("([ /* 1 element */\n");    } else {    sprintf(buf, "([ /* %ld elements */\n", (long)m->data->size);    my_strcat(buf);    }       /* no mapping locking required (I hope) */    NEW_MAPPING_LOOP(m->data) { -  struct svalue *tmp; +     if (notfirst) my_strcat(",\n");    else notfirst = 1;    for(d = 0; d < indent; d++)    my_putchar(' ');    describe_svalue(&k->ind, indent+2, &doing);    my_putchar(':');    describe_svalue(&k->val, indent+2, &doing);    }       my_putchar('\n');