XSetClipRectangles(SFdisplay, SFtextGC, 0, 0, rectangles, 1, Unsorted);
}
-void SFclearList(n, doScroll)
-long n;
-int doScroll;
+void SFclearList(long n, int doScroll)
{
SFDir *dir;
}
}
-static void SFdeleteEntry(dir, entry)
-SFDir *dir;
-SFEntry *entry;
+static void SFdeleteEntry(SFDir *dir, SFEntry *entry)
{
register SFEntry *e;
register SFEntry *end;
);
}
-static void SFwriteStatChar(name, last, statBuf)
-char *name;
-int last;
-struct stat *statBuf;
+static void SFwriteStatChar(char *name, int last, struct stat *statBuf)
{
name[last] = SFstatChar(statBuf);
}
-static int SFstatAndCheck(dir, entry)
-SFDir *dir;
-SFEntry *entry;
+static int SFstatAndCheck(SFDir *dir, SFEntry *entry)
{
struct stat statBuf;
char save;
return 0;
}
-static void SFdrawStrings(w, dir, from, to)
-register Window w;
-register SFDir *dir;
-register int from;
-register int to;
+static void SFdrawStrings(Window w, SFDir *dir, int from, int to)
{
- register int i;
- register SFEntry *entry;
+ int i;
+ SFEntry *entry;
int x;
x = SFtextX - dir->hOrigin * SFcharWidth;
}
}
-void SFdrawList(n, doScroll)
-long n;
-int doScroll;
+void SFdrawList(long n, int doScroll)
{
SFDir *dir;
Window w;
}
}
-void SFdrawLists(doScroll)
-int doScroll;
+void SFdrawLists(int doScroll)
{
long i;
}
}
-static void SFinvertEntry(n)
-register int n;
+static void SFinvertEntry(int n)
{
XFillRectangle(SFdisplay,
XtWindow(selFileLists[n]),
return (unsigned long) t;
}
-static void SFscrollTimer(p, id)
-XtPointer p;
-XtIntervalId *id;
+static void SFscrollTimer(XtPointer p, XtIntervalId *id)
{
SFDir *dir;
int save;
}
}
-static int SFnewInvertEntry(n, event)
-register long n;
-register XMotionEvent *event;
+static int SFnewInvertEntry(long n, XMotionEvent *event)
{
- register int x, y;
- register int new;
+ int x, y;
+ int new;
static int SFscrollTimerAdded = 0;
x = event->x;
}
/* ARGSUSED */
-void SFenterList(w, n, event)
-Widget w;
-register int n;
-register XEnterWindowEvent *event;
+void SFenterList(Widget w, int n, XEnterWindowEvent *event)
{
- register int new;
+ int new;
/* sanity */
if (SFcurrentInvert[n] != -1) {
}
/* ARGSUSED */
-void SFleaveList(w, n, event)
-Widget w;
-register int n;
-XEvent *event;
+void SFleaveList(Widget w, int n, XEvent *event)
{
if (SFcurrentInvert[n] != -1) {
SFinvertEntry(n);
}
/* ARGSUSED */
-void SFmotionList(w, n, event)
-Widget w;
-register int n;
-register XMotionEvent *event;
+void SFmotionList(Widget w, int n, XMotionEvent *event)
{
- register int new;
+ int new;
new = SFnewInvertEntry((long) n, event);
}
/* ARGSUSED */
-void SFvFloatSliderMovedCallback(w, n, fnew)
-Widget w;
-int n;
-float *fnew;
+void SFvFloatSliderMovedCallback(Widget w, int n, float *fnew)
{
int new;
}
/* ARGSUSED */
-void SFvSliderMovedCallback(w, n, new)
-Widget w;
-int n;
-int new;
+void SFvSliderMovedCallback(Widget w, int n, int new)
{
int old;
register Window win;
}
/* ARGSUSED */
-void SFvAreaSelectedCallback(w, n, pnew)
-Widget w;
-int n;
-int pnew;
+void SFvAreaSelectedCallback(Widget w, int n, int pnew)
{
SFDir *dir;
int new;
}
/* ARGSUSED */
-void SFhSliderMovedCallback(w, n, new)
-Widget w;
-int n;
-float *new;
+void SFhSliderMovedCallback(Widget w, int n, float *new)
{
SFDir *dir;
int save;
}
/* ARGSUSED */
-void SFhAreaSelectedCallback(w, n, pnew)
-Widget w;
-int n;
-int pnew;
+void SFhAreaSelectedCallback(Widget w, int n, int pnew)
{
SFDir *dir;
int new;
}
/* ARGSUSED */
-void SFpathSliderMovedCallback(w, client_data, new)
-Widget w;
-XtPointer client_data;
-float *new;
+void SFpathSliderMovedCallback(Widget w, XtPointer client_data, float *new)
{
SFDir *dir;
int n;
/* ARGSUSED */
-void SFpathAreaSelectedCallback(w, client_data, pnew)
-Widget w;
-XtPointer client_data;
-int pnew;
+void SFpathAreaSelectedCallback(Widget w, XtPointer client_data, int pnew)
{
int new;
float f;
void SFsetText(char *path);
-int SFchdir(path)
-char *path;
+int SFchdir(char *path)
{
int result;
return result;
}
-static void SFfree(i)
-int i;
+static void SFfree(int i)
{
register SFDir *dir;
register int j;
dir->dir = NULL;
}
-static void SFstrdup(s1, s2)
-char **s1;
-char *s2;
+static void SFstrdup(char **s1, char *s2)
{
*s1 = strcpy(XtMalloc((unsigned) (strlen(s2) + 1)), s2);
}
-static void SFunreadableDir(dir)
-SFDir *dir;
+static void SFunreadableDir(SFDir *dir)
{
char *cannotOpen = "<cannot open> ";
}
#ifdef SEL_FILE_IGNORE_CASE
-static SFstrncmp(p, q, n)
-register char *p, *q;
-register int n;
+static SFstrncmp(char *p, char *q, int n)
{
register char c1, c2;
char *psave, *qsave;
}
#endif /* def SEL_FILE_IGNORE_CASE */
-static void SFreplaceText(dir, str)
-SFDir *dir;
-char *str;
+static void SFreplaceText(SFDir *dir, char *str)
{
int len;
SFtextChanged();
}
-static void SFexpand(str)
-char *str;
+static void SFexpand(char *str)
{
int len;
int cmp;
XtFree(growing);
}
-static int SFfindFile(dir, str)
-SFDir *dir;
-register char *str;
+static int SFfindFile(SFDir *dir, char *str)
{
register int i, last, max;
register char *name, save;
}
}
-static int SFfindHomeDir(begin, end)
-char *begin, *end;
+static int SFfindHomeDir(char *begin, char *end)
{
char save;
char *theRest;
}
}
-void SFsetText(path)
-char *path;
+void SFsetText(char *path)
{
XawTextBlock text;
}
/* ARGSUSED */
-void SFbuttonPressList(w, n, event)
-Widget w;
-int n;
-XButtonPressedEvent *event;
+void SFbuttonPressList(Widget w, int n, XButtonPressedEvent *event)
{
SFbuttonPressed = 1;
}
/* ARGSUSED */
-void SFbuttonReleaseList(w, n, event)
-Widget w;
-int n;
-XButtonReleasedEvent *event;
+void SFbuttonReleaseList(Widget w, int n, XButtonReleasedEvent *event)
{
SFDir *dir;
}
SFdoNotTouchVorigin = 1;
dir = &(SFdirs[SFdirPtr + n]);
- SFreplaceText(dir,
- dir->entries[dir->vOrigin +
+ SFreplaceText(dir, dir->entries[dir->vOrigin +
SFcurrentInvert[n]].shown);
SFmotionList(w, n, event);
}
}
-static int SFcheckDir(n, dir)
-int n;
-SFDir *dir;
+static int SFcheckDir(int n, SFDir *dir)
{
struct stat statBuf;
int i;
return 0;
}
-static int SFcheckFiles(dir)
-SFDir *dir;
+static int SFcheckFiles(SFDir *dir)
{
int from, to;
int result;
return result;
}
-void SFdirModTimer(cl, id)
-XtPointer cl;
-XtIntervalId *id;
+void SFdirModTimer(XtPointer cl, XtIntervalId *id)
{
static int n = -1;
static int f = 0;
/* Return a single character describing what kind of file STATBUF is. */
-char SFstatChar(statBuf)
-struct stat *statBuf;
+char SFstatChar(struct stat *statBuf)
{
if (S_ISDIR(statBuf->st_mode)) {
return '/';