mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 7.4.1209
Problem: Can't build with Athena. Solution: Fix function declarations.
This commit is contained in:
parent
68c2f638e6
commit
02fdaeaa69
@ -495,7 +495,7 @@ SFunselect(void)
|
|||||||
static int SFcompareLogins(const void *p, const void *q);
|
static int SFcompareLogins(const void *p, const void *q);
|
||||||
|
|
||||||
static int
|
static int
|
||||||
SFcompareLogins(const void *p, *q)
|
SFcompareLogins(const void *p, const void *q)
|
||||||
{
|
{
|
||||||
return strcmp(((SFLogin *)p)->name, ((SFLogin *)q)->name);
|
return strcmp(((SFLogin *)p)->name, ((SFLogin *)q)->name);
|
||||||
}
|
}
|
||||||
@ -571,7 +571,7 @@ SFgetHomeDirs(void)
|
|||||||
static int SFfindHomeDir(char *begin, char *end);
|
static int SFfindHomeDir(char *begin, char *end);
|
||||||
|
|
||||||
static int
|
static int
|
||||||
SFfindHomeDir(char *begin, *end)
|
SFfindHomeDir(char *begin, char *end)
|
||||||
{
|
{
|
||||||
char save;
|
char save;
|
||||||
char *theRest;
|
char *theRest;
|
||||||
@ -2709,9 +2709,12 @@ vim_SelFile(
|
|||||||
char *prompt,
|
char *prompt,
|
||||||
char *init_path,
|
char *init_path,
|
||||||
int (*show_entry)(),
|
int (*show_entry)(),
|
||||||
int x, y,
|
int x,
|
||||||
guicolor_T fg, bg,
|
int y,
|
||||||
guicolor_T scroll_fg, scroll_bg) /* The "Scrollbar" group colors */
|
guicolor_T fg,
|
||||||
|
guicolor_T bg,
|
||||||
|
guicolor_T scroll_fg,
|
||||||
|
guicolor_T scroll_bg) /* The "Scrollbar" group colors */
|
||||||
{
|
{
|
||||||
static int firstTime = 1;
|
static int firstTime = 1;
|
||||||
XEvent event;
|
XEvent event;
|
||||||
|
@ -234,7 +234,8 @@ ClassInitialize(void)
|
|||||||
static void
|
static void
|
||||||
FillArea(
|
FillArea(
|
||||||
ScrollbarWidget sbw,
|
ScrollbarWidget sbw,
|
||||||
Position top, bottom,
|
Position top,
|
||||||
|
Position bottom,
|
||||||
int fill,
|
int fill,
|
||||||
int draw_shadow)
|
int draw_shadow)
|
||||||
{
|
{
|
||||||
@ -641,7 +642,7 @@ Redisplay(Widget w, XEvent *event, Region region)
|
|||||||
|
|
||||||
|
|
||||||
static Boolean
|
static Boolean
|
||||||
CompareEvents(XEvent *oldEvent, *newEvent)
|
CompareEvents(XEvent *oldEvent, XEvent *newEvent)
|
||||||
{
|
{
|
||||||
#define Check(field) if (newEvent->field != oldEvent->field) return False;
|
#define Check(field) if (newEvent->field != oldEvent->field) return False;
|
||||||
|
|
||||||
@ -713,7 +714,8 @@ LookAhead(Widget w, XEvent *event)
|
|||||||
static void
|
static void
|
||||||
ExtractPosition(
|
ExtractPosition(
|
||||||
XEvent *event,
|
XEvent *event,
|
||||||
Position *x, *y, /* RETURN */
|
Position *x, /* RETURN */
|
||||||
|
Position *y, /* RETURN */
|
||||||
unsigned int *state) /* RETURN */
|
unsigned int *state) /* RETURN */
|
||||||
{
|
{
|
||||||
switch (event->type)
|
switch (event->type)
|
||||||
@ -816,7 +818,7 @@ RepeatNotify(XtPointer client_data, XtIntervalId *idp UNUSED)
|
|||||||
* Same as above, but for floating numbers.
|
* Same as above, but for floating numbers.
|
||||||
*/
|
*/
|
||||||
static float
|
static float
|
||||||
FloatInRange(float num, small, big)
|
FloatInRange(float num, float small, float big)
|
||||||
{
|
{
|
||||||
return (num < small) ? small : ((num > big) ? big : num);
|
return (num < small) ? small : ((num > big) ? big : num);
|
||||||
}
|
}
|
||||||
@ -984,7 +986,7 @@ EndScroll(
|
|||||||
}
|
}
|
||||||
|
|
||||||
static float
|
static float
|
||||||
FractionLoc(ScrollbarWidget sbw, int x, y)
|
FractionLoc(ScrollbarWidget sbw, int x, int y)
|
||||||
{
|
{
|
||||||
int margin;
|
int margin;
|
||||||
float height, width;
|
float height, width;
|
||||||
@ -1165,7 +1167,7 @@ _Xaw3dDrawShadows(
|
|||||||
* Set the scroll bar to the given location.
|
* Set the scroll bar to the given location.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
vim_XawScrollbarSetThumb(Widget w, double top, shown, max)
|
vim_XawScrollbarSetThumb(Widget w, double top, double shown, double max)
|
||||||
{
|
{
|
||||||
ScrollbarWidget sbw = (ScrollbarWidget) w;
|
ScrollbarWidget sbw = (ScrollbarWidget) w;
|
||||||
|
|
||||||
|
@ -89,7 +89,8 @@ static int puller_width = 0;
|
|||||||
static void
|
static void
|
||||||
gui_athena_scroll_cb_jump(
|
gui_athena_scroll_cb_jump(
|
||||||
Widget w UNUSED,
|
Widget w UNUSED,
|
||||||
XtPointer client_data, call_data)
|
XtPointer client_data,
|
||||||
|
XtPointer call_data)
|
||||||
{
|
{
|
||||||
scrollbar_T *sb, *sb_info;
|
scrollbar_T *sb, *sb_info;
|
||||||
long value;
|
long value;
|
||||||
@ -124,7 +125,8 @@ gui_athena_scroll_cb_jump(
|
|||||||
static void
|
static void
|
||||||
gui_athena_scroll_cb_scroll(
|
gui_athena_scroll_cb_scroll(
|
||||||
Widget w UNUSED,
|
Widget w UNUSED,
|
||||||
XtPointer client_data, call_data)
|
XtPointer client_data,
|
||||||
|
XtPointer call_data)
|
||||||
{
|
{
|
||||||
scrollbar_T *sb, *sb_info;
|
scrollbar_T *sb, *sb_info;
|
||||||
long value;
|
long value;
|
||||||
|
@ -1761,7 +1761,7 @@ gui_mch_exit(int rc UNUSED)
|
|||||||
* Get the position of the top left corner of the window.
|
* Get the position of the top left corner of the window.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
gui_mch_get_winpos(int *x, *y)
|
gui_mch_get_winpos(int *x, int *y)
|
||||||
{
|
{
|
||||||
Dimension xpos, ypos;
|
Dimension xpos, ypos;
|
||||||
|
|
||||||
@ -1779,7 +1779,7 @@ gui_mch_get_winpos(int *x, *y)
|
|||||||
* coordinates.
|
* coordinates.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
gui_mch_set_winpos(int x, y)
|
gui_mch_set_winpos(int x, int y)
|
||||||
{
|
{
|
||||||
XtVaSetValues(vimShell,
|
XtVaSetValues(vimShell,
|
||||||
XtNx, x,
|
XtNx, x,
|
||||||
@ -3181,7 +3181,7 @@ static long_u blink_offtime = 250;
|
|||||||
static XtIntervalId blink_timer = (XtIntervalId)0;
|
static XtIntervalId blink_timer = (XtIntervalId)0;
|
||||||
|
|
||||||
void
|
void
|
||||||
gui_mch_set_blinking(long waittime, on, off)
|
gui_mch_set_blinking(long waittime, long on, long off)
|
||||||
{
|
{
|
||||||
blink_waittime = waittime;
|
blink_waittime = waittime;
|
||||||
blink_ontime = on;
|
blink_ontime = on;
|
||||||
|
@ -746,6 +746,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1209,
|
||||||
/**/
|
/**/
|
||||||
1208,
|
1208,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user