Commit | Line | Data |
---|---|---|
a7e60862 WJ |
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 5.1 91/12/05 07:59:05 brennan | |
16 | * 1.1 pre-release | |
17 | * | |
18 | */ | |
19 | ||
20 | ||
21 | /* bi_vars.h */ | |
22 | ||
23 | #ifndef BI_VARS_H | |
24 | #define BI_VARS_H 1 | |
25 | ||
26 | ||
27 | /* builtin variables NF, RS, FS, OFMT are stored | |
28 | internally in field[], so side effects of assignment can | |
29 | be handled | |
30 | */ | |
31 | ||
32 | /* NR and FNR must be next to each other */ | |
33 | #define NR bi_vars | |
34 | #define FNR (bi_vars+1) | |
35 | #define ARGC (bi_vars+2) | |
36 | #define FILENAME (bi_vars+3) | |
37 | #define OFS (bi_vars+4) | |
38 | #define ORS (bi_vars+5) | |
39 | #define RLENGTH (bi_vars+6) | |
40 | #define RSTART (bi_vars+7) | |
41 | #define SUBSEP (bi_vars+8) | |
42 | ||
43 | #if MSDOS && NO_BINMODE==0 | |
44 | #define BINMODE (bi_vars+9) | |
45 | #define NUM_BI_VAR 10 | |
46 | #else | |
47 | #define NUM_BI_VAR 9 | |
48 | #endif | |
49 | ||
50 | extern CELL bi_vars[NUM_BI_VAR] ; | |
51 | ||
52 | ||
53 | #endif |