summaryrefslogtreecommitdiff
path: root/atari/cookies.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-04-20 10:43:58 +0100
committerVincent Sanders <vince@kyllikki.org>2016-04-20 10:43:58 +0100
commit3930d00519bbcee968a804b1f445c1638531cc15 (patch)
tree33ff87e76dd6f95d0e4eba80019149bbe59a6001 /atari/cookies.c
parent759c34b32447417faeec20513a0e586230f246cd (diff)
downloadnetsurf-3930d00519bbcee968a804b1f445c1638531cc15.tar.gz
netsurf-3930d00519bbcee968a804b1f445c1638531cc15.tar.bz2
atari header cleanup and warning squash
This rationalises atari platform user of headers and squashes a lot of warnings. Should not be viewed as real maintenance, more that it was getting in the way of fixing real core header issues.
Diffstat (limited to 'atari/cookies.c')
-rw-r--r--atari/cookies.c40
1 files changed, 25 insertions, 15 deletions
diff --git a/atari/cookies.c b/atari/cookies.c
index 4578f38a4..edb1a1a8a 100644
--- a/atari/cookies.c
+++ b/atari/cookies.c
@@ -71,35 +71,45 @@ static struct atari_treeview_callbacks atari_cookie_manager_treeview_callbacks =
};
-static nserror atari_cookie_manager_init_phase2(struct core_window *cw,
- struct core_window_callback_table *cb_t)
+static nserror
+atari_cookie_manager_init_phase2(struct core_window *cw,
+ struct core_window_callback_table *cb_t)
{
- LOG("");
+ LOG("cw %p",cw);
return(cookie_manager_init(cb_t, cw));
}
-static void atari_cookie_manager_finish(struct core_window *cw)
+
+static void
+atari_cookie_manager_finish(struct core_window *cw)
{
- LOG("");
+ LOG("cw %p",cw);
cookie_manager_fini();
}
-static void atari_cookie_manager_draw(struct core_window *cw, int x,
- int y, struct rect *clip,
- const struct redraw_context *ctx)
+
+static void
+atari_cookie_manager_draw(struct core_window *cw,
+ int x, int y,
+ struct rect *clip,
+ const struct redraw_context *ctx)
{
cookie_manager_redraw(x, y, clip, ctx);
}
-static void atari_cookie_manager_keypress(struct core_window *cw, uint32_t ucs4)
+
+static void
+atari_cookie_manager_keypress(struct core_window *cw, uint32_t ucs4)
{
- LOG("ucs4: %lu\n", ucs4);
+ LOG("ucs4: %"PRIu32, ucs4);
cookie_manager_keypress(ucs4);
}
-static void atari_cookie_manager_mouse_action(struct core_window *cw,
- browser_mouse_state mouse,
- int x, int y)
+
+static void
+atari_cookie_manager_mouse_action(struct core_window *cw,
+ browser_mouse_state mouse,
+ int x, int y)
{
cookie_manager_mouse_action(mouse, x, y);
}
@@ -110,9 +120,9 @@ static short handle_event(GUIWIN *win, EVMULT_OUT *ev_out, short msg[8])
{
short retval = 0;
- LOG("");
+ LOG("win %p", win);
- if(ev_out->emo_events & MU_MESAG){
+ if (ev_out->emo_events & MU_MESAG) {
switch (msg[0]) {
case WM_TOOLBAR: