summaryrefslogtreecommitdiff
path: root/test/testutils/load.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2010-12-04 23:12:24 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2010-12-04 23:12:24 +0000
commit64e9feb8d0e62a4428d1db7a18cf00fdc2917252 (patch)
tree20fde4d3d12c66ee9520cdb2f7ed6a76fb1ca48f /test/testutils/load.c
parenta52bcd7b8a077fc39cc75b12a63e49397d5e891f (diff)
downloadlibdom-64e9feb8d0e62a4428d1db7a18cf00fdc2917252.tar.gz
libdom-64e9feb8d0e62a4428d1db7a18cf00fdc2917252.tar.bz2
Make libdom work again given lack of init/finalise in hubbub and prepare initial attempt at importing tests into the makefile
svn path=/trunk/dom/; revision=10992
Diffstat (limited to 'test/testutils/load.c')
-rw-r--r--test/testutils/load.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/testutils/load.c b/test/testutils/load.c
index 0028eb4..57e07ef 100644
--- a/test/testutils/load.c
+++ b/test/testutils/load.c
@@ -23,6 +23,7 @@
#include <errors.h>
#include "utils.h"
+#include "domts.h"
/**
* Load the file as it is a XML file
@@ -30,14 +31,14 @@
* \param file The file path
* \param willBeModified Whether this file will be modified, not used
*/
-dom_document *load_xml(char *file, bool willBeModified)
+dom_document *load_xml(const char *file, bool willBeModified)
{
dom_xml_parser *parser = NULL;
int handle;
int readed;
dom_xml_error error;
dom_document *ret;
- char buffer[1024];
+ uint8_t buffer[1024];
UNUSED(willBeModified);
@@ -92,18 +93,18 @@ dom_document *load_xml(char *file, bool willBeModified)
* \param file The file path
* \param willBeModified Whether this file will be modified, not used
*/
-dom_document *load_html(char *file, bool willBeModified)
+dom_document *load_html(const char *file, bool willBeModified)
{
dom_hubbub_parser *parser = NULL;
int handle;
int readed;
dom_hubbub_error error;
dom_document *ret;
- char buffer[1024];
+ uint8_t buffer[1024];
UNUSED(willBeModified);
- parser = dom_hubbub_parser_create("../data/Aliases", NULL, true,
+ parser = dom_hubbub_parser_create(NULL, true,
myrealloc, NULL, mymsg, NULL);
if (parser == NULL) {
fprintf(stderr, "Can't create Hubbub Parser\n");