diff options
author | John Tytgat <joty@netsurf-browser.org> | 2008-07-26 23:42:24 +0000 |
---|---|---|
committer | John Tytgat <joty@netsurf-browser.org> | 2008-07-26 23:42:24 +0000 |
commit | 203b3289b8f590d25a2abf6df95bcaff741a7c2e (patch) | |
tree | d678df97090f80cb8d8fe54392d8341c509a2a61 /riscos/search.c | |
parent | 4ea96eac117f0ba74074fb486e2a57f85db8c697 (diff) | |
download | netsurf-203b3289b8f590d25a2abf6df95bcaff741a7c2e.tar.gz netsurf-203b3289b8f590d25a2abf6df95bcaff741a7c2e.tar.bz2 |
- 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
Diffstat (limited to 'riscos/search.c')
-rw-r--r-- | riscos/search.c | 13 |
1 files changed, 7 insertions, 6 deletions
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 <ctype.h> #include <string.h> #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 |