pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:218:    add_args = mknode(F_ARG_LIST, add_args,    mkapplynode(copy_node(CAR(n)), new_args));    new_args = NULL;    count = 0;    }    CDR(n)->parent = n;    return mkefuncallnode("`+", add_args);   }      #define MK_HASHMEM(NAME, TYPE) ATTRIBUTE((const)) \ -  static INLINE size_t NAME(const TYPE *str, ptrdiff_t len, ptrdiff_t maxn) \ +  static inline size_t NAME(const TYPE *str, ptrdiff_t len, ptrdiff_t maxn) \    { \    size_t ret,c; \    \    ret = len*92873743; \    \    len = MINIMUM(maxn,len); \    for(; len>=0; len--) \    { \    c=str++[0]; \    ret ^= ( ret << 4 ) + c ; \
pike.git/src/builtin_functions.c:284:       if(!Pike_sp[1-args].u.integer)    PIKE_ERROR("7.4::hash", "Modulo by zero.\n", Pike_sp, args);       i%=(unsigned INT32)Pike_sp[1-args].u.integer;    }    pop_n_elems(args);    push_int64(i);   }    - ATTRIBUTE((const)) static INLINE size_t hashstr(const unsigned char *str, ptrdiff_t maxn) + ATTRIBUTE((const)) static inline size_t hashstr(const unsigned char *str, ptrdiff_t maxn)   {    size_t ret,c;       if(!(ret=str++[0]))    return ret;    for(; maxn>=0; maxn--)    {    c=str++[0];    if(!c) break;    ret ^= ( ret << 4 ) + c ;
pike.git/src/builtin_functions.c:6448:   struct diff_magic_link_head   {    unsigned int depth;    struct diff_magic_link *link;   };      #define DMLPOOLSIZE 16384      static int dmls=0;    - static INLINE struct diff_magic_link_pool* + static inline struct diff_magic_link_pool*    dml_new_pool(struct diff_magic_link_pool **pools)   {    struct diff_magic_link_pool *new;       new=malloc(sizeof(struct diff_magic_link_pool)+    sizeof(struct diff_magic_link)*DMLPOOLSIZE);    if (!new) return NULL; /* fail */       new->firstfreenum=0;    new->firstfree=NULL;    new->next=*pools;    *pools=new;    return *pools;   }    - static INLINE struct diff_magic_link* + static inline struct diff_magic_link*    dml_new(struct diff_magic_link_pool **pools)   {    struct diff_magic_link *new;    struct diff_magic_link_pool *pool;       dmls++;       if ( *pools && (new=(*pools)->firstfree) )    {    (*pools)->firstfree=new->prev;
pike.git/src/builtin_functions.c:6496:       if ( (pool=dml_new_pool(pools)) )    {    pool->firstfreenum=1;    return pool->dml;    }       return NULL;   }    - static INLINE void dml_free_pools(struct diff_magic_link_pool *pools) + static inline void dml_free_pools(struct diff_magic_link_pool *pools)   {    struct diff_magic_link_pool *pool;       while (pools)    {    pool=pools->next;    free(pools);    pools=pool;    }   }    - static INLINE void dml_delete(struct diff_magic_link_pool *pools, + static inline void dml_delete(struct diff_magic_link_pool *pools,    struct diff_magic_link *dml)   {    struct diff_magic_link *prev;    while(1)    {    prev=dml->prev;    dmls--;    dml->prev=pools->firstfree;    pools->firstfree=dml;    if (prev && !--prev->refs)    dml=prev;    else    break;    }   }    - static INLINE int diff_ponder_stack(int x, + static inline int diff_ponder_stack(int x,    struct diff_magic_link **dml,    int top)   {    int middle,a,b;       a=0;    b=top;    while (b>a)    {    middle=(a+b)/2;    if (dml[middle]->x<x) a=middle+1;    else if (dml[middle]->x>x) b=middle;    else return middle;    }    if (a<top && dml[a]->x<x) a++;    return a;   }    - static INLINE int diff_ponder_array(int x, + static inline int diff_ponder_array(int x,    struct svalue *arr,    int top)   {    int middle,a,b;       a=0;    b=top;    while (b>a)    {    middle=(a+b)/2;