# 2.11BSD#431 - /usr/src/usr.bin/ratfor/r.h

##### Macros

    COMMENT           X
    CONTFLD           X
    CRAP              X
    DIG               X
    EOS               X
    HSHSIZ            X
    INDENT            X
    LET               X
    QUOTE             X
    putbak            X

##### struct's

    nlist             X

       1: /*	r.h	1.2	83/08/11	*/
       2:
       3: #include <stdio.h>
       4: #include "y.tab.h"
       5:
       6: #
       7: #define putbak(c)   *ip++ = c
       8: /*	#define	getchr()	(ip>ibuf?*--ip: getc(infile[infptr]))	*/
       9:
      10: #define LET 1
      11: #define DIG 2
      12: #define CRAP    3
      13: #define COMMENT '#'
      14: #define QUOTE   '"'
      15:
      16: extern int  transfer;
      17:
      18: #define INDENT  3   /* indent delta */
      19: #ifdef  gcos
      20: #define CONTFLD 6
      21: #endif
      22: #ifdef  unix
      23: #define CONTFLD 1
      24: #endif
      25: extern  int contfld;    /* column for continuation char */
      26: extern  int contchar;
      27: extern  int dbg;
      28: extern  int yyval;
      29: extern  int *yypv;
      30: extern  int yylval;
      31: extern  int errorflag;
      32:
      33: extern  char    comment[];  /* save input comments here */
      34: extern  int comptr; /* next free slot in comment */
      35: extern  int printcom;   /* print comments, etc., if on */
      36: extern  int indent; /* level of nesting for indenting */
      37:
      38: extern  char    ibuf[];
      39: extern  char    *ip;
      40:
      41: extern  FILE    *outfil;    /* output file id */
      42: extern  FILE    *infile[];
      43: extern  char    *curfile[];
      44: extern  int infptr;
      45: extern  int linect[];
      46:
      47: extern  char    fcname[];
      48:
      49: extern  int svargc;
      50: extern  char    **svargv;
      51:
      52: #define EOS 0
      53: #define HSHSIZ  101
      54: struct  nlist {
      55:     char    *name;
      56:     char    *def;
      57:     int ydef;
      58:     struct  nlist *next;
      59: };
      60:
      61: struct nlist    *lookup();
      62: char    *install();
      63: char    *malloc();
      64: extern  char    *fcnloc;
      65:
      66: extern  char    type[];

#### Defined struct's

nlist defined in line 54; used 6 times

- in line 58-61(4)
- in /usr/src/usr.bin/ratfor/rio.c line 31(2)

#### Defined macros

COMMENT defined in line 13; used 2 times

- in /usr/src/usr.bin/ratfor/rio.c line 59, 75

CONTFLD defined in line 23; used 1 times

- in /usr/src/usr.bin/ratfor/rlex.c line 53

CRAP defined in line 12; used 29 times

- in /usr/src/usr.bin/ratfor/rio.c line 10-13(29)

DIG defined in line 11; used 17 times

- in /usr/src/usr.bin/ratfor/r1.c line 317, 334
- in /usr/src/usr.bin/ratfor/r2.c line 43
- in /usr/src/usr.bin/ratfor/rio.c line 16-17(10), 84, 101
- in /usr/src/usr.bin/ratfor/rlex.c line 180, 214

EOS defined in line 52; never used
HSHSIZ defined in line 53; never used
INDENT defined in line 18; used 2 times

- in /usr/src/usr.bin/ratfor/r2.c line 155, 169

LET defined in line 10; used 56 times

- in /usr/src/usr.bin/ratfor/r2.c line 43
- in /usr/src/usr.bin/ratfor/rio.c line 18-25(52), 84, 100
- in /usr/src/usr.bin/ratfor/rlex.c line 214

QUOTE defined in line 14; used 1 times

- in /usr/src/usr.bin/ratfor/rio.c line 141

putbak defined in line 7; used 21 times

- in /usr/src/usr.bin/ratfor/r1.c line 375
- in /usr/src/usr.bin/ratfor/rio.c line 60-64(2), 76-80(2), 86, 111, 117, 135, 145, 174, 183, 201
- in /usr/src/usr.bin/ratfor/rlex.c line 99, 154, 207-211(2), 218, 227-233(3)

#### Usage of this include

r.h used 5 times

- in /usr/src/usr.bin/ratfor/r0.c line 5
- in /usr/src/usr.bin/ratfor/r1.c line 5
- in /usr/src/usr.bin/ratfor/r2.c line 5
- in /usr/src/usr.bin/ratfor/rio.c line 5
- in /usr/src/usr.bin/ratfor/rlex.c line 5

Last modified: 1987-02-17 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 911 |