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.111 2000/11/08 20:03:45 hubbe Exp $"); + RCSID("$Id: mapping.c,v 1.112 2000/12/01 08:09:50 hubbe Exp $");   #include "main.h"   #include "object.h"   #include "mapping.h"   #include "svalue.h"   #include "array.h"   #include "pike_macros.h" - #include "error.h" + #include "pike_error.h"   #include "pike_memory.h"   #include "dynamic_buffer.h"   #include "interpret.h"   #include "las.h"   #include "gc.h"   #include "stralloc.h"   #include "security.h"   #include "block_alloc.h"   #include "opcodes.h"   
pike.git/src/mapping.c:1680:    }   }      PMOD_EXPORT void f_aggregate_mapping(INT32 args)   {    INT32 e;    struct keypair *k;    struct mapping *m;       if(args & 1) -  error("Uneven number of arguments to aggregate_mapping.\n"); +  Pike_error("Uneven number of arguments to aggregate_mapping.\n");       m=allocate_mapping(MAP_SLOTS(args / 2));       for(e=-args;e<0;e+=2) mapping_insert(m, sp+e, sp+e+1);    pop_n_elems(args);   #ifdef PIKE_DEBUG    if(d_flag)    check_mapping(m);   #endif    push_mapping(m);