NetBSD/gnu/usr.bin/awk/bi_vars.h

60 lines
1.2 KiB
C
Raw Normal View History

1993-03-21 12:45:37 +03:00
/********************************************
bi_vars.h
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
********************************************/
/* $Log: bi_vars.h,v $
1993-07-03 03:56:52 +04:00
/* Revision 1.2 1993/07/02 23:57:05 jtc
/* Updated to mawk 1.1.4
1993-03-21 12:45:37 +03:00
/*
1993-07-03 03:56:52 +04:00
* Revision 5.2 1992/07/10 16:17:10 brennan
* MsDOS: remove NO_BINMODE macro
*
* Revision 5.1 1991/12/05 07:59:05 brennan
1993-03-21 12:45:37 +03:00
* 1.1 pre-release
1993-07-03 03:56:52 +04:00
*
1993-03-21 12:45:37 +03:00
*/
/* bi_vars.h */
#ifndef BI_VARS_H
#define BI_VARS_H 1
/* builtin variables NF, RS, FS, OFMT are stored
internally in field[], so side effects of assignment can
be handled
*/
/* NR and FNR must be next to each other */
#define NR bi_vars
#define FNR (bi_vars+1)
#define ARGC (bi_vars+2)
#define FILENAME (bi_vars+3)
#define OFS (bi_vars+4)
#define ORS (bi_vars+5)
#define RLENGTH (bi_vars+6)
#define RSTART (bi_vars+7)
#define SUBSEP (bi_vars+8)
1993-07-03 03:56:52 +04:00
#if MSDOS
1993-03-21 12:45:37 +03:00
#define BINMODE (bi_vars+9)
#define NUM_BI_VAR 10
#else
#define NUM_BI_VAR 9
#endif
extern CELL bi_vars[NUM_BI_VAR] ;
#endif