lex.c revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
273e421813f295d65aab512f508e8fb575d997d4gouldtj/***********************************************************************
273e421813f295d65aab512f508e8fb575d997d4gouldtj* This software is part of the BSD package *
273e421813f295d65aab512f508e8fb575d997d4gouldtj*Copyright (c) 1978-2012 The Regents of the University of California an*
273e421813f295d65aab512f508e8fb575d997d4gouldtj* Redistribution and use in source and binary forms, with or *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* without modification, are permitted provided that the following *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* conditions are met: *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* 1. Redistributions of source code must retain the above *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* copyright notice, this list of conditions and the *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* following disclaimer. *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* 2. Redistributions in binary form must reproduce the above *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* copyright notice, this list of conditions and the *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* following disclaimer in the documentation and/or other *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* materials provided with the distribution. *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* 3. Neither the name of The Regents of the University of California*
273e421813f295d65aab512f508e8fb575d997d4gouldtj* names of its contributors may be used to endorse or *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* promote products derived from this software without *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* specific prior written permission. *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* POSSIBILITY OF SUCH DAMAGE. *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* Redistribution and use in source and binary forms, with or without *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* modification, are permitted provided that the following conditions *
57e8d5fd57a890842b51a13207e222fcf953816cJazzyNico* 1. Redistributions of source code must retain the above copyright *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* notice, this list of conditions and the following disclaimer. *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* 2. Redistributions in binary form must reproduce the above copyright *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* notice, this list of conditions and the following disclaimer in *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* the documentation and/or other materials provided with the *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* distribution. *
a649057d824379292b26fc4d4cc99ba46b9eb26eKris* 3. Neither the name of the University nor the names of its *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* contributors may be used to endorse or promote products derived *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* from this software without specific prior written permission. *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS "AS IS" *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS *
273e421813f295d65aab512f508e8fb575d997d4gouldtj* OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, *
#pragma prototyped
#include "mailx.h"
int fd;
if (name) {
quit();
if (dir) {
if (!dir) {
imap_setptr((char*)0, 0);
goto nomail;
if (isedit)
goto nomail;
exit(0);
holdsigs();
relsesigs();
incfile(void)
int newsize;
holdsigs();
relsesigs();
unstack();
fileclear();
commands(void)
int eofloop = 0;
#if SIGTSTP
#if SIGTTOU
#if SIGTTIN
setexit();
moretop();
sreset();
unstack();
eofloop = 0;
char* next;
if (isalpha(*s)) {
goto out;
next++;
s = next;
while (isspace(*s))
goto out;
goto out;
goto out;
goto out;
case MSGLIST:
case NDMLIST:
case STRLIST:
case RAWLIST:
case NOLIST:
out:
unstack();
* msgcount is state.msg.count before the file was read.
struct msg*
char* name;
case FIMAP:
case FMH:
return dot;
announce()
version(void* a)
license(void* a)
version(a);
commands();