source: trunk/minix/commands/yap/process.h@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 1.0 KB
Line 
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
13PUBLIC jmp_buf SetJmpBuf;
14PUBLIC int DoneSetJmp;
15
16PUBLIC int stdf; /* input file descriptor */
17PUBLIC int filecount; /* index in filename table */
18PUBLIC char ** filenames; /* the filenametable */
19PUBLIC char * currentfile; /* Name of current file */
20PUBLIC long maxpos; /* Size of file */
21
22VOID 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
30VOID 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
39int 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.