Git init
[external/mawk.git] / bi_vars.h
1
2 /********************************************
3 bi_vars.h
4 copyright 1991, Michael D. Brennan
5
6 This is a source file for mawk, an implementation of
7 the AWK programming language.
8
9 Mawk is distributed without warranty under the terms of
10 the GNU General Public License, version 2, 1991.
11 ********************************************/
12
13
14 /* $Log: bi_vars.h,v $
15  * Revision 1.1.1.1  1993/07/03  18:58:09  mike
16  * move source to cvs
17  *
18  * Revision 5.2  1992/07/10  16:17:10  brennan
19  * MsDOS: remove NO_BINMODE macro
20  *
21  * Revision 5.1  1991/12/05  07:59:05  brennan
22  * 1.1 pre-release
23  *
24 */
25
26
27 /* bi_vars.h */
28
29 #ifndef  BI_VARS_H
30 #define  BI_VARS_H  1
31
32
33 /* builtin variables NF, RS, FS, OFMT are stored
34    internally in field[], so side effects of assignment can
35    be handled 
36 */
37
38 /* NR and FNR must be next to each other */
39 #define  NR        bi_vars  
40 #define  FNR       (bi_vars+1)
41 #define  ARGC      (bi_vars+2)
42 #define  FILENAME  (bi_vars+3)
43 #define  OFS       (bi_vars+4)
44 #define  ORS       (bi_vars+5)
45 #define  RLENGTH   (bi_vars+6)
46 #define  RSTART    (bi_vars+7)
47 #define  SUBSEP    (bi_vars+8)
48
49 #if  MSDOS 
50 #define  BINMODE   (bi_vars+9)
51 #define  NUM_BI_VAR  10
52 #else
53 #define  NUM_BI_VAR  9
54 #endif
55
56 extern CELL bi_vars[NUM_BI_VAR] ;
57
58
59 #endif