#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;
static XtIntervalId SFscrollTimerId;
+void
SFinitFont()
{
TextData *data;
SFcharWidth = (SFfont->max_bounds.width + SFfont->min_bounds.width) / 2;
SFcharAscent = SFfont->max_bounds.ascent;
SFcharHeight = SFcharAscent + SFfont->max_bounds.descent;
+ return;
}
+void
SFcreateGC()
{
XGCValues gcValues;
1,
Unsorted
);
+ return;
}
+void
SFclearList(n, doScroll)
int n;
int doScroll;
(float) 1.0);
}
}
+ return;
}
-static
+static void
SFdeleteEntry(dir, entry)
SFDir *dir;
SFEntry *entry;
(float) (((double) ((dir->nEntries < SFlistSize) ?
dir->nEntries : SFlistSize)) / dir->nEntries)
);
+ return;
}
-static
+static void
SFwriteStatChar(name, last, statBuf)
char *name;
int last;
struct stat *statBuf;
{
name[last] = SFstatChar(statBuf);
+ return;
}
static int
return 0;
}
-static
+static void
SFdrawStrings(w, dir, from, to)
register Window w;
register SFDir *dir;
);
}
}
+ return;
}
+void
SFdrawList(n, doScroll)
int n;
int doScroll;
);
SFdrawStrings(w, dir, 0, SFlistSize - 1);
}
+ return;
}
+void
SFdrawLists(doScroll)
int doScroll;
{
for (i = 0; i < NR; i++) {
SFdrawList(i, doScroll);
}
+ return;
}
-static
+static void
SFinvertEntry(n)
register int n;
{
SFentryWidth,
SFentryHeight
);
+ return;
}
static unsigned long
int save;
int n;
- n = (int) p;
+ n = (int)(intptr_t) p;
dir = &(SFdirs[SFdirPtr + n]);
save = dir->vOrigin;
if (SFbuttonPressed) {
SFscrollTimerId = XtAppAddTimeOut(SFapp,
- SFscrollTimerInterval(), SFscrollTimer, (XtPointer) n);
+ SFscrollTimerInterval(), SFscrollTimer, (XtPointer)(intptr_t) n);
}
}
SFscrollTimerAdded = 1;
SFscrollTimerId = XtAppAddTimeOut(SFapp,
SFscrollTimerInterval(), SFscrollTimer,
- (XtPointer) n);
+ (XtPointer)(intptr_t) n);
}
}
SFinvertEntry(n);
}
}
-}
-
-/* ARGSUSED */
-void
-SFvFloatSliderMovedCallback(w, n, fnew)
- Widget w;
- int n;
- float *fnew;
-{
- int new;
-
- new = (*fnew) * SFdirs[SFdirPtr + n].nEntries;
-
- SFvSliderMovedCallback(w, n, new);
+ return;
}
/* ARGSUSED */
/* ARGSUSED */
void
+SFvFloatSliderMovedCallback(w, n, fnew)
+ Widget w;
+ int n;
+ float *fnew;
+{
+ int new;
+
+ new = (*fnew) * SFdirs[SFdirPtr + n].nEntries;
+
+ SFvSliderMovedCallback(w, n, new);
+}
+
+
+/* ARGSUSED */
+void
SFvAreaSelectedCallback(w, n, pnew)
Widget w;
int n;