pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:8:   #include "pike_macros.h"   #include "dynamic_buffer.h"   #include "pike_macros.h"   #include "pike_memory.h"   #include "error.h"   #include "gc.h"   #include "stuff.h"      #include <ctype.h>    - RCSID("$Id: stralloc.c,v 1.53 1999/06/30 23:43:47 hubbe Exp $"); + RCSID("$Id: stralloc.c,v 1.54 2000/03/02 21:25:11 hubbe Exp $");      #define BEGIN_HASH_SIZE 997   #define MAX_AVG_LINK_LENGTH 3   #define HASH_PREFIX 64      unsigned INT32 htable_size=0;   static unsigned int hashprimes_entry=0;   static struct pike_string **base_table=0;   static unsigned INT32 full_hash_value;   unsigned INT32 num_strings=0;
pike.git/src/stralloc.c:145:   CONVERT(2,1)         int generic_compare_strings(const void *a,int alen, int asize,    const void *b,int blen, int bsize)   {   #define TWO_SIZES(X,Y) (((X)<<2)+(Y))    if(alen != blen) return 0;    if(asize==bsize)    { -  return !MEMCPY(a,b,alen<<asize); +  return !MEMCMP(a,b,alen<<asize);    }else{    INT32 pos;    for(pos=0;pos< alen ;pos++)    if(generic_extract(a,asize,pos) != generic_extract(b,bsize,pos))    return 0;    return 1;    }   }