[project @ 2004-08-15 19:54:24 by jmb]

Make debug builds compile

svn path=/import/netsurf/; revision=1239
This commit is contained in:
John Mark Bell 2004-08-15 19:54:24 +00:00
parent 583bb12c5a
commit b1399acea2
2 changed files with 36 additions and 39 deletions

View File

@ -13,7 +13,9 @@
#include "netsurf/content/fetch.h" #include "netsurf/content/fetch.h"
#include "netsurf/content/content.h" #include "netsurf/content/content.h"
#include "netsurf/content/fetchcache.h" #include "netsurf/content/fetchcache.h"
#include "netsurf/desktop/gui.h"
#include "netsurf/desktop/options.h" #include "netsurf/desktop/options.h"
#include "netsurf/render/box.h"
#include "netsurf/riscos/save_complete.h" #include "netsurf/riscos/save_complete.h"
#include "netsurf/utils/log.h" #include "netsurf/utils/log.h"
#include "netsurf/utils/messages.h" #include "netsurf/utils/messages.h"
@ -21,6 +23,9 @@
#include "netsurf/utils/utils.h" #include "netsurf/utils/utils.h"
int done, destroyed; int done, destroyed;
bool print_active = false;
void *hotlist_toolbar = NULL;
void *hotlist_window = NULL;
void callback(content_msg msg, struct content *c, void *p1, void callback(content_msg msg, struct content *c, void *p1,
void *p2, union content_msg_data data) void *p2, union content_msg_data data)
@ -106,39 +111,18 @@ int stricmp(char *s0, char *s1)
} }
#endif #endif
void gui_remove_gadget(void *p)
{
}
#ifdef WITH_PLUGIN #ifdef WITH_PLUGIN
void plugin_decode(void *a, void *b, void *c, void *d) void plugin_decode(void *a, void *b, void *c, void *d)
{ {
} }
#endif #endif
void html_redraw(struct content *c, int x, int y, bool html_redraw(struct content *c, int x, int y,
int width, int height, int width, int height,
int x0, int y0, int x1, int y1, int x0, int y0, int x1, int y1,
float scale) float scale, unsigned long background_colour)
{
}
void html_add_instance(struct content *c, struct browser_window *bw,
struct content *page, struct box *box,
struct object_params *params, void **state)
{
}
void html_reshape_instance(struct content *c, struct browser_window *bw,
struct content *page, struct box *box,
struct object_params *params, void **state)
{
}
void html_remove_instance(struct content *c, struct browser_window *bw,
struct content *page, struct box *box,
struct object_params *params, void **state)
{ {
return true;
} }
#ifdef WITH_PLUGIN #ifdef WITH_PLUGIN
@ -150,28 +134,22 @@ bool plugin_handleable(const char *mime_type)
#ifdef WITH_PLUGIN #ifdef WITH_PLUGIN
void plugin_msg_parse(wimp_message *message, int ack) {} void plugin_msg_parse(wimp_message *message, int ack) {}
bool plugin_create(struct content *c, const char *params[]) {} bool plugin_create(struct content *c, const char *params[]) {return true;}
bool plugin_process_data(struct content *c, char *data, unsigned int size) {} bool plugin_convert(struct content *c, int width, int height) {return true;}
bool plugin_convert(struct content *c, int width, int height) {return 0;}
void plugin_reformat(struct content *c, int width, int height) {} void plugin_reformat(struct content *c, int width, int height) {}
void plugin_destroy(struct content *c) {} void plugin_destroy(struct content *c) {}
void plugin_redraw(struct content *c, int x, int y, bool plugin_redraw(struct content *c, int x, int y,
int width, int height, int width, int height,
int clip_x0, int clip_y0, int clip_x1, int clip_y1, int clip_x0, int clip_y0, int clip_x1, int clip_y1,
float scale) {} float scale, unsigned long background_colour) {return true;}
void plugin_add_instance(struct content *c, struct browser_window *bw, void plugin_open(struct content *c, struct browser_window *bw,
struct content *page, struct box *box, struct content *page, struct box *box,
struct object_params *params, void **state) {} struct object_params *params) {}
void plugin_remove_instance(struct content *c, struct browser_window *bw, void plugin_close(struct content *c) {}
struct content *page, struct box *box,
struct object_params *params, void **state) {}
void plugin_reshape_instance(struct content *c, struct browser_window *bw,
struct content *page, struct box *box,
struct object_params *params, void **state) {}
#endif #endif
#ifdef riscos #ifdef riscos
char *NETSURF_DIR = "<NetSurf$Dir>"; const char *NETSURF_DIR = "<NetSurf$Dir>";
#endif #endif
void xcolourtrans_generate_table_for_sprite(void) void xcolourtrans_generate_table_for_sprite(void)
@ -202,6 +180,12 @@ bool option_dither_sprites = false;
int option_minimum_gif_delay = 10; int option_minimum_gif_delay = 10;
#endif #endif
void ro_gui_screen_size(int *width, int *height)
{
*width = 0;
*height = 0;
}
void die(const char *error) void die(const char *error)
{ {
printf("die: %s\n", error); printf("die: %s\n", error);
@ -246,3 +230,16 @@ os_error *xos_read_monotonic_time (os_t *t)
*t = clock() / 1000; *t = clock() / 1000;
return 0; return 0;
} }
#ifndef riscos
typedef enum {
IMAGE_PLOT_TINCT_ALPHA,
IMAGE_PLOT_TINCT_OPAQUE,
IMAGE_PLOT_OS
} image_type;
bool image_redraw(osspriteop_area *area, int x, int y, int req_width,
int req_height, int width, int height,
unsigned long background_colour,
bool repeatx, bool repeaty, image_type type) { return true; }
#endif

View File

@ -45,7 +45,7 @@ OBJECTS_DEBUGRO = $(OBJECTS_COMMON)
OBJECTS_DEBUGRO += netsurfd.o # debug/ OBJECTS_DEBUGRO += netsurfd.o # debug/
OBJECTS_DEBUGRO += version.o # desktop/ OBJECTS_DEBUGRO += version.o # desktop/
OBJECTS_DEBUGRO += draw.o filetype.o font.o \ OBJECTS_DEBUGRO += draw.o filetype.o font.o \
gif.o gifread.o jpeg.o mng.o save_complete.o \ gif.o gifread.o image.o jpeg.o mng.o save_complete.o \
schedule.o sprite.o ufont.o # riscos/ schedule.o sprite.o ufont.o # riscos/
OBJECTS_GTK = $(OBJECTS_COMMON) OBJECTS_GTK = $(OBJECTS_COMMON)