summaryrefslogtreecommitdiff
path: root/include/hubbub
diff options
context:
space:
mode:
Diffstat (limited to 'include/hubbub')
-rw-r--r--include/hubbub/functypes.h12
-rw-r--r--include/hubbub/parser.h2
2 files changed, 1 insertions, 13 deletions
diff --git a/include/hubbub/functypes.h b/include/hubbub/functypes.h
index 1b65e32..e7cbe6e 100644
--- a/include/hubbub/functypes.h
+++ b/include/hubbub/functypes.h
@@ -20,18 +20,6 @@ extern "C"
#include <hubbub/types.h>
/**
- * Type of allocation function for hubbub
- *
- * The semantics of this function are the same as for realloc().
- *
- * \param ptr Pointer to object to reallocate, or NULL for a new allocation
- * \param size Required length in bytes, or zero to free ::ptr
- * \param pw Pointer to client data
- * \return Pointer to allocated object, or NULL on failure
- */
-typedef void *(*hubbub_allocator_fn)(void *ptr, size_t size, void *pw);
-
-/**
* Type of token handling function
*
* \param token Pointer to token to handle
diff --git a/include/hubbub/parser.h b/include/hubbub/parser.h
index cd5d6b5..bdc5e20 100644
--- a/include/hubbub/parser.h
+++ b/include/hubbub/parser.h
@@ -65,7 +65,7 @@ typedef union hubbub_parser_optparams {
/* Create a hubbub parser */
hubbub_error hubbub_parser_create(const char *enc, bool fix_enc,
- hubbub_allocator_fn alloc, void *pw, hubbub_parser **parser);
+ hubbub_parser **parser);
/* Destroy a hubbub parser */
hubbub_error hubbub_parser_destroy(hubbub_parser *parser);