diff options
Diffstat (limited to 'src/parse')
-rw-r--r-- | src/parse/language.c | 4 | ||||
-rw-r--r-- | src/parse/language.h | 2 | ||||
-rw-r--r-- | src/parse/parse.c | 4 | ||||
-rw-r--r-- | src/parse/parse.h | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/parse/language.c b/src/parse/language.c index 01dd3fc..eab4162 100644 --- a/src/parse/language.c +++ b/src/parse/language.c @@ -43,7 +43,7 @@ struct css_language { /** Interned strings */ const parserutils_hash_entry *strings[LAST_KNOWN]; - css_alloc alloc; /**< Memory (de)allocation function */ + css_allocator_fn alloc; /**< Memory (de)allocation function */ void *pw; /**< Client's private data */ }; @@ -122,7 +122,7 @@ static inline bool tokenIsChar(const css_token *token, uint8_t c); * CSS_NOMEM on memory exhaustion */ css_error css_language_create(css_stylesheet *sheet, css_parser *parser, - css_alloc alloc, void *pw, void **language) + css_allocator_fn alloc, void *pw, void **language) { css_language *c; css_parser_optparams params; diff --git a/src/parse/language.h b/src/parse/language.h index 00317c6..cd7dd74 100644 --- a/src/parse/language.h +++ b/src/parse/language.h @@ -18,7 +18,7 @@ typedef struct css_language css_language; css_error css_language_create(css_stylesheet *sheet, css_parser *parser, - css_alloc alloc, void *pw, void **language); + css_allocator_fn alloc, void *pw, void **language); css_error css_language_destroy(css_language *language); #endif diff --git a/src/parse/parse.c b/src/parse/parse.c index 7ac64da..c1b8143 100644 --- a/src/parse/parse.c +++ b/src/parse/parse.c @@ -107,7 +107,7 @@ struct css_parser css_parser_event_handler event; /**< Client's event handler */ void *event_pw; /**< Client data for event handler */ - css_alloc alloc; /**< Memory (de)allocation function */ + css_allocator_fn alloc; /**< Memory (de)allocation function */ void *pw; /**< Client-specific private data */ }; @@ -187,7 +187,7 @@ static css_error (*parseFuncs[])(css_parser *parser) = { * CSS_NOMEM on memory exhaustion */ css_error css_parser_create(const char *charset, css_charset_source cs_source, - parserutils_hash *dictionary, css_alloc alloc, void *pw, + parserutils_hash *dictionary, css_allocator_fn alloc, void *pw, css_parser **parser) { css_parser *p; diff --git a/src/parse/parse.h b/src/parse/parse.h index 1533f7a..5dc1b18 100644 --- a/src/parse/parse.h +++ b/src/parse/parse.h @@ -57,7 +57,7 @@ typedef union css_parser_optparams { } css_parser_optparams; css_error css_parser_create(const char *charset, css_charset_source cs_source, - parserutils_hash *dict, css_alloc alloc, void *pw, + parserutils_hash *dict, css_allocator_fn alloc, void *pw, css_parser **parser); css_error css_parser_destroy(css_parser *parser); |