# 2.11BSD#431 - /usr/src/ucb/Mail/glob.h

##### Variables

    Tflag             X
    altnames          X
    cond              X
    debug             X
    dot               X
    edit              X
    groups            X
    homedir           X
    ignore            X
    ignoreall         X
    image             X
    lexnumber         X
    lexstring         X
    loading           X
    mailname          X
    message           X
    msgCount          X
    myname            X
    noreset           X
    numberstack       X
    prevfile          X
    rcvmode           X
    readonly          X
    realscreenheight  X
    regretp           X
    regretstack       X
    saveignore        X
    sawcom            X
    screenheight      X
    screenwidth       X
    senderr           X
    sourcing          X
    srbuf             X
    string_stack      X
    stringdope        X
    variables         X

##### Macros

    NSPACE            X

##### struct's

    strings           X

       1: /*
       2:  * Copyright (c) 1980 Regents of the University of California.
       3:  * All rights reserved.
       4:  *
       5:  * Redistribution and use in source and binary forms, with or without
       6:  * modification, are permitted provided that the following conditions
       7:  * are met:
       8:  * 1. Redistributions of source code must retain the above copyright
       9:  *    notice, this list of conditions and the following disclaimer.
      10:  * 2. Redistributions in binary form must reproduce the above copyright
      11:  *    notice, this list of conditions and the following disclaimer in the
      12:  *    documentation and/or other materials provided with the distribution.
      13:  * 3. All advertising materials mentioning features or use of this software
      14:  *    must display the following acknowledgement:
      15:  *	This product includes software developed by the University of
      16:  *	California, Berkeley and its contributors.
      17:  * 4. Neither the name of the University nor the names of its contributors
      18:  *    may be used to endorse or promote products derived from this software
      19:  *    without specific prior written permission.
      20:  *
      21:  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
      22:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
      23:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
      24:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
      25:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
      26:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
      27:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
      28:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
      29:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
      30:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
      31:  * SUCH DAMAGE.
      32:  *
      33:  *	@(#)glob.h	5.20 (Berkeley) 6/25/90
      34:  */
      35:
      36: /*
      37:  * A bunch of global variable declarations lie herein.
      38:  * def.h must be included first.
      39:  */
      40:
      41: int msgCount;           /* Count of messages read in */
      42: int rcvmode;            /* True if receiving mail */
      43: int sawcom;             /* Set after first command */
      44: char    *Tflag;             /* -T temp file for netnews */
      45: int senderr;            /* An error while checking */
      46: int edit;               /* Indicates editing a file */
      47: int readonly;           /* Will be unable to rewrite file */
      48: int noreset;            /* String resets suspended */
      49: int sourcing;           /* Currently reading variant file */
      50: int loading;            /* Loading user definitions */
      51: int cond;               /* Current state of conditional exc. */
      52: FILE    *itf;               /* Input temp file buffer */
      53: FILE    *otf;               /* Output temp file buffer */
      54: int image;              /* File descriptor for image of msg */
      55: FILE    *input;             /* Current command input file */
      56: char    mailname[PATHSIZE];     /* Name of current file */
      57: char    prevfile[PATHSIZE];     /* Name of previous file */
      58: char    *homedir;           /* Path name of home directory */
      59: char    *myname;            /* My login name */
      60: off_t   mailsize;           /* Size of system mailbox */
      61: int lexnumber;          /* Number of TNUMBER from scan() */
      62: char    lexstring[STRINGLEN];       /* String from TSTRING, scan() */
      63: int regretp;            /* Pointer to TOS of regret tokens */
      64: int regretstack[REGDEP];        /* Stack of regretted tokens */
      65: char    *string_stack[REGDEP];      /* Stack of regretted strings */
      66: int numberstack[REGDEP];        /* Stack of regretted numbers */
      67: struct  message *dot;           /* Pointer to current message */
      68: struct  message *message;       /* The actual message structure */
      69: struct  var *variables[HSHSIZE];    /* Pointer to active var list */
      70: struct  grouphead   *groups[HSHSIZE];/* Pointer to active groups */
      71: struct  ignoretab   ignore[2];  /* ignored and retained fields
      72: 					   0 is ignore, 1 is retain */
      73: struct  ignoretab   saveignore[2];  /* ignored and retained fields
      74: 					   on save to folder */
      75: struct  ignoretab   ignoreall[2];   /* special, ignore all headers */
      76: char    **altnames;         /* List of alternate names for user */
      77: int debug;              /* Debug flag set */
      78: int screenwidth;            /* Screen width, or best guess */
      79: int screenheight;           /* Screen height, or best guess,
      80: 					   for "header" command */
      81: int realscreenheight;       /* the real screen height */
      82:
      83: #include <setjmp.h>
      84:
      85: jmp_buf srbuf;
      86:
      87:
      88: /*
      89:  * The pointers for the string allocation routines,
      90:  * there are NSPACE independent areas.
      91:  * The first holds STRINGSIZE bytes, the next
      92:  * twice as much, and so on.
      93:  */
      94:
      95: #define NSPACE  25          /* Total number of string spaces */
      96: struct strings {
      97:     char    *s_topFree;     /* Beginning of this area */
      98:     char    *s_nextFree;        /* Next alloctable place here */
      99:     unsigned s_nleft;       /* Number of bytes left here */
     100: } stringdope[NSPACE];

#### Defined variables

Tflag defined in line 44; used 14 times

- in /usr/src/ucb/Mail/main.c line 95-97(3)
- in /usr/src/ucb/Mail/quit.c line 155-157(3), 166, 173, 394-396(3), 405, 412-414(2)

altnames defined in line 76; used 10 times

- in /usr/src/ucb/Mail/cmd3.c line 222-223(2), 239-240(2), 696-706(6)

cond defined in line 51; used 16 times

- in /usr/src/ucb/Mail/aux.c line 281-285(2), 303-306(2)
- in /usr/src/ucb/Mail/cmd3.c line 619-631(4), 649, 655-664(3), 677-681(2)
- in /usr/src/ucb/Mail/lex.c line 294(2)

debug defined in line 77; used 4 times

- in /usr/src/ucb/Mail/main.c line 116
- in /usr/src/ucb/Mail/names.c line 129
- in /usr/src/ucb/Mail/send.c line 342
- in /usr/src/ucb/Mail/temp.c line 90

dot defined in line 67; used 41 times

- in /usr/src/ucb/Mail/cmd1.c line 73-74(2), 154, 179, 211, 319, 373, 400-402(3), 417-419(3)
- in /usr/src/ucb/Mail/cmd2.c line 68, 84, 109, 116, 122, 284-288(3), 320-327(3), 352
- in /usr/src/ucb/Mail/cmd3.c line 207, 293, 307-309(3), 591
- in /usr/src/ucb/Mail/edit.c line 104
- in /usr/src/ucb/Mail/fio.c line 208
- in /usr/src/ucb/Mail/lex.c line 418-419(2), 551
- in /usr/src/ucb/Mail/list.c line 121, 623-626(2), 763-764(2)

edit defined in line 46; used 8 times

- in /usr/src/ucb/Mail/cmd3.c line 284
- in /usr/src/ucb/Mail/edit.c line 147, 185-187(3)
- in /usr/src/ucb/Mail/lex.c line 127, 146
- in /usr/src/ucb/Mail/quit.c line 88

groups defined in line 70; used 5 times

- in /usr/src/ucb/Mail/cmd3.c line 446-450(2), 468-469(2)
- in /usr/src/ucb/Mail/vars.c line 146

homedir defined in line 58; used 5 times

- in /usr/src/ucb/Mail/cmd3.c line 168
- in /usr/src/ucb/Mail/fio.c line 336, 397
- in /usr/src/ucb/Mail/temp.c line 89-91(2)

ignore defined in line 71; used 13 times

- in /usr/src/ucb/Mail/aux.c line 621-627(3), 634-637(3)
- in /usr/src/ucb/Mail/cmd1.c line 322
- in /usr/src/ucb/Mail/cmd2.c line 152-155(2), 191, 424, 435
- in /usr/src/ucb/Mail/collect.c line 526

ignoreall defined in line 75; used 7 times

- in /usr/src/ucb/Mail/aux.c line 627
- in /usr/src/ucb/Mail/cmd2.c line 216
- in /usr/src/ucb/Mail/send.c line 97, 110, 137, 187, 218

image defined in line 54; used 12 times

- in /usr/src/ucb/Mail/lex.c line 501-503(3)
- in /usr/src/ucb/Mail/main.c line 74
- in /usr/src/ucb/Mail/names.c line 243, 249-251(2), 290, 303, 331-333(3)

lexnumber defined in line 61; used 10 times

- in /usr/src/ucb/Mail/list.c line 144-146(2), 152, 215-216(2), 499, 530-532(3), 598

lexstring defined in line 62; used 12 times

- in /usr/src/ucb/Mail/list.c line 199-203(3), 209, 215, 498-503(2), 548-549(2), 574, 596-597(2)

loading defined in line 50; used 8 times

- in /usr/src/ucb/Mail/aux.c line 282-284(2), 307-310(2)
- in /usr/src/ucb/Mail/lex.c line 210, 411, 643-646(2)

mailname defined in line 56; used 28 times

- in /usr/src/ucb/Mail/lex.c line 128-130(3), 591-595(3)
- in /usr/src/ucb/Mail/quit.c line 103, 177, 301, 309, 337-338(2), 350, 363, 370-374(3), 417, 426-427(2), 446-449(3), 460, 473, 479
- in /usr/src/ucb/Mail/v7.local.c line 64-65(2)

message defined in line 68; used 98 times

- in /usr/src/ucb/Mail/cmd1.c line 66-75(8), 154, 172, 211, 302, 317, 371, 400, 417
- in /usr/src/ucb/Mail/cmd2.c line 68, 82, 109-112(2), 122, 189, 284-286(2), 313, 320-327(3), 350
- in /usr/src/ucb/Mail/cmd3.c line 205, 290, 307, 326, 589, 598
- in /usr/src/ucb/Mail/collect.c line 529
- in /usr/src/ucb/Mail/edit.c line 104
- in /usr/src/ucb/Mail/fio.c line 204-215(8)
- in /usr/src/ucb/Mail/lex.c line 419, 551, 569-581(9)
- in /usr/src/ucb/Mail/list.c line 68-70(3), 121, 147, 175, 188, 238, 257, 290, 313, 321-324(3), 367, 623-628(4), 644, 678, 711, 725, 743-745(3), 753-755(3), 763
- in /usr/src/ucb/Mail/quit.c line 142(2), 159(2), 242(2), 346(2), 398(2), 455(2)

msgCount defined in line 41; used 55 times

- in /usr/src/ucb/Mail/cmd1.c line 67-68(2), 75, 106, 301, 316, 370
- in /usr/src/ucb/Mail/cmd2.c line 109-112(2), 163, 188, 349
- in /usr/src/ucb/Mail/collect.c line 509
- in /usr/src/ucb/Mail/edit.c line 87
- in /usr/src/ucb/Mail/fio.c line 74, 100, 202-207(2), 214-215(2)
- in /usr/src/ucb/Mail/lex.c line 142-146(2), 552, 569-581(5), 600-603(2)
- in /usr/src/ucb/Mail/list.c line 61, 68, 123, 171, 237, 256, 266, 289, 310, 321-324(2), 363, 619-623(2), 709, 723, 743, 753
- in /usr/src/ucb/Mail/quit.c line 142, 159, 175, 242, 346, 398, 455

myname defined in line 59; used 15 times

- in /usr/src/ucb/Mail/cmd3.c line 221, 238
- in /usr/src/ucb/Mail/fio.c line 315
- in /usr/src/ucb/Mail/lex.c line 63
- in /usr/src/ucb/Mail/main.c line 106
- in /usr/src/ucb/Mail/names.c line 257, 435
- in /usr/src/ucb/Mail/send.c line 369, 543
- in /usr/src/ucb/Mail/temp.c line 71-79(4), 85, 91

noreset defined in line 48; used 4 times

- in /usr/src/ucb/Mail/collect.c line 104, 374
- in /usr/src/ucb/Mail/lex.c line 492
- in /usr/src/ucb/Mail/strings.c line 103

numberstack defined in line 66; used 2 times

- in /usr/src/ucb/Mail/list.c line 499, 598

prevfile defined in line 57; used 3 times

- in /usr/src/ucb/Mail/fio.c line 320-324(2)
- in /usr/src/ucb/Mail/lex.c line 128

rcvmode defined in line 42; used 6 times

- in /usr/src/ucb/Mail/lex.c line 294(2), 304
- in /usr/src/ucb/Mail/main.c line 204, 213
- in /usr/src/ucb/Mail/temp.c line 80

readonly defined in line 47; used 10 times

- in /usr/src/ucb/Mail/edit.c line 107, 139, 151, 195
- in /usr/src/ucb/Mail/lex.c line 117-119(2), 314, 612
- in /usr/src/ucb/Mail/quit.c line 82, 391

realscreenheight defined in line 81; used 3 times

- in /usr/src/ucb/Mail/cmd1.c line 304
- in /usr/src/ucb/Mail/main.c line 286-287(2)

regretp defined in line 63; used 9 times

- in /usr/src/ucb/Mail/list.c line 497-500(4), 593-598(4), 607

regretstack defined in line 64; used 2 times

- in /usr/src/ucb/Mail/list.c line 500, 595

saveignore defined in line 73; used 5 times

- in /usr/src/ucb/Mail/cmd2.c line 135, 145, 442, 449
- in /usr/src/ucb/Mail/quit.c line 244

sawcom defined in line 43; used 4 times

- in /usr/src/ucb/Mail/cmd2.c line 101
- in /usr/src/ucb/Mail/lex.c line 145, 424, 494

screenheight defined in line 79; used 5 times

- in /usr/src/ucb/Mail/cmd1.c line 138
- in /usr/src/ucb/Mail/main.c line 279-285(4)

screenwidth defined in line 78; used 3 times

- in /usr/src/ucb/Mail/cmd1.c line 193
- in /usr/src/ucb/Mail/main.c line 288-289(2)

senderr defined in line 45; used 10 times

- in /usr/src/ucb/Mail/main.c line 218
- in /usr/src/ucb/Mail/names.c line 246, 253, 292, 300, 311, 318
- in /usr/src/ucb/Mail/send.c line 320-324(2), 331

sourcing defined in line 49; used 17 times

- in /usr/src/ucb/Mail/aux.c line 287, 299, 310
- in /usr/src/ucb/Mail/cmd3.c line 339, 407
- in /usr/src/ucb/Mail/lex.c line 168, 183, 212, 260, 280, 309, 413, 423, 496, 644-647(2)
- in /usr/src/ucb/Mail/quit.c line 57

srbuf defined in line 85; never used
string_stack defined in line 65; used 2 times

- in /usr/src/ucb/Mail/list.c line 498, 597

stringdope defined in line 100; used 8 times

- in /usr/src/ucb/Mail/strings.c line 68(2), 75-78(2), 106(2), 123(2)

variables defined in line 69; used 9 times

- in /usr/src/ucb/Mail/cmd3.c line 360-364(2), 414-415(3), 421
- in /usr/src/ucb/Mail/vars.c line 61-62(2), 130

#### Defined struct's

strings defined in line 96; used 6 times

- in /usr/src/ucb/Mail/strings.c line 61(2), 100(2), 121(2)

#### Defined macros

NSPACE defined in line 95; used 5 times

- in line 100
- in /usr/src/ucb/Mail/strings.c line 68, 75, 106, 123

#### Usage of this include

glob.h used 1 times

- in /usr/src/ucb/Mail/rcv.h line 44

Last modified: 1992-10-22 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 863 |