pike.git / src / array.c

version» Context lines:

pike.git/src/array.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: array.c,v 1.223 2009/02/12 21:06:27 srb Exp $ + || $Id: array.c,v 1.224 2009/11/28 13:13:30 mast Exp $   */      #include "global.h"   #include "svalue.h"   #include "array.h"   #include "object.h"   #include "las.h"   #include "stralloc.h"   #include "interpret.h"   #include "opcodes.h"
pike.git/src/array.c:987:    pop_stack();    return 0;    }    pop_stack();    }    }       return 2;   }    - INLINE int set_svalue_cmpfun(const struct svalue *a, const struct svalue *b) + int set_svalue_cmpfun(const struct svalue *a, const struct svalue *b)   {    int res, typediff = a->type - b->type;       if (!typediff)    {    switch(a->type)    {    case T_FLOAT:    if(a->u.float_number < b->u.float_number) return -1;    if(a->u.float_number > b->u.float_number) return 1;
pike.git/src/array.c:1083:    return DO_NOT_WARN((int)my_quick_strcmp(a->u.string, b->u.string));       default:    return set_svalue_cmpfun(a,b);    }    }else{    return a->type - b->type;    }   }    - static int alpha_svalue_cmpfun(const struct svalue *a, const struct svalue *b) + int alpha_svalue_cmpfun(const struct svalue *a, const struct svalue *b)   {    int res, typediff = a->type - b->type;       if (!typediff)    {    switch(a->type)    {    case T_INT:    if(a->u.integer < b->u.integer) return -1;    if(a->u.integer > b->u.integer) return 1;