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.488 2003/04/27 17:52:41 mast Exp $ + || $Id: builtin_functions.c,v 1.489 2003/04/27 20:12:11 mast Exp $   */      #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.488 2003/04/27 17:52:41 mast Exp $"); + RCSID("$Id: builtin_functions.c,v 1.489 2003/04/27 20:12:11 mast 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:3812:    if(args > 1)    {    order = stable_sort_array_destructively(a);    for(e=1;e<args;e++) order_array(Pike_sp[e-args].u.array,order);    pop_n_elems(args-1);    free((char *)order);    }    else {    /* If there are only simple types in the array we can use unstable    * sorting. */ -  array_fix_bad_type_field (a); +  array_fix_unfinished_type_field (a);    if (a->type_field & BIT_COMPLEX)    free (stable_sort_array_destructively (a));    else    sort_array_destructively (a);    }   }      /*! @decl array rows(mixed data, array index)    *!    *! Select a set of rows from an array.