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.164 2003/03/30 16:15:09 mast Exp $ + || $Id: mapping.c,v 1.165 2003/04/01 18:10:21 nilsson Exp $   */      #include "global.h" - RCSID("$Id: mapping.c,v 1.164 2003/03/30 16:15:09 mast Exp $"); + RCSID("$Id: mapping.c,v 1.165 2003/04/01 18:10:21 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:1796:    return mkconstantsvaluenode(&s);    }   }      /*! @decl mapping aggregate_mapping(mixed ... elems)    *!    *! Construct a mapping.    *!    *! Groups the arguments together two and two in key-index pairs and    *! creates a mapping of those pairs. Generally, the mapping literal -  *! syntax is handier: @code{([ key1:val1, key2:val2, ... ])@} +  *! syntax is handier: @expr{([ key1:val1, key2:val2, ... ])@}    *!    *! @seealso    *! @[sizeof()], @[mappingp()], @[mkmapping()]    */   PMOD_EXPORT void f_aggregate_mapping(INT32 args)   {    INT32 e;    struct mapping *m;       if(args & 1)