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

##### Macros

    ATBEGIN           X
    ATEND             X
    Ecopy             X
    Emove             X
    Erelease          X
    FHOLE             X
    SUBLIST           X
    SUBRANGE          X
    SUBSET            X
    VHOLE             X
    WHOLE             X

       1: /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1984. */
       2: /* $Header: supr.h,v 2.2 84/07/11 15:20:05 guido Exp $ */
       3:
       4: /*
       5:  * B editor -- Superstructure for fine focusing.
       6:  */
       7:
       8: /*
       9:  * Interpretation of mode and s1, s2, s3:
      10:  * WHOLE: whole node is the focus;
      11:  * SUBSET: s1/2, s2/2 are first and last child number under focus;
      12:  *         even means fixed text, odd means child node;
      13:  * SUBRANGE: s1/2 is fixed text number; s2, s3 are 1st&last char;
      14:  *         if s1 is odd, ditto for child which must be "text";
      15:  * VHOLE: s1/2 is fixed text number; volatile hole before char s2;
      16:  *         if s1 is odd, ditto for child which must be "text".
      17:  * ATEND: a volatile hole just after the entire node.
      18:  * ATBEGIN: ditto just before it.
      19:  * SUBLIST: s3 indicates how many times downrite() bring us
      20:  *         beyond the focus (i.e., the focus is the subtree below
      21:  *         ep->focus EXCLUDING the subtree reached after s3 times
      22:  *         downrite().  Note s3 > 0.
      23:  * FHOLE: Like VHOLE but in Fixed text.
      24:  *
      25:  * It is assumed that if the focus is a substring of fixed text
      26:  * (SUBRANGE, VHOLE), it does not begin or end with lay-out of spaces.
      27:  */
      28:
      29: #define WHOLE   'W'
      30: #define SUBSET  'S'
      31: #define SUBRANGE    'R'
      32: #define VHOLE   'V'
      33: #define ATEND   'E'
      34: #define ATBEGIN 'B'
      35: #define SUBLIST 'L'
      36: #define FHOLE   'F'
      37:
      38: typedef struct {
      39:     path focus;
      40:     char mode;
      41:     char /*bool*/ copyflag;
      42:     char /*bool*/ spflag;
      43:     char /*bool*/ changed;
      44:     short /*0..2*MAXCHILD+1*/ s1;
      45:     short s2;
      46:     short s3;
      47:     short highest;
      48:     value copybuffer; /* Actually, a queue */
      49:     value oldmacro; /* A text */
      50:     value newmacro; /* A text, too */
      51:     int generation;
      52: } environ;
      53:
      54: #ifdef STRUCTASS
      55: #define Emove(e1, e2) ((e2) = (e1))
      56: #else !STRUCTASS
      57: #define Emove(e1, e2) emove(&(e1), &(e2))
      58: #endif !STRUCTASS
      59: #define Ecopy(e1, e2) ecopy(&(e1), &(e2))
      60: #define Erelease(e) erelease(&(e))

#### Defined macros

ATBEGIN defined in line 34; used 22 times

- in /usr/src/new/PORT/B/src/bed/deco.c line 224, 234, 294
- in /usr/src/new/PORT/B/src/bed/goto.c line 107, 130
- in /usr/src/new/PORT/B/src/bed/ins2.c line 68, 170
- in /usr/src/new/PORT/B/src/bed/move.c line 464
- in /usr/src/new/PORT/B/src/bed/outp.c line 67, 81
- in /usr/src/new/PORT/B/src/bed/que2.c line 170, 226, 494
- in /usr/src/new/PORT/B/src/bed/supr.c line 231, 389, 408, 446, 466, 490, 753, 765, 772

ATEND defined in line 33; used 35 times

- in /usr/src/new/PORT/B/src/bed/demo.c line 390
- in /usr/src/new/PORT/B/src/bed/goto.c line 109, 128, 154
- in /usr/src/new/PORT/B/src/bed/ins2.c line 65, 113, 137, 148, 176, 222-228(3), 270
- in /usr/src/new/PORT/B/src/bed/move.c line 361, 395, 432
- in /usr/src/new/PORT/B/src/bed/que1.c line 415, 449, 484
- in /usr/src/new/PORT/B/src/bed/que2.c line 173, 219, 277, 288, 320, 330-335(2), 346, 432, 446, 497
- in /usr/src/new/PORT/B/src/bed/supr.c line 367, 393, 460, 482, 783

Ecopy defined in line 59; used 11 times

- in /usr/src/new/PORT/B/src/bed/demo.c line 287, 379, 437, 457, 529, 792
- in /usr/src/new/PORT/B/src/bed/que2.c line 69
- in /usr/src/new/PORT/B/src/bed/scrn.c line 273-278(3)
- in /usr/src/new/PORT/B/src/bed/sugg.c line 362

Emove defined in line 57; used 5 times

- in /usr/src/new/PORT/B/src/bed/demo.c line 435, 534, 802
- in /usr/src/new/PORT/B/src/bed/que2.c line 82
- in /usr/src/new/PORT/B/src/bed/sugg.c line 367

Erelease defined in line 60; used 19 times

- in /usr/src/new/PORT/B/src/bed/demo.c line 93, 207, 404, 418, 425, 438, 456-462(3), 531-533(2), 797-801(2)
- in /usr/src/new/PORT/B/src/bed/que2.c line 72, 81
- in /usr/src/new/PORT/B/src/bed/scrn.c line 308-309(2)
- in /usr/src/new/PORT/B/src/bed/sugg.c line 364-366(2)

FHOLE defined in line 36; used 30 times

- in /usr/src/new/PORT/B/src/bed/deco.c line 142, 148, 215
- in /usr/src/new/PORT/B/src/bed/edit.c line 108
- in /usr/src/new/PORT/B/src/bed/ins2.c line 60
- in /usr/src/new/PORT/B/src/bed/inse.c line 81, 151-152(2)
- in /usr/src/new/PORT/B/src/bed/outp.c line 72
- in /usr/src/new/PORT/B/src/bed/que1.c line 242, 280, 342, 439
- in /usr/src/new/PORT/B/src/bed/que2.c line 148, 193, 774
- in /usr/src/new/PORT/B/src/bed/supr.c line 67, 241, 379, 404, 418, 455, 477, 497, 740-745(2), 755
- in /usr/src/new/PORT/B/src/bed/wide.c line 33, 168, 306

SUBLIST defined in line 35; used 7 times

- in /usr/src/new/PORT/B/src/bed/deco.c line 257, 380
- in /usr/src/new/PORT/B/src/bed/goto.c line 314
- in /usr/src/new/PORT/B/src/bed/move.c line 118
- in /usr/src/new/PORT/B/src/bed/supr.c line 127
- in /usr/src/new/PORT/B/src/bed/wide.c line 96, 124

SUBRANGE defined in line 31; used 9 times

- in /usr/src/new/PORT/B/src/bed/deco.c line 105, 140
- in /usr/src/new/PORT/B/src/bed/goto.c line 286
- in /usr/src/new/PORT/B/src/bed/move.c line 273, 288
- in /usr/src/new/PORT/B/src/bed/supr.c line 211
- in /usr/src/new/PORT/B/src/bed/wide.c line 46, 74, 81

SUBSET defined in line 30; used 23 times

- in /usr/src/new/PORT/B/src/bed/deco.c line 194, 346, 551
- in /usr/src/new/PORT/B/src/bed/goto.c line 125, 151
- in /usr/src/new/PORT/B/src/bed/inse.c line 77
- in /usr/src/new/PORT/B/src/bed/line.c line 235
- in /usr/src/new/PORT/B/src/bed/move.c line 69, 86, 142, 160, 253
- in /usr/src/new/PORT/B/src/bed/supr.c line 85, 113, 147, 185, 196, 284, 925
- in /usr/src/new/PORT/B/src/bed/wide.c line 68, 86, 111, 231

VHOLE defined in line 32; used 28 times

- in /usr/src/new/PORT/B/src/bed/deco.c line 120, 219
- in /usr/src/new/PORT/B/src/bed/edit.c line 108
- in /usr/src/new/PORT/B/src/bed/inse.c line 57, 70, 150, 196
- in /usr/src/new/PORT/B/src/bed/que1.c line 242, 280, 356, 404
- in /usr/src/new/PORT/B/src/bed/que2.c line 401
- in /usr/src/new/PORT/B/src/bed/sugg.c line 256, 302, 339, 359
- in /usr/src/new/PORT/B/src/bed/supr.c line 67, 241, 379, 404, 455, 477, 497, 747, 760
- in /usr/src/new/PORT/B/src/bed/wide.c line 32, 168, 306

WHOLE defined in line 29; used 53 times

- in /usr/src/new/PORT/B/src/bed/deco.c line 112, 156, 278, 284-289(2), 310, 384
- in /usr/src/new/PORT/B/src/bed/demo.c line 133, 153, 652, 795
- in /usr/src/new/PORT/B/src/bed/goto.c line 72, 103, 139, 249
- in /usr/src/new/PORT/B/src/bed/ins2.c line 130, 142, 157, 181
- in /usr/src/new/PORT/B/src/bed/line.c line 206
- in /usr/src/new/PORT/B/src/bed/move.c line 55, 98, 122, 152, 182, 418, 456
- in /usr/src/new/PORT/B/src/bed/outp.c line 64, 82
- in /usr/src/new/PORT/B/src/bed/que2.c line 168, 224, 266, 300, 414, 565
- in /usr/src/new/PORT/B/src/bed/sugg.c line 306
- in /usr/src/new/PORT/B/src/bed/supr.c line 81, 94, 123, 139, 192, 205, 218, 226, 233, 245, 784
- in /usr/src/new/PORT/B/src/bed/wide.c line 40, 59, 92, 105, 261, 318

#### Usage of this include

supr.h used 17 times

- in /usr/src/new/PORT/B/src/bed/comm.c line 17
- in /usr/src/new/PORT/B/src/bed/deco.c line 15
- in /usr/src/new/PORT/B/src/bed/demo.c line 17
- in /usr/src/new/PORT/B/src/bed/edit.c line 17
- in /usr/src/new/PORT/B/src/bed/goto.c line 13
- in /usr/src/new/PORT/B/src/bed/gram.c line 13
- in /usr/src/new/PORT/B/src/bed/ins2.c line 11
- in /usr/src/new/PORT/B/src/bed/inse.c line 13
- in /usr/src/new/PORT/B/src/bed/line.c line 16
- in /usr/src/new/PORT/B/src/bed/move.c line 11
- in /usr/src/new/PORT/B/src/bed/outp.c line 13
- in /usr/src/new/PORT/B/src/bed/que1.c line 12
- in /usr/src/new/PORT/B/src/bed/que2.c line 14
- in /usr/src/new/PORT/B/src/bed/scrn.c line 12
- in /usr/src/new/PORT/B/src/bed/sugg.c line 15
- in /usr/src/new/PORT/B/src/bed/supr.c line 12
- in /usr/src/new/PORT/B/src/bed/wide.c line 11

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