restore creation of y.tab.c
[unix-history] / usr / src / usr.bin / mail / glob.h
CommitLineData
e6a88a51
KS
1/*
2 * A bunch of global variable declarations lie herein.
3 * def.h must be included first.
4 */
5
6/*
b1b8fd1c 7 * Sccs Id = "@(#)glob.h 2.8 %G%";
e6a88a51
KS
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 */
31840345 16char *Tflag; /* -T temp file for netnews */
e6a88a51 17char nosrc; /* Don't source /usr/lib/Mail.rc */
f9130461 18char noheader; /* Suprress initial header listing */
e6a88a51
KS
19int selfsent; /* User sent self something */
20int senderr; /* An error while checking */
21int edit; /* Indicates editing a file */
df1ae8ec 22int readonly; /* Will be unable to rewrite file */
e6a88a51
KS
23int noreset; /* String resets suspended */
24int sourcing; /* Currently reading variant file */
ef4abe32 25int loading; /* Loading user definitions */
798b9bdb 26int shudann; /* Print headers when possible */
b04d2a11 27int cond; /* Current state of conditional exc. */
e6a88a51
KS
28FILE *itf; /* Input temp file buffer */
29FILE *otf; /* Output temp file buffer */
df1ae8ec 30FILE *pipef; /* Pipe file we have opened */
e6a88a51
KS
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 */
b8200d6f 37int baud; /* Output baud rate */
e6a88a51 38char mbox[PATHSIZE]; /* Name of mailbox file */
b02711eb 39char mailname[PATHSIZE]; /* Name of system mailbox */
e6a88a51
KS
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 */
145d4d65 44char myname[PATHSIZE]; /* My login id */
e6a88a51
KS
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 */
b1b8fd1c 56struct ignore *ignore[HSHSIZE];/* Pointer to ignored fields */
d1361008 57char **altnames; /* List of alternate names for user */
e6a88a51
KS
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
c42869b9 73#define NSPACE 25 /* Total number of string spaces */
e6a88a51
KS
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];