diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2010-12-04 13:28:52 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2010-12-04 13:28:52 +0000 |
commit | 7af44e1552d41fc04ba5243e619a03c222c07c9f (patch) | |
tree | 181f09ca54164b31f8f67b9086041d25618dbc0e /src | |
parent | 3541ce862727a967c92f7f08e3c7da16522f89ef (diff) | |
download | libcss-7af44e1552d41fc04ba5243e619a03c222c07c9f.tar.gz libcss-7af44e1552d41fc04ba5243e619a03c222c07c9f.tar.bz2 |
Remove libcss_initialise/finalise.
Fix testsuite to compile (it passes, too)
svn path=/trunk/libcss/; revision=10955
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 2 | ||||
-rw-r--r-- | src/libcss.c | 50 |
2 files changed, 1 insertions, 51 deletions
diff --git a/src/Makefile b/src/Makefile index 5e17355..fbeaa12 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,4 +1,4 @@ # Sources -DIR_SOURCES := libcss.c stylesheet.c +DIR_SOURCES := stylesheet.c include build/makefiles/Makefile.subdir diff --git a/src/libcss.c b/src/libcss.c deleted file mode 100644 index aeb1874..0000000 --- a/src/libcss.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of LibCSS. - * Licensed under the MIT License, - * http://www.opensource.org/licenses/mit-license.php - * Copyright 2007 John-Mark Bell <jmb@netsurf-browser.org> - */ - -#include <parserutils/parserutils.h> - -#include <libcss/libcss.h> - -#include "utils/parserutilserror.h" - -/** - * Initialise the CSS library for use. - * - * This _must_ be called before using any LibCSS functions - * - * \param aliases_file Pointer to name of file containing encoding alias data - * \param alloc Pointer to (de)allocation function - * \param pw Pointer to client-specific private data (may be NULL) - * \return CSS_OK on success, applicable error otherwise. - */ -css_error css_initialise(const char *aliases_file, - css_allocator_fn alloc, void *pw) -{ - if (aliases_file == NULL || alloc == NULL) - return CSS_BADPARM; - - return css_error_from_parserutils_error( - parserutils_initialise(aliases_file, alloc, pw)); -} - -/** - * Clean up after LibCSS - * - * \param alloc Pointer to (de)allocation function - * \param pw Pointer to client-specific private data (may be NULL) - * \return CSS_OK on success, applicable error otherwise. - */ -css_error css_finalise(css_allocator_fn alloc, void *pw) -{ - if (alloc == NULL) - return CSS_BADPARM; - - return css_error_from_parserutils_error( - parserutils_finalise(alloc, pw)); -} - - |