Rev | Line | |
---|
[9] | 1 | /* Copyright (c) 1985 Ceriel J.H. Jacobs */
|
---|
| 2 |
|
---|
| 3 | /* $Header: /cvsup/minix/src/commands/yap/process.h,v 1.1.1.1 2005/04/21 14:55:41 beng Exp $ */
|
---|
| 4 |
|
---|
| 5 | # ifndef _PROCESS_
|
---|
| 6 | # define PUBLIC extern
|
---|
| 7 | # else
|
---|
| 8 | # define PUBLIC
|
---|
| 9 | # endif
|
---|
| 10 |
|
---|
| 11 | # include <setjmp.h>
|
---|
| 12 |
|
---|
| 13 | PUBLIC jmp_buf SetJmpBuf;
|
---|
| 14 | PUBLIC int DoneSetJmp;
|
---|
| 15 |
|
---|
| 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 */
|
---|
| 21 |
|
---|
| 22 | VOID visitfile();
|
---|
| 23 | /*
|
---|
| 24 | * void visitfile(fn)
|
---|
| 25 | * char *fn; name of file to be visited
|
---|
| 26 | *
|
---|
| 27 | * Opens the file "fn" and gives an error message if this fails.
|
---|
| 28 | */
|
---|
| 29 |
|
---|
| 30 | VOID processfiles();
|
---|
| 31 | /*
|
---|
| 32 | * void processfiles(n,argv)
|
---|
| 33 | * int n; number of files to be handled
|
---|
| 34 | * char ** argv; names of the files
|
---|
| 35 | *
|
---|
| 36 | * Does all the work according to the divide and conquer method
|
---|
| 37 | */
|
---|
| 38 |
|
---|
| 39 | int nextfile();
|
---|
| 40 | /*
|
---|
| 41 | * int nextfile(n)
|
---|
| 42 | * int n;
|
---|
| 43 | *
|
---|
| 44 | * Visits n'th next file. If not there in argument list, return 1.
|
---|
| 45 | * Otherwise return 0.
|
---|
| 46 | */
|
---|
| 47 |
|
---|
| 48 | # undef PUBLIC
|
---|
Note:
See
TracBrowser
for help on using the repository browser.