From 36bb869ae4d65ec7c61dedc6c3577ebc24ef3808 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 17 Feb 2004 23:38:44 +0000 Subject: [project @ 2004-02-17 23:38:44 by jmb] Improve save_complete. Add missing #ifdef to about.c. svn path=/import/netsurf/; revision=559 --- riscos/about.c | 4 +++- riscos/save_complete.c | 54 ++++++++++++++++++++++++++++---------------------- utils/config.h | 2 +- utils/utils.c | 2 +- 4 files changed, 35 insertions(+), 27 deletions(-) diff --git a/riscos/about.c b/riscos/about.c index db28a1c32..cfec2733a 100644 --- a/riscos/about.c +++ b/riscos/about.c @@ -2,7 +2,7 @@ * This file is part of NetSurf, http://netsurf.sourceforge.net/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license - * Copyright 2003 John M Bell + * Copyright 2003,4 John M Bell */ /** \file @@ -335,7 +335,9 @@ void cookie_create(void) { void about_quit(void) { xosfile_delete(".WWW.NetSurf.About", 0, 0, 0, 0, 0); +#ifdef WITH_COOKIES xosfile_delete(".WWW.NetSurf.Cookies", 0, 0, 0, 0, 0); +#endif } #endif diff --git a/riscos/save_complete.c b/riscos/save_complete.c index 3b6e3a988..a97465679 100644 --- a/riscos/save_complete.c +++ b/riscos/save_complete.c @@ -22,10 +22,14 @@ #include "netsurf/utils/log.h" #include "netsurf/utils/utils.h" -/** \todo Save out CSS. */ - #ifdef WITH_SAVE_COMPLETE +/** \todo URL rewriting + * Objects used by embedded html pages + * GUI + */ + +void save_imported_sheets(struct content *c, int parent, int level, char *p, char* fn); char* get_filename(char * url); /* this is temporary. */ @@ -35,8 +39,7 @@ const char * const OBJ_DIR = "_files"; /** \todo this will probably want to take a filename */ void save_complete(struct content *c) { - struct box *box; - char *fname = 0, *spath, *ofname; + char *fname = 0, *spath; unsigned int i; if (c->type != CONTENT_HTML) { @@ -56,21 +59,15 @@ void save_complete(struct content *c) { xosfile_create_dir(spath, 77); /* save stylesheets, ignoring the base sheet and