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

##### Macros

    Cnil              X
    Nowhere           X
    Oldspace          X
    Space             X
    SpaceRound        X

##### struct's

    cell              X

##### typedef's

    cell              X

       1: /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1984. */
       2: /* $Header: cell.h,v 2.0 84/06/18 15:46:34 guido Exp $ */
       3:
       4: /*
       5:  * B editor -- Definitions for linked lists of screen lines, baptized `cells'.
       6:  * (This is NOT an abstract data type!)
       7:  */
       8:
       9: struct cell {
      10:     struct cell *c_link;
      11:     node c_data;
      12:     short c_onscreen;
      13:     short c_oldindent;
      14:     short c_newindent;
      15:     short c_length;
      16:     char c_oldvhole;
      17:     char c_newvhole; /* Yes if this line contains a `vhole' */
      18:     char c_oldfocus;
      19:     char c_newfocus; /* Yes if this line contains underlining */
      20: };
      21:
      22: typedef struct cell cell;
      23:
      24: #define Cnil ((cell*) NULL)
      25:
      26: #define Nowhere (-9999)
      27:
      28: #define SpaceRound(x) ((indent + (x) + llength - 1) / llength)
      29: #define Space(p) \
      30:     SpaceRound((p)->c_length + (p)->c_newindent + (p)->c_newvhole)
      31: #define Oldspace(p) \
      32:     SpaceRound((p)->c_length + (p)->c_newindent + (p)->c_newvhole)
      33:
      34: cell *replist();
      35: cell *build();
      36:
      37: extern int llength;
      38: extern int winheight;
      39: extern int indent;

#### Defined struct's

cell defined in line 9; used 4 times

- in line 10(2), 22(2)

#### Defined typedef's

cell defined in line 22; used 42 times

- in line 34-24(3)
- in /usr/src/new/PORT/B/src/bed/cell.c line 22-24(2), 42-53(8), 95-98(2), 119(2), 137-139(2), 163-164(2), 204-210(3), 252-259(6)
- in /usr/src/new/PORT/B/src/bed/outp.c line 108-110(2), 161
- in /usr/src/new/PORT/B/src/bed/scrn.c line 19, 32, 45-46(2), 133, 161, 224, 407, 436

#### Defined macros

Cnil defined in line 24; used 9 times

- in /usr/src/new/PORT/B/src/bed/cell.c line 79, 104, 127, 226, 258-259(2), 320
- in /usr/src/new/PORT/B/src/bed/scrn.c line 272, 417

Nowhere defined in line 26; used 17 times

- in /usr/src/new/PORT/B/src/bed/cell.c line 177, 215, 284, 315, 323
- in /usr/src/new/PORT/B/src/bed/outp.c line 192
- in /usr/src/new/PORT/B/src/bed/scrn.c line 64, 72, 102-105(2), 115, 147, 176, 189, 200, 411, 442

Oldspace defined in line 31; used 2 times

- in /usr/src/new/PORT/B/src/bed/scrn.c line 72, 412

Space defined in line 29; used 12 times

- in /usr/src/new/PORT/B/src/bed/cell.c line 276, 317, 325
- in /usr/src/new/PORT/B/src/bed/outp.c line 171
- in /usr/src/new/PORT/B/src/bed/scrn.c line 66, 72, 82, 137, 166, 202, 228, 443

SpaceRound defined in line 28; used 2 times

- in line 30-32(2)

#### Usage of this include

cell.h used 4 times

- in /usr/src/new/PORT/B/src/bed/cell.c line 12
- in /usr/src/new/PORT/B/src/bed/comm.c line 19
- in /usr/src/new/PORT/B/src/bed/outp.c line 15
- in /usr/src/new/PORT/B/src/bed/scrn.c line 14

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