pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:519:    }    UNLOCK_BUCKET(hval);    return 0; /* not found */   }      struct pike_string *binary_findstring(const char *foo, ptrdiff_t l)   {    return internal_findstring(foo, l, 0, StrHash(foo,l));   }    + struct pike_string *binary_findstring_shift(const void *foo, enum size_shift shift, ptrdiff_t l) + { +  return internal_findstring(foo, l, shift, low_do_hash(foo,l,shift)); + } +    struct pike_string *findstring(const char *foo)   {    return binary_findstring(foo, strlen(foo));   }      /*    * find a string that is already shared and move it to the head    * of that list in the hastable    */   static struct pike_string *propagate_shared_string(const struct pike_string *s,