# 2.11BSD#431 - /usr/src/old/compact/compact.h

##### Variables

    bottom            X
    dict              X
    dir               X
    dirp              X
    dirq              X
    flist             X
    head              X
    in                X

##### Macros

    COMPACTED         X
    EF                X
    FBIT              X
    LEFT              X
    LLEAF             X
    NC                X
    NEW               X
    NF                X
    PACKED            X
    RIGHT             X
    RLEAF             X
    SEEN              X

##### struct's

    charac            X
    fpoint            X
    index             X
    node              X
    son               X

##### unions's

    cio               X
    treep             X

##### typedef's

    longint           X

       1: /*	compact.h	4.6	84/08/25	*/
       2:
       3: #if defined(vax) || defined(sun)
       4: typedef int longint;
       5: #else
       6: typedef long longint;
       7: #endif
       8:
       9: #include <sys/param.h>
      10: #include <sys/stat.h>
      11: #include <sys/dir.h>
      12: #include <stdio.h>
      13:
      14: #define COMPACTED 017777
      15: #define PACKED  017437
      16:
      17: struct charac {
      18: #if defined(vax) || defined(pdp11)
      19:     char    lob, hib;
      20: #else
      21:     char    hib, lob;
      22: #endif
      23: };
      24:
      25: union cio {
      26:     struct  charac chars;
      27:     short   integ;
      28: };
      29:
      30: #define LLEAF   010
      31: #define RLEAF   04
      32: #define SEEN    02
      33: #define FBIT    01
      34:
      35: #define EF  0400
      36: #define NC  0401
      37:
      38: #define NF  (NC+1)
      39:
      40: struct fpoint {
      41:     struct  node *fp;
      42:     int flags;
      43: } in[NF];
      44:
      45: struct index {
      46:     struct  node *pt;
      47:     struct  index *next;
      48: } dir[2*NF], *head, *flist, *dirp, *dirq;
      49:
      50: #define NEW flist; flist = flist->next
      51:
      52: union treep {
      53:     struct  node *p;
      54:     int ch;
      55: };
      56:
      57: struct node {
      58:     struct  fpoint fath;
      59:     struct son {
      60:         union   treep sp;
      61:         struct  index *top;
      62:         longint count;
      63:     } sons[2];
      64: #define LEFT    0
      65: #define RIGHT   1
      66: } dict[NF], *bottom;
      67:
      68: FILE    *cfp;
      69: FILE    *uncfp;

#### Defined variables

bottom defined in line 66; used 30 times

- in /usr/src/old/compact/compact.c line 42, 68-69(2), 312-328(9)
- in /usr/src/old/compact/tree.c line 16-23(5), 57
- in /usr/src/old/compact/uncompact.c line 41, 62-63(2), 201-217(9)

dict defined in line 66; used 27 times

- in /usr/src/old/compact/compact.c line 42-43(3), 312-326(9)
- in /usr/src/old/compact/tree.c line 70
- in /usr/src/old/compact/uncompact.c line 41-42(3), 130, 155, 201-215(9)

dir defined in line 48; used 4 times

- in /usr/src/old/compact/compact.c line 37-38(2)
- in /usr/src/old/compact/uncompact.c line 36-37(2)

dirp defined in line 48; used 16 times

- in /usr/src/old/compact/compact.c line 39-44(5), 69, 315
- in /usr/src/old/compact/tree.c line 136-137(2)
- in /usr/src/old/compact/uncompact.c line 38-43(5), 63, 204

dirq defined in line 48; used 11 times

- in /usr/src/old/compact/compact.c line 44, 70, 316-319(3)
- in /usr/src/old/compact/tree.c line 137
- in /usr/src/old/compact/uncompact.c line 43, 64, 205-208(3)

flist defined in line 48; used 9 times

- in line 50(3)
- in /usr/src/old/compact/compact.c line 68-70(2)
- in /usr/src/old/compact/tree.c line 119-120(2)
- in /usr/src/old/compact/uncompact.c line 62-64(2)

head defined in line 48; used 8 times

- in /usr/src/old/compact/compact.c line 38-40(3)
- in /usr/src/old/compact/tree.c line 72, 136
- in /usr/src/old/compact/uncompact.c line 37-39(3)

in defined in line 43; used 25 times

- in /usr/src/old/compact/compact.c line 45, 67, 193-194(2), 235, 312(2), 319-321(3)
- in /usr/src/old/compact/tree.c line 20-25(4), 47-48(2), 147-150(3)
- in /usr/src/old/compact/uncompact.c line 44, 201(2), 208-210(3)

#### Defined struct's

charac defined in line 17; used 2 times

- in line 26(2)

fpoint defined in line 40; used 2 times

- in line 58(2)

index defined in line 45; used 8 times

- in line 47(2), 61(2)
- in /usr/src/old/compact/tree.c line 13(2), 45(2)

node defined in line 57; used 15 times

- in line 41-46(2), 53
- in /usr/src/old/compact/compact.c line 186(2)
- in /usr/src/old/compact/tree.c line 10(2), 39-43(4), 141(2)
- in /usr/src/old/compact/uncompact.c line 124(2)

son defined in line 59; used 4 times

- in /usr/src/old/compact/tree.c line 11(2), 44(2)

#### Defined union's

cio defined in line 25; used 26 times

- in /usr/src/old/compact/compact.c line 17-18(4), 189-190(4), 230-231(4), 274-275(4)
- in /usr/src/old/compact/tree.c line 12(2)
- in /usr/src/old/compact/uncompact.c line 17-18(4), 168-169(4)

treep defined in line 52; used 6 times

- in line 60(2)
- in /usr/src/old/compact/tree.c line 40(2), 142(2)

#### Defined typedef's

longint defined in line 4; used 5 times

- in line 6, 62
- in /usr/src/old/compact/compact.c line 133, 146
- in /usr/src/old/compact/tree.c line 42

#### Defined macros

COMPACTED defined in line 14; used 3 times

- in /usr/src/old/compact/compact.c line 284, 304
- in /usr/src/old/compact/uncompact.c line 179

EF defined in line 35; used 8 times

- in /usr/src/old/compact/compact.c line 45, 111, 312, 328
- in /usr/src/old/compact/uncompact.c line 44, 137, 201, 217

FBIT defined in line 33; used 10 times

- in /usr/src/old/compact/compact.c line 45, 193-198(2), 320
- in /usr/src/old/compact/tree.c line 20-23(2), 48, 133
- in /usr/src/old/compact/uncompact.c line 44, 209

LEFT defined in line 64; used 19 times

- in /usr/src/old/compact/compact.c line 43, 312-315(3), 324-327(2)
- in /usr/src/old/compact/tree.c line 18, 61-65(4), 83-84(2)
- in /usr/src/old/compact/uncompact.c line 42, 201-204(3), 213-216(2)

LLEAF defined in line 30; used 7 times

- in /usr/src/old/compact/compact.c line 323
- in /usr/src/old/compact/tree.c line 23, 98-99(2), 146
- in /usr/src/old/compact/uncompact.c line 135, 212

NC defined in line 36; used 11 times

- in line 38
- in /usr/src/old/compact/compact.c line 238-239(2), 312, 321, 327
- in /usr/src/old/compact/uncompact.c line 139-140(2), 201, 210, 216

NEW defined in line 50; used 4 times

- in /usr/src/old/compact/compact.c line 316
- in /usr/src/old/compact/tree.c line 15, 125
- in /usr/src/old/compact/uncompact.c line 205

NF defined in line 38; used 3 times

- in line 43-48(2), 66

PACKED defined in line 15; used 2 times

- in /usr/src/old/compact/compact.c line 289
- in /usr/src/old/compact/uncompact.c line 181

RIGHT defined in line 65; used 23 times

- in /usr/src/old/compact/compact.c line 43, 68-69(2), 313-316(4), 326-328(2)
- in /usr/src/old/compact/tree.c line 17, 68-69(2), 75-76(2)
- in /usr/src/old/compact/uncompact.c line 42, 62-63(2), 202-205(4), 215-217(2)

RLEAF defined in line 31; used 10 times

- in /usr/src/old/compact/compact.c line 322-323(2)
- in /usr/src/old/compact/tree.c line 23-24(2), 98-99(2), 146
- in /usr/src/old/compact/uncompact.c line 135, 211-212(2)

SEEN defined in line 32; used 9 times

- in /usr/src/old/compact/compact.c line 45, 235, 320-321(2)
- in /usr/src/old/compact/tree.c line 20-25(2)
- in /usr/src/old/compact/uncompact.c line 44, 209-210(2)

#### Usage of this include

compact.h used 3 times

- in /usr/src/old/compact/compact.c line 15
- in /usr/src/old/compact/tree.c line 5
- in /usr/src/old/compact/uncompact.c line 14

Last modified: 1984-08-26 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1397 |