pike.git / src / mapping.c

version» Context lines:

pike.git/src/mapping.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   /**/   #include "global.h" - RCSID("$Id: mapping.c,v 1.119 2001/03/28 10:02:41 hubbe Exp $"); + RCSID("$Id: mapping.c,v 1.120 2001/04/14 11:22:33 jhs 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:1653:    s.u.mapping=m;    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. An alternative and more preferrable -  *! syntax is: -  *! @code{([ key1:val1, key2:val2, ... ])@} +  *! creates a mapping of those pairs. Generally, the mapping literal +  *! syntax is handier: @code{([ key1:val1, key2:val2, ... ])@}    *!    *! @seealso    *! @[sizeof()], @[mappingp()], @[mkmapping()]    */   PMOD_EXPORT void f_aggregate_mapping(INT32 args)   {    INT32 e;    struct keypair *k;    struct mapping *m;