diff options
author | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2009-02-14 22:55:32 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2009-02-14 22:55:32 +0000 |
commit | f1f3155ef6f28fb8595920e5423336b39bba4ed0 (patch) | |
tree | f7016ea23c888285ac255d06a42a7205ecca48fe /src/select/hash.c | |
parent | d0d70a21234ce34ab606c403cdb205897ace0cbb (diff) | |
download | libcss-f1f3155ef6f28fb8595920e5423336b39bba4ed0.tar.gz libcss-f1f3155ef6f28fb8595920e5423336b39bba4ed0.tar.bz2 |
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
Diffstat (limited to 'src/select/hash.c')
-rw-r--r-- | src/select/hash.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |