# 2.11BSD#431 - /usr/src/new/PORT/B/src/bed/tabl.h

##### Macros

    Code              X
    Invcode           X
    MAXCHILD          X
    TABLEN            X

##### struct's

    classinfo         X
    table             X

##### typedef's

    classelem         X
    classptr          X

       1: /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1984. */
       2: /* $Header: tabl.h,v 2.0 84/06/18 15:47:24 guido Exp $ */
       3:
       4: /*
       5:  * B editor -- Grammar table structure.
       6:  */
       7:
       8:
       9: typedef char classelem;
      10:     /* change into short if symbol or lexical values can exceed 127! */
      11:
      12: typedef classelem *classptr;
      13:
      14: struct classinfo {
      15:     classptr c_class; /* List of possible classes */
      16:         /* The following fields are initialized dynamically */
      17:     classptr c_insert; /* List of pairs (char, class) for insertion */
      18:     classptr c_append; /* Ditto for append to child already there */
      19:     classptr c_join; /* Ditto for join of child with new node */
      20: };
      21:
      22: #define MAXCHILD 4 /* Max. # of children per node. */
      23:
      24:
      25: struct table {
      26:     short r_symbol; /* Redundant, used for checking consistency */
      27:     string r_name;
      28:     string r_repr[MAXCHILD+1];
      29:         /* There are entries [0..nch] inclusive. */
      30:     struct classinfo *r_class[MAXCHILD];
      31:         /* Must be indexed with [ich-1] !! */
      32:     node r_node;
      33: };
      34:
      35: extern struct table *table;
      36:
      37: #define TABLEN (Hole+1)
      38:
      39: extern char code_array[];
      40: extern char invcode_array[];
      41: extern int lastcode;
      42:
      43: #define Code(c) code_array[c]
      44: #define Invcode(code) invcode_array[code]

#### Defined struct's

classinfo defined in line 14; used 192 times

- in line 30(2)
- in /usr/src/new/PORT/B/src/bed/gram.c line 28(2), 149-150(4), 340(2)
- in /usr/src/new/PORT/B/src/bed/inse.c line 33(2), 102(2), 143(2), 214(2)
- in /usr/src/new/PORT/B/src/bed/mkboot.c line 23(2), 41-42(4), 175(2), 292(2), 313(4), 327(2), 347(2), 406(2)
- in /usr/src/new/PORT/B/src/bed/que2.c line 606(2), 663(2), 739(2), 789(2)
- in /usr/src/new/PORT/B/src/bed/tabl.c line 170(2), 178-235(50), 241-254(14), 266-268(4), 287-375(76)

table defined in line 25; used 28 times

- in line 35(2)
- in /usr/src/new/PORT/B/src/bed/gram.c line 195(2), 217(2), 326(2)
- in /usr/src/new/PORT/B/src/bed/inse.c line 147(2), 213(2)
- in /usr/src/new/PORT/B/src/bed/mkboot.c line 158(2), 178(2), 362(2)
- in /usr/src/new/PORT/B/src/bed/que2.c line 605(2), 660(2), 736(2)
- in /usr/src/new/PORT/B/src/bed/tabl.c line 386(2), 519(2)

#### Defined typedef's

classelem defined in line 9; used 69 times

- in line 12
- in /usr/src/new/PORT/B/src/bed/gram.c line 334
- in /usr/src/new/PORT/B/src/bed/mkboot.c line 181-183(3), 276
- in /usr/src/new/PORT/B/src/bed/tabl.c line 169, 177-203(13), 213-215(2), 221-231(5), 240, 247-253(4), 265-267(2), 286-374(35)

classptr defined in line 12; used 22 times

- in line 15-19(4)
- in /usr/src/new/PORT/B/src/bed/gram.c line 30, 215
- in /usr/src/new/PORT/B/src/bed/inse.c line 34, 103, 144, 215
- in /usr/src/new/PORT/B/src/bed/mkboot.c line 25, 171, 179-180(2), 270-276(4)
- in /usr/src/new/PORT/B/src/bed/que2.c line 607, 664, 740, 791

#### Defined macros

Code defined in line 43; used 5 times

- in /usr/src/new/PORT/B/src/bed/inse.c line 36, 158, 262
- in /usr/src/new/PORT/B/src/bed/mkboot.c line 210
- in /usr/src/new/PORT/B/src/bed/que2.c line 792

Invcode defined in line 44; used 2 times

- in /usr/src/new/PORT/B/src/bed/mkboot.c line 198, 224

MAXCHILD defined in line 22; used 16 times

- in line 28-30(2)
- in /usr/src/new/PORT/B/src/bed/edit.c line 304, 324
- in /usr/src/new/PORT/B/src/bed/gram.c line 135, 151, 169, 201, 304, 392
- in /usr/src/new/PORT/B/src/bed/inse.c line 223
- in /usr/src/new/PORT/B/src/bed/mkboot.c line 59, 164, 319, 369-372(2)

TABLEN defined in line 37; used 20 times

- in /usr/src/new/PORT/B/src/bed/gram.c line 77, 93, 112, 135, 161, 197, 226, 300, 386
- in /usr/src/new/PORT/B/src/bed/inse.c line 62, 112, 164, 268
- in /usr/src/new/PORT/B/src/bed/mkboot.c line 50, 160, 196, 221, 301-302(2), 318

#### Usage of this include

tabl.h used 7 times

- in /usr/src/new/PORT/B/src/bed/edit.c line 15
- in /usr/src/new/PORT/B/src/bed/gram.c line 14
- in /usr/src/new/PORT/B/src/bed/ins2.c line 14
- in /usr/src/new/PORT/B/src/bed/inse.c line 14
- in /usr/src/new/PORT/B/src/bed/mkboot.c line 11
- in /usr/src/new/PORT/B/src/bed/que2.c line 17
- in /usr/src/new/PORT/B/src/bed/tabl.c line 14

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