* complete copyright information.
*/
-#include <h/mh.h>
-#include <h/mf.h>
-#include <h/utils.h>
+#include "h/mh.h"
+#include "h/mf.h"
+#include "h/utils.h"
/*
* static prototypes
static char *routepath = NULL;
static char *grp = NULL;
static char *note = NULL;
-static char err[BUFSIZ];
+static char err[BUFSIZ+39];
static char adr[BUFSIZ];
static struct adrx adrxs2;
case LX_END:
return DONE;
- case LX_LBRK: /* sigh (2) */
+ case LX_LBRK: /* sigh (2) */
goto get_addr;
case LX_AT: /* sigh (3) */
}
}
- case LX_DOT: /* sigh (1) */
+ case LX_DOT: /* sigh (1) */
pers = add (".", pers);
goto more_phrase;
return NOTOK;
}
- case LX_SEMI: /* no host */
+ case LX_SEMI: /* no host */
case LX_COMA:
case LX_END:
ingrp = glevel;
return domain (buffer);
case LX_SEMI: /* if in group */
- case LX_RBRK: /* no host */
+ case LX_RBRK: /* no host */
case LX_COMA:
case LX_END:
return OK;
host = add (buffer, host);
continue;
- case LX_AT: /* sigh (0) */
+ case LX_AT: /* sigh (0) */
mbox = add (host, add ("%", mbox));
free (host);
host = NULL;
bp = buffer;
*bp = 0;
if (!cp)
- return (last_lex = LX_END);
+ return last_lex = LX_END;
gotat = isat (cp);
c = *cp++;
c = *cp++;
if (c == 0) {
cp = NULL;
- return (last_lex = LX_END);
+ return last_lex = LX_END;
}
if (c == '(') {
switch (c = *cp++) {
case 0:
cp = NULL;
- return (last_lex = LX_ERR);
+ return last_lex = LX_ERR;
case '\\':
ADDCHR(c);
if ((c = *cp++) == 0) {
cp = NULL;
- return (last_lex = LX_ERR);
+ return last_lex = LX_ERR;
}
ADDCHR(c);
continue;
switch (c = *cp++) {
case 0:
cp = NULL;
- return (last_lex = LX_ERR);
+ return last_lex = LX_ERR;
case '\\':
ADDCHR(c);
if ((c = *cp++) == 0) {
cp = NULL;
- return (last_lex = LX_ERR);
+ return last_lex = LX_ERR;
}
/* FALLTHRU */
default:
case '"':
ADDCHR(c);
*bp = 0;
- return (last_lex = LX_QSTR);
+ return last_lex = LX_QSTR;
}
}
switch (c = *cp++) {
case 0:
cp = NULL;
- return (last_lex = LX_ERR);
+ return last_lex = LX_ERR;
case '\\':
ADDCHR(c);
if ((c = *cp++) == 0) {
cp = NULL;
- return (last_lex = LX_ERR);
+ return last_lex = LX_ERR;
}
/* FALLTHRU */
default:
case ']':
ADDCHR(c);
*bp = 0;
- return (last_lex = LX_DLIT);
+ return last_lex = LX_DLIT;
}
}
*bp = 0;
for (i = 0; special[i].lx_chr != 0; i++)
if (c == special[i].lx_chr)
- return (last_lex = special[i].lx_val);
+ return last_lex = special[i].lx_val;
if (iscntrl ((unsigned char) c))
- return (last_lex = LX_ERR);
+ return last_lex = LX_ERR;
for (;;) {
if ((c = *cp++) == 0)
my_lex_buffull:
/* Out of buffer space. *bp is the last byte in the buffer */
*bp = 0;
- return (last_lex = LX_ERR);
+ return last_lex = LX_ERR;
}