diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-11-08 23:08:30 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-11-08 23:08:30 +0000 |
commit | e53a5011237467c73c72b338570e4a455d2d1ef6 (patch) | |
tree | 1f580e130a9985f98c0fd6efb88f2c1071b1a7ca /include/parserutils/utils/stack.h | |
parent | 7836409aade83179b43dd7ad0699d9edf68aad90 (diff) | |
download | libparserutils-e53a5011237467c73c72b338570e4a455d2d1ef6.tar.gz libparserutils-e53a5011237467c73c72b338570e4a455d2d1ef6.tar.bz2 |
Return errors from constructors and destructors.
svn path=/trunk/libparserutils/; revision=5652
Diffstat (limited to 'include/parserutils/utils/stack.h')
-rw-r--r-- | include/parserutils/utils/stack.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/parserutils/utils/stack.h b/include/parserutils/utils/stack.h index e9fad5a..26262eb 100644 --- a/include/parserutils/utils/stack.h +++ b/include/parserutils/utils/stack.h @@ -16,9 +16,9 @@ struct parserutils_stack; typedef struct parserutils_stack parserutils_stack; -parserutils_stack *parserutils_stack_create(size_t item_size, size_t chunk_size, - parserutils_alloc alloc, void *pw); -void parserutils_stack_destroy(parserutils_stack *stack); +parserutils_error parserutils_stack_create(size_t item_size, size_t chunk_size, + parserutils_alloc alloc, void *pw, parserutils_stack **stack); +parserutils_error parserutils_stack_destroy(parserutils_stack *stack); parserutils_error parserutils_stack_push(parserutils_stack *stack, void *item); parserutils_error parserutils_stack_pop(parserutils_stack *stack, void *item); |