From 203b3289b8f590d25a2abf6df95bcaff741a7c2e Mon Sep 17 00:00:00 2001 From: John Tytgat Date: Sat, 26 Jul 2008 23:42:24 +0000 Subject: - Include utils/config.h before each WITH_* test entiry enabling/disabling the object file. - Add same test in corresponding header file (if there is one) - riscos/uri.c: include riscos/uri.h and have function definitions matching the declarations. - Disable PDF debug logging. svn path=/trunk/netsurf/; revision=4769 --- riscos/search.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'riscos/search.c') diff --git a/riscos/search.c b/riscos/search.c index 63678828c..ead9876d3 100644 --- a/riscos/search.c +++ b/riscos/search.c @@ -21,6 +21,9 @@ * Free text search (implementation) */ +#include "utils/config.h" +#ifdef WITH_SEARCH + #include #include #include "oslib/hourglass.h" @@ -40,8 +43,6 @@ #include "utils/messages.h" #include "utils/utils.h" -#ifdef WITH_SEARCH - #ifndef NOF_ELEMENTS #define NOF_ELEMENTS(array) (sizeof(array)/sizeof(*(array))) #endif @@ -59,13 +60,13 @@ struct list_entry { struct list_entry *next; }; -struct gui_window *search_current_window = 0; +struct gui_window *search_current_window = NULL; -static char *search_string = 0; +static char *search_string = NULL; static struct list_entry search_head = { 0, 0, NULL, NULL, NULL, NULL, NULL }; static struct list_entry *search_found = &search_head; -static struct list_entry *search_current = 0; -static struct content *search_content = 0; +static struct list_entry *search_current = NULL; +static struct content *search_content = NULL; static bool search_prev_case_sens = false; #define RECENT_SEARCHES 8 -- cgit v1.2.3