diff options
Diffstat (limited to 'src/select')
-rw-r--r-- | src/select/computed.c | 2 | ||||
-rw-r--r-- | src/select/hash.c | 4 | ||||
-rw-r--r-- | src/select/hash.h | 2 | ||||
-rw-r--r-- | src/select/select.c | 4 |
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; |