pike.git / src / fsort_template.h

version» Context lines:

pike.git/src/fsort_template.h: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.   */    - #include "stuff.h" + #include "pike_cpulib.h"      #ifdef SORT_BY_INDEX   /* Sort by index. */      #ifndef SWAP   #error SWAP required when SORT_BY_INDEX is defined.   #endif      #define PTYPE ptrdiff_t   
pike.git/src/fsort_template.h:35:   #define INC(X) X=STEP(X,1)   #define DEC(X) X=STEP(X,-1)   #define SIZE PTR_TO_INT(STEP((PTYPE)0,1))      #define PARENT(X) (((X)-1)>>1)   #define CHILD1(X) (((X)<<1)+1)      #define MKNAME(X) MKNAME2(ID,X)   #define MKNAME2(X,Y) PIKE_CONCAT(X,Y)    - static void MKNAME(_do_sort)(register PTYPE bas, -  register PTYPE last, + static void MKNAME(_do_sort)(PTYPE bas, +  PTYPE last,    int max_recursion   #ifdef EXTRA_ARGS    EXTRA_ARGS   #else   #define UNDEF_XARGS   #define XARGS   #endif    )   { -  register PTYPE a; -  register PTYPE b; +  PTYPE a; +  PTYPE b;   #ifdef EXTRA_LOCALS    EXTRA_LOCALS   #endif       while(bas < last)    {    a = STEP(bas,1);    if(a == last)    {    if( CMP(bas,last) > 0) SWAP(bas,last);
pike.git/src/fsort_template.h:170:    bas=b;    } else {    MKNAME(_do_sort)(b,last,max_recursion XARGS);    last=a;    }    }    }    }   }    - void ID(register PTYPE bas, -  register PTYPE last + void ID(PTYPE bas, +  PTYPE last   #ifdef EXTRA_ARGS    EXTRA_ARGS   #endif    )   {    MKNAME(_do_sort)(bas,last, my_log2( last-bas ) * 2 XARGS);;   }         #undef PTYPE