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.515 2003/10/31 15:09:24 mast Exp $ + || $Id: builtin_functions.c,v 1.516 2003/11/07 18:06:30 nilsson Exp $   */      #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.515 2003/10/31 15:09:24 mast Exp $"); + RCSID("$Id: builtin_functions.c,v 1.516 2003/11/07 18:06:30 nilsson Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"   #include "constants.h"   #include "mapping.h"   #include "stralloc.h"
pike.git/src/builtin_functions.c:6455:    *! @returns    *! This function returns an copy of the array @[a] with all    *! duplicate values removed. The order of the values is kept in the    *! result; it's always the first of several equal elements that is    *! kept.    *!    *! @note    *! Elements are compared with @[`==]. They are also hashed (see    *! @[lfun::__hash] for further details if the array contains    *! objects). -  *! @seealso -  *! @[group_by] +     */   PMOD_EXPORT void f_uniq_array(INT32 args)   {    struct array *a, *b;    struct mapping *m;    struct svalue one;    int i, j=0,size=0;       get_all_args("uniq", args, "%a", &a);    push_mapping(m = allocate_mapping(a->size));