pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.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: encode.c,v 1.279 2008/06/11 18:18:39 grubba Exp $ + || $Id: encode.c,v 1.280 2008/06/24 19:41:52 grubba Exp $   */      #include "global.h"   #include "stralloc.h"   #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "interpret.h"   #include "svalue.h"   #include "mapping.h"
pike.git/src/encode.c:793:    free((char *) order);    }       code_entry(TAG_MAPPING, Pike_sp[-2].u.array->size,data);    for(i=0; i<Pike_sp[-2].u.array->size; i++)    {    encode_value2(ITEM(Pike_sp[-2].u.array)+i, data, 0); /* indices */    encode_value2(ITEM(Pike_sp[-1].u.array)+i, data, 0); /* values */    }    pop_n_elems(2); +  /* FIXME: What about flags and generation_cnt? */    break;       case T_MULTISET: {    struct multiset *l = val->u.multiset;       if (multiset_indval (l) || multiset_get_cmp_less (l)->type != T_INT)    Pike_error ("FIXME: Encoding of multisets with values and/or "    "custom sort function not yet implemented.\n");    else {    /* Encode valueless multisets without compare functions in a