summaryrefslogtreecommitdiff
path: root/src/select
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2009-02-14 11:54:37 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2009-02-14 11:54:37 +0000
commit7c3e35e586771fcdd0ebfe59f67f7dbc68ef8226 (patch)
tree6f8f57b3bac39f6fdb08de2e792266b3c82a263f /src/select
parent1233ce0a1a0e95966b8e1cf3bed01f7dcb63a360 (diff)
downloadlibcss-7c3e35e586771fcdd0ebfe59f67f7dbc68ef8226.tar.gz
libcss-7c3e35e586771fcdd0ebfe59f67f7dbc68ef8226.tar.bz2
Drop css_error_handler and rename css_alloc to css_allocator_fn
svn path=/trunk/libcss/; revision=6482
Diffstat (limited to 'src/select')
-rw-r--r--src/select/computed.c2
-rw-r--r--src/select/hash.c4
-rw-r--r--src/select/hash.h2
-rw-r--r--src/select/select.c4
4 files changed, 6 insertions, 6 deletions
diff --git a/src/select/computed.c b/src/select/computed.c
index 55036cf..3e01b9c 100644
--- a/src/select/computed.c
+++ b/src/select/computed.c
@@ -21,7 +21,7 @@
* CSS_NOMEM on memory exhaustion,
* CSS_BADPARM on bad parameters.
*/
-css_error css_computed_style_create(css_alloc alloc, void *pw,
+css_error css_computed_style_create(css_allocator_fn alloc, void *pw,
css_computed_style **result)
{
css_computed_style *s;
diff --git a/src/select/hash.c b/src/select/hash.c
index 7eee644..2a30a5f 100644
--- a/src/select/hash.c
+++ b/src/select/hash.c
@@ -22,7 +22,7 @@ struct css_selector_hash {
hash_entry *slots;
- css_alloc alloc;
+ css_allocator_fn alloc;
void *pw;
};
@@ -39,7 +39,7 @@ static inline uint32_t _hash_name(const parserutils_hash_entry *name);
* \param hash Pointer to location to receive result
* \return CSS_OK on success, appropriate error otherwise
*/
-css_error css_selector_hash_create(css_alloc alloc, void *pw,
+css_error css_selector_hash_create(css_allocator_fn alloc, void *pw,
css_selector_hash **hash)
{
css_selector_hash *h;
diff --git a/src/select/hash.h b/src/select/hash.h
index 8ca1653..2f388b7 100644
--- a/src/select/hash.h
+++ b/src/select/hash.h
@@ -18,7 +18,7 @@ struct css_selector;
typedef struct css_selector_hash css_selector_hash;
-css_error css_selector_hash_create(css_alloc alloc, void *pw,
+css_error css_selector_hash_create(css_allocator_fn alloc, void *pw,
css_selector_hash **hash);
css_error css_selector_hash_destroy(css_selector_hash *hash);
diff --git a/src/select/select.c b/src/select/select.c
index 19b544e..303ba68 100644
--- a/src/select/select.c
+++ b/src/select/select.c
@@ -29,7 +29,7 @@ struct css_select_ctx {
const css_stylesheet **sheets; /**< Array of sheets */
- css_alloc alloc; /**< Allocation routine */
+ css_allocator_fn alloc; /**< Allocation routine */
void *pw; /**< Client-specific private data */
};
@@ -231,7 +231,7 @@ static struct prop_table {
* \param result Pointer to location to receive created context
* \return CSS_OK on success, appropriate error otherwise.
*/
-css_error css_select_ctx_create(css_alloc alloc, void *pw,
+css_error css_select_ctx_create(css_allocator_fn alloc, void *pw,
css_select_ctx **result)
{
css_select_ctx *c;