home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / MAWK113.ZIP / mawk113 / bi_vars.h < prev    next >
C/C++ Source or Header  |  1992-07-10  |  1KB  |  57 lines

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