Permalink
Browse files

s/Parrot_hsh_hash_buffer/Parrot_hash_buffer/

  • Loading branch information...
1 parent 21a351e commit c114262d9860ae4cfa5ddc32138f4e97673cb2d8 Jimmy Zhuo committed Mar 6, 2011
Showing with 7 additions and 7 deletions.
  1. +2 −2 include/parrot/hash.h
  2. +3 −3 src/hash.c
  3. +1 −1 src/pmc/fixedintegerarray.pmc
  4. +1 −1 src/string/encoding/shared.c
View
4 include/parrot/hash.h
@@ -409,7 +409,7 @@ STRING* Parrot_hash_value_to_string(PARROT_INTERP,
PARROT_HOT
PARROT_WARN_UNUSED_RESULT
PARROT_PURE_FUNCTION
-size_t Parrot_hsh_hash_buffer(
+size_t Parrot_hash_buffer(
ARGIN_NULLOK(const unsigned char *buf),
size_t len,
size_t hashval);
@@ -520,7 +520,7 @@ size_t Parrot_hsh_hash_buffer(
#define ASSERT_ARGS_Parrot_hash_value_to_string __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp) \
, PARROT_ASSERT_ARG(hash))
-#define ASSERT_ARGS_Parrot_hsh_hash_buffer __attribute__unused__ int _ASSERT_ARGS_CHECK = (0)
+#define ASSERT_ARGS_Parrot_hash_buffer __attribute__unused__ int _ASSERT_ARGS_CHECK = (0)
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
/* HEADERIZER END: src/hash.c */
View
6 src/hash.c
@@ -218,7 +218,7 @@ static void parrot_mark_hash_values(PARROT_INTERP, ARGIN(Hash *hash))
/*
-=item C<size_t Parrot_hsh_hash_buffer(const unsigned char *buf, size_t len,
+=item C<size_t Parrot_hash_buffer(const unsigned char *buf, size_t len,
size_t hashval)>
Compute the hash of a buffer.
@@ -231,9 +231,9 @@ PARROT_HOT
PARROT_WARN_UNUSED_RESULT
PARROT_PURE_FUNCTION
size_t
-Parrot_hsh_hash_buffer(ARGIN_NULLOK(const unsigned char *buf), size_t len, size_t hashval)
+Parrot_hash_buffer(ARGIN_NULLOK(const unsigned char *buf), size_t len, size_t hashval)
{
- ASSERT_ARGS(Parrot_hsh_hash_buffer)
+ ASSERT_ARGS(Parrot_hash_buffer)
while (len--) {
hashval += hashval << 5;
hashval += *buf++;
View
2 src/pmc/fixedintegerarray.pmc
@@ -315,7 +315,7 @@ unecessary string temporaries.
INTVAL size;
GET_ATTR_int_array(INTERP, SELF, int_array);
GET_ATTR_size(INTERP, SELF, size);
- return Parrot_hsh_hash_buffer((const unsigned char *)int_array,
+ return Parrot_hash_buffer((const unsigned char *)int_array,
size * sizeof (INTVAL), INTERP->hash_seed);
}
View
2 src/string/encoding/shared.c
@@ -930,7 +930,7 @@ fixed8_hash(SHIM_INTERP, ARGIN(const STRING *src), size_t hashval)
DECL_CONST_CAST;
STRING * const s = PARROT_const_cast(STRING *, src);
const unsigned char *pos = (const unsigned char *)s->strstart;
- s->hashval = hashval = Parrot_hsh_hash_buffer(pos, s->strlen, hashval);
+ s->hashval = hashval = Parrot_hash_buffer(pos, s->strlen, hashval);
return hashval;
}

0 comments on commit c114262

Please sign in to comment.