summaryrefslogtreecommitdiff
path: root/riscos/gui.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-04-17 00:54:27 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-04-17 00:54:27 +0000
commitdaf7a52dd67e7ac2149dba337cc156c9ba308987 (patch)
tree7514c0aaccc3c1ec2fc4b8b348e3249a043a6ff4 /riscos/gui.c
parent5ae689a29633afc64474c414541c56a98a3876cf (diff)
downloadnetsurf-daf7a52dd67e7ac2149dba337cc156c9ba308987.tar.gz
netsurf-daf7a52dd67e7ac2149dba337cc156c9ba308987.tar.bz2
Hubbub is no longer optional.
Remove libxml2 parser binding. svn path=/trunk/netsurf/; revision=7115
Diffstat (limited to 'riscos/gui.c')
-rw-r--r--riscos/gui.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/riscos/gui.c b/riscos/gui.c
index ced9cfa14..5d70a0d8f 100644
--- a/riscos/gui.c
+++ b/riscos/gui.c
@@ -33,9 +33,7 @@
#include <features.h>
#include <unixlib/local.h>
#include <curl/curl.h>
-#ifdef WITH_HUBBUB
#include <hubbub/hubbub.h>
-#endif
#include "oslib/font.h"
#include "oslib/help.h"
#include "oslib/hourglass.h"
@@ -271,12 +269,10 @@ static void ro_msg_save_desktop(wimp_message *message);
static void ro_msg_window_info(wimp_message *message);
static void ro_gui_view_source_bounce(wimp_message *message);
-#ifdef WITH_HUBBUB
static void *myrealloc(void *ptr, size_t len, void *pw)
{
return realloc(ptr, len);
}
-#endif
/**
* Initialise the gui (RISC OS specific part).
@@ -317,11 +313,9 @@ void gui_init(int argc, char** argv)
ro_plot_patterned_lines = false;
}
-#ifdef WITH_HUBBUB
if (hubbub_initialise("NetSurf:Resources.Aliases", myrealloc, NULL) !=
HUBBUB_OK)
die("Failed to initialise HTML parsing library.");
-#endif
/* Read in the options */
options_read("NetSurf:Choices");
@@ -778,10 +772,8 @@ void gui_quit(void)
xwimp_close_down(task_handle);
free(default_stylesheet_url);
free(adblock_stylesheet_url);
-#ifdef WITH_HUBBUB
/* We don't care if this fails */
hubbub_finalise(myrealloc, NULL);
-#endif
xhourglass_off();
}