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
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
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
Space
defined in line
29; used 12 times
Usage of this include