mtree: no more /lib and /lib/i386.
[minix.git] / commands / yap / process.h
blobf94517cccd042772de55422b03b64d1a735f79ab
1 /* Copyright (c) 1985 Ceriel J.H. Jacobs */
3 /* $Header$ */
5 # ifndef _PROCESS_
6 # define PUBLIC extern
7 # else
8 # define PUBLIC
9 # endif
11 # include <setjmp.h>
13 PUBLIC jmp_buf SetJmpBuf;
14 PUBLIC int DoneSetJmp;
16 PUBLIC int stdf; /* input file descriptor */
17 PUBLIC int filecount; /* index in filename table */
18 PUBLIC char ** filenames; /* the filenametable */
19 PUBLIC char * currentfile; /* Name of current file */
20 PUBLIC long maxpos; /* Size of file */
22 VOID visitfile();
24 * void visitfile(fn)
25 * char *fn; name of file to be visited
27 * Opens the file "fn" and gives an error message if this fails.
30 VOID processfiles();
32 * void processfiles(n,argv)
33 * int n; number of files to be handled
34 * char ** argv; names of the files
36 * Does all the work according to the divide and conquer method
39 int nextfile();
41 * int nextfile(n)
42 * int n;
44 * Visits n'th next file. If not there in argument list, return 1.
45 * Otherwise return 0.
48 # undef PUBLIC