Mercurial > vim
diff src/gui_at_sb.c @ 7825:7898da204b98 v7.4.1209
commit https://github.com/vim/vim/commit/02fdaeaa697fb5af4ba7fee6e209b3c2c825bb4f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 30 18:13:55 2016 +0100
patch 7.4.1209
Problem: Can't build with Athena.
Solution: Fix function declarations.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 30 Jan 2016 18:15:04 +0100 |
parents | 81794242a275 |
children | 4aead6a9b7a9 |
line wrap: on
line diff
--- a/src/gui_at_sb.c +++ b/src/gui_at_sb.c @@ -234,7 +234,8 @@ ClassInitialize(void) static void FillArea( ScrollbarWidget sbw, - Position top, bottom, + Position top, + Position bottom, int fill, int draw_shadow) { @@ -641,7 +642,7 @@ Redisplay(Widget w, XEvent *event, Regio static Boolean -CompareEvents(XEvent *oldEvent, *newEvent) +CompareEvents(XEvent *oldEvent, XEvent *newEvent) { #define Check(field) if (newEvent->field != oldEvent->field) return False; @@ -713,7 +714,8 @@ LookAhead(Widget w, XEvent *event) static void ExtractPosition( XEvent *event, - Position *x, *y, /* RETURN */ + Position *x, /* RETURN */ + Position *y, /* RETURN */ unsigned int *state) /* RETURN */ { switch (event->type) @@ -816,7 +818,7 @@ RepeatNotify(XtPointer client_data, XtIn * Same as above, but for floating numbers. */ static float -FloatInRange(float num, small, big) +FloatInRange(float num, float small, float big) { return (num < small) ? small : ((num > big) ? big : num); } @@ -984,7 +986,7 @@ EndScroll( } static float -FractionLoc(ScrollbarWidget sbw, int x, y) +FractionLoc(ScrollbarWidget sbw, int x, int y) { int margin; float height, width; @@ -1165,7 +1167,7 @@ AllocBotShadowGC(Widget w) * Set the scroll bar to the given location. */ void -vim_XawScrollbarSetThumb(Widget w, double top, shown, max) +vim_XawScrollbarSetThumb(Widget w, double top, double shown, double max) { ScrollbarWidget sbw = (ScrollbarWidget) w;