restore creation of y.tab.c
[unix-history] / usr / src / usr.bin / mail / glob.h
... / ...
CommitLineData
1/*
2 * A bunch of global variable declarations lie herein.
3 * def.h must be included first.
4 */
5
6/*
7 * Sccs Id = "@(#)glob.h 2.8 %G%";
8 */
9
10int msgCount; /* Count of messages read in */
11int mypid; /* Current process id */
12int rcvmode; /* True if receiving mail */
13int sawcom; /* Set after first command */
14int hflag; /* Sequence number for network -h */
15char *rflag; /* -r address for network */
16char *Tflag; /* -T temp file for netnews */
17char nosrc; /* Don't source /usr/lib/Mail.rc */
18char noheader; /* Suprress initial header listing */
19int selfsent; /* User sent self something */
20int senderr; /* An error while checking */
21int edit; /* Indicates editing a file */
22int readonly; /* Will be unable to rewrite file */
23int noreset; /* String resets suspended */
24int sourcing; /* Currently reading variant file */
25int loading; /* Loading user definitions */
26int shudann; /* Print headers when possible */
27int cond; /* Current state of conditional exc. */
28FILE *itf; /* Input temp file buffer */
29FILE *otf; /* Output temp file buffer */
30FILE *pipef; /* Pipe file we have opened */
31int image; /* File descriptor for image of msg */
32FILE *input; /* Current command input file */
33char *editfile; /* Name of file being edited */
34char *sflag; /* Subject given from non tty */
35int outtty; /* True if standard output a tty */
36int intty; /* True if standard input a tty */
37int baud; /* Output baud rate */
38char mbox[PATHSIZE]; /* Name of mailbox file */
39char mailname[PATHSIZE]; /* Name of system mailbox */
40int uid; /* The invoker's user id */
41char mailrc[PATHSIZE]; /* Name of startup file */
42char deadletter[PATHSIZE]; /* Name of #/dead.letter */
43char homedir[PATHSIZE]; /* Path name of home directory */
44char myname[PATHSIZE]; /* My login id */
45off_t mailsize; /* Size of system mailbox */
46int lexnumber; /* Number of TNUMBER from scan() */
47char lexstring[STRINGLEN]; /* String from TSTRING, scan() */
48int regretp; /* Pointer to TOS of regret tokens */
49int regretstack[REGDEP]; /* Stack of regretted tokens */
50char *stringstack[REGDEP]; /* Stack of regretted strings */
51int numberstack[REGDEP]; /* Stack of regretted numbers */
52struct message *dot; /* Pointer to current message */
53struct message *message; /* The actual message structure */
54struct var *variables[HSHSIZE]; /* Pointer to active var list */
55struct grouphead *groups[HSHSIZE];/* Pointer to active groups */
56struct ignore *ignore[HSHSIZE];/* Pointer to ignored fields */
57char **altnames; /* List of alternate names for user */
58int debug; /* Debug flag set */
59int rmail; /* Being called as rmail */
60
61#include <setjmp.h>
62
63jmp_buf srbuf;
64
65
66/*
67 * The pointers for the string allocation routines,
68 * there are NSPACE independent areas.
69 * The first holds STRINGSIZE bytes, the next
70 * twice as much, and so on.
71 */
72
73#define NSPACE 25 /* Total number of string spaces */
74struct strings {
75 char *s_topFree; /* Beginning of this area */
76 char *s_nextFree; /* Next alloctable place here */
77 unsigned s_nleft; /* Number of bytes left here */
78} stringdope[NSPACE];