typo fixed
[metatemplate.git] / ffilter.h
1 /*
2  *   ffilter.h
3  *   metatemplate Vers. vERSIOn
4  *                    Copyright (C)  cOPYDATe  cOPYRIGHt
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; either version 2 of the License, or
9  *  (at your option) any later version.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program; if not, write to the Free Software
18  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  *
20  *     CONTACT:    cONTACt
21  *                 cONTAC2t
22  *
23  */
24
25 #include <stdio.h>
26
27 #define FFDIMBUF 1024
28 #define FFMEZBUF  512
29 #define FFNESTED   16
30
31 struct fi_handle_tag {
32   FILE *fp[FFNESTED];        /* pointer ai vari file nidificati */
33   char *bf[FFNESTED];        /* buffer dei vari file */
34   int nc[FFNESTED];          /* numero di char attualmente nel buffer */ 
35   int nfile;                 /* numero di file in stack aperti */
36   char **keys;               /* chiavi di interruzione */
37   int fkey;                  /* indice chiave trovata */
38   int index;                 /* indice nell'array globale dei FIFILE */
39   int noctrlm;               /* no control M */
40 };
41 typedef struct fi_handle_tag FIFILE;
42
43 FIFILE *ffopen(char *,char **);
44 int ffinclude(FIFILE *,char *);
45 int ffclose(FIFILE *);
46 void ffchankeys(FIFILE *,char **);
47 int ffgetbin(char *,int,FIFILE *);
48 int ffkstat(FIFILE *);
49 char **ffgetkeys(FIFILE *);
50
51