Mercurial > vim
comparison src/gui_at_fs.c @ 22768:1ab66a0a631a v8.2.1932
patch 8.2.1932: compiler warnings when building with Athena GUI
Commit: https://github.com/vim/vim/commit/963734e316bd17dd7290abcac28b875435d06381
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 1 13:33:49 2020 +0100
patch 8.2.1932: compiler warnings when building with Athena GUI
Problem: Compiler warnings when building with Athena GUI.
Solution: Fix function signatures.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 01 Nov 2020 13:45:03 +0100 |
parents | 79e10adc821d |
children | 51ddf6740ac6 |
comparison
equal
deleted
inserted
replaced
22767:d16f651c324a | 22768:1ab66a0a631a |
---|---|
177 static int SFgetDir(SFDir *dir); | 177 static int SFgetDir(SFDir *dir); |
178 static void SFdrawLists(int doScroll); | 178 static void SFdrawLists(int doScroll); |
179 static void SFdrawList(int n, int doScroll); | 179 static void SFdrawList(int n, int doScroll); |
180 static void SFclearList(int n, int doScroll); | 180 static void SFclearList(int n, int doScroll); |
181 static char SFstatChar(stat_T *statBuf); | 181 static char SFstatChar(stat_T *statBuf); |
182 static void SFmotionList(Widget w, int n, XMotionEvent *event); | 182 static void SFmotionList(Widget w, XtPointer np, XMotionEvent *event, Boolean *cont); |
183 static void SFvSliderMovedCallback(Widget w, int n, int nw); | 183 static void SFvSliderMovedCallback(Widget w, int n, int nw); |
184 static Boolean SFworkProc(void); | 184 static Boolean SFworkProc(void *); |
185 static int SFcompareEntries(const void *p, const void *q); | 185 static int SFcompareEntries(const void *p, const void *q); |
186 | 186 |
187 ////////////////// xstat.h | 187 ////////////////// xstat.h |
188 | 188 |
189 #ifndef S_IXUSR | 189 #ifndef S_IXUSR |
796 #endif | 796 #endif |
797 } | 797 } |
798 | 798 |
799 static void | 799 static void |
800 SFbuttonPressList( | 800 SFbuttonPressList( |
801 Widget w UNUSED, | 801 Widget w UNUSED, |
802 int n UNUSED, | 802 XtPointer np UNUSED, |
803 XButtonPressedEvent *event UNUSED) | 803 XEvent *event UNUSED, |
804 Boolean *cont UNUSED) | |
804 { | 805 { |
805 SFbuttonPressed = 1; | 806 SFbuttonPressed = 1; |
806 } | 807 } |
807 | 808 |
808 static void | 809 static void |
809 SFbuttonReleaseList( | 810 SFbuttonReleaseList( |
810 Widget w, | 811 Widget w UNUSED, |
811 int n, | 812 XtPointer np, |
812 XButtonReleasedEvent *event) | 813 XEvent *event UNUSED, |
813 { | 814 Boolean *cont UNUSED) |
815 { | |
816 long n = (long)np; | |
814 SFDir *dir; | 817 SFDir *dir; |
815 | 818 |
816 SFbuttonPressed = 0; | 819 SFbuttonPressed = 0; |
817 | 820 |
818 if (SFcurrentInvert[n] != -1) | 821 if (SFcurrentInvert[n] != -1) |
821 SFdoNotTouchDirPtr = 1; | 824 SFdoNotTouchDirPtr = 1; |
822 SFdoNotTouchVorigin = 1; | 825 SFdoNotTouchVorigin = 1; |
823 dir = &(SFdirs[SFdirPtr + n]); | 826 dir = &(SFdirs[SFdirPtr + n]); |
824 SFreplaceText(dir, | 827 SFreplaceText(dir, |
825 dir->entries[dir->vOrigin + SFcurrentInvert[n]].shown); | 828 dir->entries[dir->vOrigin + SFcurrentInvert[n]].shown); |
826 SFmotionList(w, n, (XMotionEvent *) event); | 829 SFmotionList(w, (XtPointer)(long)n, (XMotionEvent *)event, 0); |
827 } | 830 } |
828 } | 831 } |
829 | 832 |
830 static int | 833 static int |
831 SFcheckDir(int n, SFDir *dir) | 834 SFcheckDir(int n, SFDir *dir) |
1598 return -1; | 1601 return -1; |
1599 } | 1602 } |
1600 } | 1603 } |
1601 | 1604 |
1602 static void | 1605 static void |
1603 SFenterList(Widget w UNUSED, int n, XEnterWindowEvent *event) | 1606 SFenterList( |
1604 { | 1607 Widget w UNUSED, |
1605 int nw; | 1608 XtPointer np, |
1609 XEvent *event, | |
1610 Boolean *cont UNUSED) | |
1611 { | |
1612 long n = (long)np; | |
1613 int nw; | |
1606 | 1614 |
1607 // sanity | 1615 // sanity |
1608 if (SFcurrentInvert[n] != -1) | 1616 if (SFcurrentInvert[n] != -1) |
1609 { | 1617 { |
1610 SFinvertEntry(n); | 1618 SFinvertEntry(n); |
1618 SFinvertEntry(n); | 1626 SFinvertEntry(n); |
1619 } | 1627 } |
1620 } | 1628 } |
1621 | 1629 |
1622 static void | 1630 static void |
1623 SFleaveList(Widget w UNUSED, int n, XEvent *event UNUSED) | 1631 SFleaveList( |
1624 { | 1632 Widget w UNUSED, |
1633 XtPointer np, | |
1634 XEvent *event UNUSED, | |
1635 Boolean *cont UNUSED) | |
1636 { | |
1637 long n = (long)np; | |
1638 | |
1625 if (SFcurrentInvert[n] != -1) | 1639 if (SFcurrentInvert[n] != -1) |
1626 { | 1640 { |
1627 SFinvertEntry(n); | 1641 SFinvertEntry(n); |
1628 SFcurrentInvert[n] = -1; | 1642 SFcurrentInvert[n] = -1; |
1629 } | 1643 } |
1630 } | 1644 } |
1631 | 1645 |
1632 static void | 1646 static void |
1633 SFmotionList(Widget w UNUSED, int n, XMotionEvent *event) | 1647 SFmotionList( |
1634 { | 1648 Widget w UNUSED, |
1649 XtPointer np, | |
1650 XMotionEvent *event UNUSED, | |
1651 Boolean *cont UNUSED) | |
1652 { | |
1653 long n = (long)np; | |
1635 int nw; | 1654 int nw; |
1636 | 1655 |
1637 nw = SFnewInvertEntry(n, event); | 1656 nw = SFnewInvertEntry(n, event); |
1638 | 1657 |
1639 if (nw != SFcurrentInvert[n]) | 1658 if (nw != SFcurrentInvert[n]) |
1952 | 1971 |
1953 SFpathSliderMovedCallback(w, (XtPointer) NULL, (XtPointer)&f); | 1972 SFpathSliderMovedCallback(w, (XtPointer) NULL, (XtPointer)&f); |
1954 } | 1973 } |
1955 | 1974 |
1956 static Boolean | 1975 static Boolean |
1957 SFworkProc(void) | 1976 SFworkProc(void *arg UNUSED) |
1958 { | 1977 { |
1959 SFDir *dir; | 1978 SFDir *dir; |
1960 SFEntry *entry; | 1979 SFEntry *entry; |
1961 | 1980 |
1962 for (dir = &(SFdirs[SFdirEnd - 1]); dir >= SFdirs; dir--) | 1981 for (dir = &(SFdirs[SFdirEnd - 1]); dir >= SFdirs; dir--) |