2 /********************************************
4 copyright 1991, Michael D. Brennan
6 This is a source file for mawk, an implementation of
7 the AWK programming language.
9 Mawk is distributed without warranty under the terms of
10 the GNU General Public License, version 2, 1991.
11 ********************************************/
14 * Revision 1.1.1.1 1993/07/03 18:58:13 mike
17 * Revision 5.2 1992/01/06 08:16:24 brennan
18 * setmode() proto for MSDOS
20 * Revision 5.1 91/12/05 07:59:20 brennan
29 /* structure to control input files */
33 FILE *fp ; /* NULL unless interactive */
36 unsigned nbuffs ; /* sizeof *buff in BUFFSZs */
40 #define MAIN_FLAG 1 /* part of main input stream if on */
42 #define START_FLAG 4 /* used when RS == "" */
44 FIN * PROTO (FINdopen, (int, int) );
45 FIN * PROTO (FINopen, (char *, int) );
46 void PROTO (FINclose, (FIN *) ) ;
47 void PROTO (FINsemi_close, (FIN *)) ;
48 char* PROTO (FINgets, (FIN *, unsigned *) ) ;
49 unsigned PROTO ( fillbuff, (int, char *, unsigned) ) ;
52 extern FIN *main_fin ; /* for the main input stream */
53 void PROTO( open_main, (void) ) ;
55 void PROTO(setmode, (int,int)) ;