diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-01-30 18:13:55 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-01-30 18:13:55 +0100 |
commit | 02fdaeaa697fb5af4ba7fee6e209b3c2c825bb4f (patch) | |
tree | 1a6c1a439d0fff8f37f4a814f180ca26059100c9 /src/gui_at_sb.c | |
parent | 68c2f638e65d914dc6e84eb7ce2624f08af525c0 (diff) | |
download | vim-02fdaeaa697fb5af4ba7fee6e209b3c2c825bb4f.zip |
patch 7.4.1209
Problem: Can't build with Athena.
Solution: Fix function declarations.
Diffstat (limited to 'src/gui_at_sb.c')
-rw-r--r-- | src/gui_at_sb.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/gui_at_sb.c b/src/gui_at_sb.c index 98caad58e..189647a48 100644 --- 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, Region region) 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, XtIntervalId *idp UNUSED) * 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 @@ _Xaw3dDrawShadows( * 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; |