move verbose log global into logging module and remove netsurf.h include
This commit is contained in:
parent
e353973518
commit
d5a971c281
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue