From f1f3155ef6f28fb8595920e5423336b39bba4ed0 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 14 Feb 2009 22:55:32 +0000 Subject: Port libcss to libwapcaplet. It passes the tests, perhaps we need more of them. Lifetimes of lwc_string objects really need attention before we can consider this finished. svn path=/trunk/libcss/; revision=6517 --- src/select/hash.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/select/hash.c') diff --git a/src/select/hash.c b/src/select/hash.c index 2a30a5f..f471861 100644 --- a/src/select/hash.c +++ b/src/select/hash.c @@ -29,7 +29,7 @@ struct css_selector_hash { static hash_entry empty_slot; static inline uint32_t _hash(const css_selector *sel); -static inline uint32_t _hash_name(const parserutils_hash_entry *name); +static inline uint32_t _hash_name(lwc_string *name); /** * Create a hash @@ -225,7 +225,7 @@ css_error css_selector_hash_remove(css_selector_hash *hash, * If nothing matches, CSS_OK will be returned and **matched == NULL */ css_error css_selector_hash_find(css_selector_hash *hash, - const parserutils_hash_entry *name, + lwc_string *name, const css_selector ***matched) { uint32_t index, mask; @@ -310,7 +310,7 @@ uint32_t _hash(const css_selector *sel) * \param name Name to hash * \return hash value */ -uint32_t _hash_name(const parserutils_hash_entry *name) +uint32_t _hash_name(lwc_string *name) { return (uint32_t) (((uintptr_t) name) & 0xffffffff); } -- cgit v1.2.3