All the prototypes have been moved to selfile.h, to force uniformity.
The order of the #include files xstat.h and selfile.h had to be
swapped, to make sure 'struct stat' is a nown type atthe time of
prototype declaration. The event handler SFmotionList is considered
wrong type because of its third argument (XMotionEvent in stead of
XEvent), and had to be casted to (XtEventHandler) when passed to
XtAddEventHandler.
#include <ctype.h>
#endif /* def SEL_FILE_IGNORE_CASE */
-#include "selfile.h"
-
#ifdef HAVE_DIRENT_H
#include <dirent.h>
#else
#include <sys/stat.h>
+#include "selfile.h"
+
#ifdef SEL_FILE_IGNORE_CASE
int
SFcompareEntries(p, q)
*/
#include <stdio.h>
-#include "selfile.h"
#include "xstat.h"
+#include "selfile.h"
#include <X11/StringDefs.h>
#include <X11/Xaw/Scrollbar.h>
#include <X11/Xaw/Cardinals.h>
#endif
#define ABS(x) (((x) < 0) ? (-(x)) : (x))
-/* added missing prototypes */
-extern char SFstatChar(struct stat*);
-extern int SFchdir(char *);
-void SFvSliderMovedCallback(Widget, int, int);
-
typedef struct {
char *fontname;
} TextData, *textPtr;
#include <X11/Xos.h>
#include <pwd.h>
-#include "selfile.h"
#include "xstat.h"
+#include "selfile.h"
#include <X11/Xaw/Scrollbar.h>
#ifndef MAXPATHLEN
extern uid_t getuid();
#endif /* def HAS_DIRENT_H */
-/* added missing prototypes */
-extern void SFtextChanged();
-extern int SFgetDir(SFDir *);
-extern void SFdrawLists(int);
-extern void SFdrawList(int, int);
-extern void SFclearList(int, int);
-extern void SFmotionList(Widget, int, XMotionEvent*);
-
typedef struct {
char *name;
char *dir;
#include <X11/Xaw/Label.h>
#include <X11/Xaw/Cardinals.h>
-#include "selfile.h"
#include "xstat.h"
-
-/* added missing prototypes */
-extern void SFdrawList(int,int);
-extern void SFinitFont();
-extern void SFcreateGC();
-extern int SFchdir(char *);
-extern void SFupdatePath();
-extern void SFsetText(char *);
-extern char SFstatChar(struct stat*);
+#include "selfile.h"
#ifndef MAXPATHLEN
#define MAXPATHLEN 1024
XtAddEventHandler(selFileLists[n], LeaveWindowMask, False,
SFleaveList, (XtPointer)(intptr_t) n);
XtAddEventHandler(selFileLists[n], PointerMotionMask, False,
- SFmotionList, (XtPointer)(intptr_t) n);
+ (XtEventHandler) SFmotionList, (XtPointer)(intptr_t) n);
XtAddEventHandler(selFileLists[n], ButtonPressMask, False,
SFbuttonPressList, (XtPointer)(intptr_t) n);
XtAddEventHandler(selFileLists[n], ButtonReleaseMask, False,
extern Boolean SFpathFlag; // [HGM]
+/* added missing prototypes */
+char SFstatChar(struct stat *);
+int SFchdir(char *);
+void SFvSliderMovedCallback(Widget, int, int);
+void SFdrawList(int,int);
+void SFdrawLists(int);
+void SFinitFont();
+void SFcreateGC();
+void SFupdatePath();
+void SFsetText(char *);
+void SFtextChanged();
+int SFgetDir(SFDir *);
+void SFclearList(int, int);
+void SFmotionList(Widget, int, XMotionEvent*);
+
+
+