move verbose log global into logging module and remove netsurf.h include

This commit is contained in:
Vincent Sanders 2014-01-29 23:20:19 +00:00
parent e353973518
commit d5a971c281
4 changed files with 6 additions and 4 deletions

View File

@ -73,7 +73,6 @@
#define HL_CACHE_CLEAN_TIME (2 * IMAGE_CACHE_CLEAN_TIME)
bool netsurf_quit = false;
bool verbose_log = false;
static void netsurf_lwc_iterator(lwc_string *str, void *pw)
{

View File

@ -23,7 +23,6 @@
#include "utils/errors.h"
extern bool netsurf_quit;
extern bool verbose_log;
extern const char * const netsurf_version;
extern const int netsurf_version_major;
extern const int netsurf_version_minor;

View File

@ -23,10 +23,11 @@
#include <stdarg.h>
#include <stdio.h>
#include <sys/time.h>
#include "desktop/netsurf.h"
#include "utils/log.h"
bool verbose_log = false;
nserror nslog_init(nslog_ensure_t *ensure, int *pargc, char **argv)
{
nserror ret = NSERROR_OK;

View File

@ -21,9 +21,12 @@
#define _NETSURF_LOG_H_
#include <stdio.h>
#include "desktop/netsurf.h"
#include <stdbool.h>
#include "utils/errors.h"
extern bool verbose_log;
/**
* Ensures the FILE handle is available to write logging to.
*