summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Docs/env.sh4
-rw-r--r--amiga/agclass/amigaguide_class.c11
-rw-r--r--amiga/context_menu.c10
-rw-r--r--amiga/file.c7
-rwxr-xr-xamiga/history_local.c4
-rw-r--r--amiga/tree.c2
-rw-r--r--gtk/Makefile.defaults2
-rw-r--r--image/png.c4
8 files changed, 24 insertions, 20 deletions
diff --git a/Docs/env.sh b/Docs/env.sh
index f5c421501..83a521970 100644
--- a/Docs/env.sh
+++ b/Docs/env.sh
@@ -41,7 +41,7 @@ fi
# The GTK version to build for (either 2 or 3 currently)
if [ "x${NETSURF_GTK_MAJOR}" = "x" ]; then
- NETSURF_GTK_MAJOR=3
+ NETSURF_GTK_MAJOR=2
fi
@@ -129,7 +129,7 @@ export MAKE
################ OS Package installation ################
# deb packages for dpkg based systems
-NS_DEV_DEB="build-essential pkg-config git gperf libcurl3-dev libpng-dev libjpeg-dev libmozjs185-dev"
+NS_DEV_DEB="build-essential pkg-config git gperf libcurl3-dev libssl-dev libpng-dev libjpeg-dev libmozjs185-dev"
NS_TOOL_DEB="flex bison libhtml-parser-perl"
if [ "x${NETSURF_GTK_MAJOR}" = "x3" ]; then
NS_GTK_DEB="libgtk-3-dev librsvg2-dev"
diff --git a/amiga/agclass/amigaguide_class.c b/amiga/agclass/amigaguide_class.c
index 556445e1b..2b80223ca 100644
--- a/amiga/agclass/amigaguide_class.c
+++ b/amiga/agclass/amigaguide_class.c
@@ -7,7 +7,11 @@
#include "amiga/os3support.h"
#include "amigaguide_class.h"
-
+#ifdef __amigaos4__
+#define DISPATCHHOOK(func) static uint32 func(Class *cl, Object *o, Msg msg)
+#else
+#define DISPATCHHOOK(func) static ASM uint32 func(REG(a0, Class *cl),REG(a2, Object *o), REG(a1, Msg msg))
+#endif
struct localObjectData
{
@@ -24,7 +28,8 @@ struct AmigaGuideIFace *IAmigaGuide = NULL;
/* ********************************** function prototypes ************************************ */
-static uint32 dispatchAGClass(Class *, Object *, Msg);
+DISPATCHHOOK(dispatchAGClass);
+
// class methods
uint32 om_new(Class *, Object *, struct opSet *);
@@ -89,7 +94,7 @@ BOOL freeAGClass(Class *cl)
/* ************************************** class dispatcher ************************************ */
-static uint32 dispatchAGClass(Class *cl, Object *o, Msg msg)
+DISPATCHHOOK(dispatchAGClass)
{
switch (msg->MethodID)
diff --git a/amiga/context_menu.c b/amiga/context_menu.c
index b74affb11..970490e16 100644
--- a/amiga/context_menu.c
+++ b/amiga/context_menu.c
@@ -52,12 +52,12 @@
#include "amiga/context_menu.h"
-static uint32 ami_context_menu_hook(struct Hook *hook, Object *item, APTR reserved);
+HOOKF(uint32, ami_context_menu_hook, Object *, item, APTR);
+HOOKF(uint32, ami_popup_hook, Object *, item, APTR);
+
static bool ami_context_menu_history(const struct browser_window *bw, int x0, int y0,
int x1, int y1, const struct history_entry *entry, void *user_data);
-static uint32 ami_popup_hook(struct Hook *hook,Object *item,APTR reserved);
-
enum {
CMID_SELECTFILE,
CMID_COPYURL,
@@ -695,7 +695,7 @@ void ami_context_menu_show(struct gui_window_2 *gwin,int x,int y)
IDoMethod(ctxmenuobj, PM_OPEN, gwin->win);
}
-static uint32 ami_context_menu_hook(struct Hook *hook,Object *item,APTR reserved)
+HOOKF(uint32, ami_context_menu_hook, Object *, item, APTR)
{
int32 itemid = 0;
struct gui_window_2 *gwin = hook->h_Data;
@@ -1255,7 +1255,7 @@ static bool ami_context_menu_history(const struct browser_window *bw,
return true;
}
-static uint32 ami_popup_hook(struct Hook *hook,Object *item,APTR reserved)
+HOOKF(uint32, ami_popup_hook, Object *, item, APTR)
{
uint32 itemid = 0;
struct gui_window *gwin = hook->h_Data;
diff --git a/amiga/file.c b/amiga/file.c
index 733c9c780..e7f1fd356 100644
--- a/amiga/file.c
+++ b/amiga/file.c
@@ -46,8 +46,7 @@
static struct Hook aslhookfunc;
-static ULONG ami_file_asl_mime_hook(struct Hook *mh,
- struct FileRequester *fr, struct AnchorPathOld *ap)
+HOOKF(ULONG, ami_file_asl_mime_hook, struct FileRequester *, fr, struct AnchorPathOld *)
{
char fname[1024];
BOOL ret = FALSE;
@@ -56,10 +55,10 @@ static ULONG ami_file_asl_mime_hook(struct Hook *mh,
lwc_error lerror;
content_type ct;
- if(ap->ap_Info.fib_DirEntryType > 0) return(TRUE);
+ if(msg->ap_Info.fib_DirEntryType > 0) return(TRUE);
strcpy(fname,fr->fr_Drawer);
- AddPart(fname,ap->ap_Info.fib_FileName,1024);
+ AddPart(fname, msg->ap_Info.fib_FileName,1024);
mt = strdup(fetch_filetype(fname));
lerror = lwc_intern_string(mt, strlen(mt), &lwc_mt);
diff --git a/amiga/history_local.c b/amiga/history_local.c
index b56293d48..39456496c 100755
--- a/amiga/history_local.c
+++ b/amiga/history_local.c
@@ -57,7 +57,7 @@
#include "amiga/history_local.h"
void ami_history_update_extent(struct history_window *hw);
-static void ami_history_scroller_hook(struct Hook *hook,Object *object,struct IntuiMessage *msg);
+HOOKF(void, ami_history_scroller_hook, Object *, object, struct IntuiMessage *);
/**
* Redraw history window.
@@ -323,7 +323,7 @@ void ami_history_update_extent(struct history_window *hw)
ami_gui_free_space_box(bbox);
}
-void ami_history_scroller_hook(struct Hook *hook,Object *object,struct IntuiMessage *msg)
+HOOKF(void, ami_history_scroller_hook, Object *, object, struct IntuiMessage *)
{
ULONG gid;
struct history_window *hw = hook->h_Data;
diff --git a/amiga/tree.c b/amiga/tree.c
index 4f2c28630..cba5375b6 100644
--- a/amiga/tree.c
+++ b/amiga/tree.c
@@ -524,7 +524,7 @@ static void ami_tree_drag_end(struct treeview_window *twin, int x, int y)
}
}
-static void ami_tree_scroller_hook(struct Hook *hook,Object *object,struct IntuiMessage *msg)
+HOOKF(void, ami_tree_scroller_hook, Object *, object, struct IntuiMessage *)
{
ULONG gid;
struct treeview_window *twin = hook->h_Data;
diff --git a/gtk/Makefile.defaults b/gtk/Makefile.defaults
index dc1203328..51aa02707 100644
--- a/gtk/Makefile.defaults
+++ b/gtk/Makefile.defaults
@@ -25,7 +25,7 @@ NETSURF_USE_ROSPRITE := AUTO
NETSURF_FS_BACKING_STORE := YES
# Set default GTK version to build for (2 or 3)
-NETSURF_GTK_MAJOR := 2
+NETSURF_GTK_MAJOR ?= 2
# Optimisation levels
CFLAGS += -O2
diff --git a/image/png.c b/image/png.c
index 0f9b9cbc6..acf375e14 100644
--- a/image/png.c
+++ b/image/png.c
@@ -431,10 +431,10 @@ png_cache_convert(struct content *c)
png_structp png_ptr;
png_infop info_ptr;
png_infop end_info_ptr;
- volatile struct bitmap *bitmap = NULL;
+ volatile struct bitmap * volatile bitmap = NULL;
struct png_cache_read_data_s png_cache_read_data;
png_uint_32 width, height;
- volatile png_bytep *row_pointers = NULL;
+ volatile png_bytep * volatile row_pointers = NULL;
png_cache_read_data.data =
content__get_source_data(c, &png_cache_read_data.size);