# 2.11BSD#431 - /usr/src/new/PORT/B/src/bint/b2exp.h

##### Macros

    L_bottom          X
    L_expr            X
    L_factor          X
    L_number          X
    L_power           X
    L_term            X
    Level             X
    N_fld             X
    Node              X
    Parsed            X
    Prio              X
    Prop              X
    S_else            X
    S_t               X
    S_tt              X
    State             X
    Trim              X
    Unp_comp          X

       1: /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
       2:
       3: /*
       4:   $Header: b2exp.h,v 1.4 85/08/22 16:42:25 timo Exp $
       5: */
       6:
       7: /* General definitions for parsing expressions */
       8:
       9: typedef struct { bool parsed, prop, trim;
      10:          intlet state, level, field;
      11:          value comp;
      12:         } expadm;
      13:
      14: typedef struct { bool prop, trim;
      15:          intlet level, field;
      16:          parsetree node;
      17:         } unpadm;
      18:
      19: #define Parsed(adm) ((adm)->parsed)
      20: #define Prop(adm)       ((adm)->prop)
      21: #define Trim(adm)   ((adm)->trim)
      22: #define State(adm)  ((adm)->state)
      23: #define Level(adm)  ((adm)->level)
      24: #define N_fld(adm)  ((adm)->field)
      25: #define Unp_comp(adm)   ((adm)->comp)
      26: #define Node(adm)   ((adm)->node)
      27:
      28: /* ********************************************************************	*/
      29: /* Levels:								*/
      30: /*									*/
      31: #define L_bottom    0
      32: #define L_term      1 /* plus, minus, join */
      33: #define L_factor    2 /* times, over */
      34: #define L_power     3 /* power */
      35: #define L_number    4 /* number  */
      36: #define L_expr      5 /* tag, repeat_text, center, (left|right)_adjust */
      37:
      38: #define Prio \
      39:     MESS(1900, "cannot determine priorities; use ( and ) to resolve")
      40:
      41: /* ******************************************************************** */
      42: /* States:								*/
      43: /*									*/
      44: #define S_t 1
      45: #define S_tt    2
      46: #define S_else  3
      47:
      48: /* ******************************************************************** */
      49:
      50: bool b_about();
      51: bool b_numtor();
      52: bool b_denomtor();
      53: bool b_plus();
      54: bool b_minus();
      55: bool b_number();
      56: bool b_behead();
      57: bool b_curtail();
      58: #ifdef NOT_USED
      59: bool b_times();
      60: bool b_over();
      61: bool b_power();
      62: bool b_join();
      63: bool b_reptext();
      64: bool b_center();
      65: bool b_leftadj();
      66: bool b_rightadj();
      67: #endif

#### Defined macros

L_bottom defined in line 31; used 9 times

- in /usr/src/new/PORT/B/src/bint/b2exp.c line 197-201(2), 208-212(2), 494, 504, 514
- in /usr/src/new/PORT/B/src/bint/b2fix.c line 227, 242

L_expr defined in line 36; used 8 times

- in /usr/src/new/PORT/B/src/bint/b2exp.c line 55-63(3), 69, 155, 196
- in /usr/src/new/PORT/B/src/bint/b2fix.c line 107, 189

L_factor defined in line 33; used 6 times

- in /usr/src/new/PORT/B/src/bint/b2exp.c line 123-127(2), 209
- in /usr/src/new/PORT/B/src/bint/b2fix.c line 166-168(2), 224

L_number defined in line 35; used 4 times

- in /usr/src/new/PORT/B/src/bint/b2exp.c line 140, 165, 210
- in /usr/src/new/PORT/B/src/bint/b2fix.c line 178

L_power defined in line 34; used 3 times

- in /usr/src/new/PORT/B/src/bint/b2exp.c line 143
- in /usr/src/new/PORT/B/src/bint/b2fix.c line 180, 225

L_term defined in line 32; used 3 times

- in /usr/src/new/PORT/B/src/bint/b2exp.c line 109, 163
- in /usr/src/new/PORT/B/src/bint/b2fix.c line 156

Level defined in line 23; used 15 times

- in /usr/src/new/PORT/B/src/bint/b2exp.c line 59, 81, 155, 163-165(2), 186(2), 196, 216, 504
- in /usr/src/new/PORT/B/src/bint/b2fix.c line 81, 189, 219(2), 230

N_fld defined in line 24; used 15 times

- in /usr/src/new/PORT/B/src/bint/b2exp.c line 36, 82-85(2), 91-92(2), 174-180(3), 533
- in /usr/src/new/PORT/B/src/bint/b2fix.c line 42-49(4), 134, 203

Node defined in line 26; used 4 times

- in /usr/src/new/PORT/B/src/bint/b2fix.c line 42-48(3), 203

Parsed defined in line 19; used 15 times

- in /usr/src/new/PORT/B/src/bint/b2exp.c line 35, 53-58(2), 67-71(2), 84, 108, 122-126(2), 139-142(2), 176, 200, 492, 532

Prio defined in line 38; used 7 times

- in /usr/src/new/PORT/B/src/bint/b2exp.c line 54, 68, 81, 591
- in /usr/src/new/PORT/B/src/bint/b2fix.c line 81, 106-111(2)

Prop defined in line 20; used 8 times

- in /usr/src/new/PORT/B/src/bint/b2exp.c line 37, 58, 196
- in /usr/src/new/PORT/B/src/bint/b2fix.c line 47, 109, 136-138(2), 198

S_else defined in line 46; used 4 times

- in /usr/src/new/PORT/B/src/bint/b2exp.c line 154, 214, 228, 493

S_t defined in line 44; used 5 times

- in /usr/src/new/PORT/B/src/bint/b2exp.c line 161, 195-198(2), 208, 514

S_tt defined in line 45; used 4 times

- in /usr/src/new/PORT/B/src/bint/b2exp.c line 193-196(2), 205, 223

State defined in line 22; used 15 times

- in /usr/src/new/PORT/B/src/bint/b2exp.c line 154, 161, 193-198(4), 205-208(2), 214, 223-228(2), 493, 513-516(3)

Trim defined in line 21; used 16 times

- in /usr/src/new/PORT/B/src/bint/b2exp.c line 86, 156, 197-200(2), 207, 215, 491, 497, 512
- in /usr/src/new/PORT/B/src/bint/b2fix.c line 84, 190, 223, 229, 239-243(3)

Unp_comp defined in line 25; used 5 times

- in /usr/src/new/PORT/B/src/bint/b2exp.c line 91-92(2), 180, 533-534(2)

#### Usage of this include

b2exp.h used 3 times

- in /usr/src/new/PORT/B/src/bint/b2exp.c line 12
- in /usr/src/new/PORT/B/src/bint/b2fix.c line 9
- in /usr/src/new/PORT/B/src/bint/b2gen.c line 10

Last modified: 1985-08-27 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 559 |