Skip to content

Commit 02fdaea

Browse files
committed
patch 7.4.1209
Problem: Can't build with Athena. Solution: Fix function declarations.
1 parent 68c2f63 commit 02fdaea

5 files changed

Lines changed: 25 additions & 16 deletions

File tree

src/gui_at_fs.c

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ SFunselect(void)
495495
static int SFcompareLogins(const void *p, const void *q);
496496

497497
static int
498-
SFcompareLogins(const void *p, *q)
498+
SFcompareLogins(const void *p, const void *q)
499499
{
500500
return strcmp(((SFLogin *)p)->name, ((SFLogin *)q)->name);
501501
}
@@ -571,7 +571,7 @@ SFgetHomeDirs(void)
571571
static int SFfindHomeDir(char *begin, char *end);
572572

573573
static int
574-
SFfindHomeDir(char *begin, *end)
574+
SFfindHomeDir(char *begin, char *end)
575575
{
576576
char save;
577577
char *theRest;
@@ -2709,9 +2709,12 @@ vim_SelFile(
27092709
char *prompt,
27102710
char *init_path,
27112711
int (*show_entry)(),
2712-
int x, y,
2713-
guicolor_T fg, bg,
2714-
guicolor_T scroll_fg, scroll_bg) /* The "Scrollbar" group colors */
2712+
int x,
2713+
int y,
2714+
guicolor_T fg,
2715+
guicolor_T bg,
2716+
guicolor_T scroll_fg,
2717+
guicolor_T scroll_bg) /* The "Scrollbar" group colors */
27152718
{
27162719
static int firstTime = 1;
27172720
XEvent event;

src/gui_at_sb.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ ClassInitialize(void)
234234
static void
235235
FillArea(
236236
ScrollbarWidget sbw,
237-
Position top, bottom,
237+
Position top,
238+
Position bottom,
238239
int fill,
239240
int draw_shadow)
240241
{
@@ -641,7 +642,7 @@ Redisplay(Widget w, XEvent *event, Region region)
641642

642643

643644
static Boolean
644-
CompareEvents(XEvent *oldEvent, *newEvent)
645+
CompareEvents(XEvent *oldEvent, XEvent *newEvent)
645646
{
646647
#define Check(field) if (newEvent->field != oldEvent->field) return False;
647648

@@ -713,7 +714,8 @@ LookAhead(Widget w, XEvent *event)
713714
static void
714715
ExtractPosition(
715716
XEvent *event,
716-
Position *x, *y, /* RETURN */
717+
Position *x, /* RETURN */
718+
Position *y, /* RETURN */
717719
unsigned int *state) /* RETURN */
718720
{
719721
switch (event->type)
@@ -816,7 +818,7 @@ RepeatNotify(XtPointer client_data, XtIntervalId *idp UNUSED)
816818
* Same as above, but for floating numbers.
817819
*/
818820
static float
819-
FloatInRange(float num, small, big)
821+
FloatInRange(float num, float small, float big)
820822
{
821823
return (num < small) ? small : ((num > big) ? big : num);
822824
}
@@ -984,7 +986,7 @@ EndScroll(
984986
}
985987

986988
static float
987-
FractionLoc(ScrollbarWidget sbw, int x, y)
989+
FractionLoc(ScrollbarWidget sbw, int x, int y)
988990
{
989991
int margin;
990992
float height, width;
@@ -1165,7 +1167,7 @@ _Xaw3dDrawShadows(
11651167
* Set the scroll bar to the given location.
11661168
*/
11671169
void
1168-
vim_XawScrollbarSetThumb(Widget w, double top, shown, max)
1170+
vim_XawScrollbarSetThumb(Widget w, double top, double shown, double max)
11691171
{
11701172
ScrollbarWidget sbw = (ScrollbarWidget) w;
11711173

src/gui_athena.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ static int puller_width = 0;
8989
static void
9090
gui_athena_scroll_cb_jump(
9191
Widget w UNUSED,
92-
XtPointer client_data, call_data)
92+
XtPointer client_data,
93+
XtPointer call_data)
9394
{
9495
scrollbar_T *sb, *sb_info;
9596
long value;
@@ -124,7 +125,8 @@ gui_athena_scroll_cb_jump(
124125
static void
125126
gui_athena_scroll_cb_scroll(
126127
Widget w UNUSED,
127-
XtPointer client_data, call_data)
128+
XtPointer client_data,
129+
XtPointer call_data)
128130
{
129131
scrollbar_T *sb, *sb_info;
130132
long value;

src/gui_x11.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1761,7 +1761,7 @@ gui_mch_exit(int rc UNUSED)
17611761
* Get the position of the top left corner of the window.
17621762
*/
17631763
int
1764-
gui_mch_get_winpos(int *x, *y)
1764+
gui_mch_get_winpos(int *x, int *y)
17651765
{
17661766
Dimension xpos, ypos;
17671767

@@ -1779,7 +1779,7 @@ gui_mch_get_winpos(int *x, *y)
17791779
* coordinates.
17801780
*/
17811781
void
1782-
gui_mch_set_winpos(int x, y)
1782+
gui_mch_set_winpos(int x, int y)
17831783
{
17841784
XtVaSetValues(vimShell,
17851785
XtNx, x,
@@ -3181,7 +3181,7 @@ static long_u blink_offtime = 250;
31813181
static XtIntervalId blink_timer = (XtIntervalId)0;
31823182

31833183
void
3184-
gui_mch_set_blinking(long waittime, on, off)
3184+
gui_mch_set_blinking(long waittime, long on, long off)
31853185
{
31863186
blink_waittime = waittime;
31873187
blink_ontime = on;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,8 @@ static char *(features[]) =
746746

747747
static int included_patches[] =
748748
{ /* Add new patch number below this line */
749+
/**/
750+
1209,
749751
/**/
750752
1208,
751753
/**/

0 commit comments

Comments
 (0)