pike.git / src / array.c

version» Context lines:

pike.git/src/array.c:1119:       case T_OBJECT:    case T_FUNCTION:    return obj_or_func_cmp (a, b);       default:    if(a->u.refs < b->u.refs) return -1;    if(a->u.refs > b->u.refs) return 1;    return 0;    } -  /* NOT REACHED */ +    }      static int switch_svalue_cmpfun(const struct svalue *a, const struct svalue *b)   {    int typediff = TYPEOF(*a) - TYPEOF(*b);    if (typediff)    return typediff;       switch(TYPEOF(*a))    {
pike.git/src/array.c:1152:       case T_OBJECT:    case T_FUNCTION:    return obj_or_func_cmp (a, b);       default:    if(a->u.refs < b->u.refs) return -1;    if(a->u.refs > b->u.refs) return 1;    return 0;    } -  /* NOT REACHED */ +    }      int alpha_svalue_cmpfun(const struct svalue *a, const struct svalue *b)   {    int typediff = TYPEOF(*a) - TYPEOF(*b);    if (typediff) {    if (TYPEOF(*a) == T_OBJECT || TYPEOF(*b) == T_OBJECT) {    int res = lfun_cmp (a, b);    if (res != -CMPFUN_UNORDERED) return res;    }
pike.git/src/array.c:1225:       case T_OBJECT:    case T_FUNCTION:    return obj_or_func_cmp (a, b);       default:    if(a->u.ptr < b->u.ptr) return -1;    if(a->u.ptr > b->u.ptr) return 1;    return 0;    } -  /* NOT REACHED */ +    }      #define CMP(X,Y) alpha_svalue_cmpfun(X,Y)   #define TYPE struct svalue   #define ID low_sort_svalues   #include "fsort_template.h"   #undef CMP   #undef TYPE   #undef ID