pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.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: builtin_functions.c,v 1.573 2004/11/03 01:26:30 nilsson Exp $ + || $Id: builtin_functions.c,v 1.574 2004/11/14 03:42:21 aldem Exp $   */      #include "global.h"   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"
pike.git/src/builtin_functions.c:1976:    *!    *! Allocate an array of @[size] elements. If @[init] is specified    *! then each element is initialized by copying that value    *! recursively.    *!    *! @seealso    *! @[sizeof()], @[aggregate()], @[arrayp()]    */   PMOD_EXPORT void f_allocate(INT32 args)   { -  INT32 size; +  INT_TYPE size;    struct array *a;    struct svalue *init;       get_all_args("allocate", args, "%+.%*", &size, &init);       a=allocate_array(size);    if(args>1)    {    INT32 e;    push_array (a);