#include <signal.h>
-#define bcmp(b1,b2,length) memcmp(b1, b2, length)
-#define bcopy(b1,b2,length) memcpy(b2, b1, length)
-#define bcpy(b1,b2,length) memcmp(b1, b2, length)
-#define bzero(b,length) memset(b, 0, length)
-
#ifdef HAVE_KILLPG
# define KILLPG(pgrp,sig) killpg(pgrp,sig);
#else
** This worked fine, until one day: a message with no body portion arrived.
** Then the
**
-** while (eom(c = Getc(iob), iob))
+** while (eom(c = getc(iob), iob))
** continue;
**
** loop caused m_getfld() to return FMTERR. So, that logic was changed to
static unsigned char *matchc(int, char *, int, char *);
static unsigned char *locc(int, unsigned char *, unsigned char);
-#define Getc(iob) getc(iob)
#define eom(c,iob) (msg_style != MS_DEFAULT && \
(((c) == *msg_delim && m_Eom(c,iob)) ||\
(eom_action && (*eom_action)(c))))
register unsigned char *bp, *cp, *ep, *sp;
register int cnt, c, i, j;
- if ((c = Getc(iob)) < 0) {
+ if ((c = getc(iob)) < 0) {
msg_count = 0;
*buf = 0;
return FILEEOF;
if (eom(c, iob)) {
if (! eom_action) {
/* flush null messages */
- while ((c = Getc(iob)) >= 0 && eom(c, iob))
+ while ((c = getc(iob)) >= 0 && eom(c, iob))
;
if (c >= 0)
ungetc(c, iob);
case FLD:
if (c == '\n' || c == '-') {
/* we hit the header/body separator */
- while (c != '\n' && (c = Getc(iob)) >= 0)
+ while (c != '\n' && (c = getc(iob)) >= 0)
;
- if (c < 0 || (c = Getc(iob)) < 0 || eom(c, iob)) {
+ if (c < 0 || (c = getc(iob)) < 0 || eom(c, iob)) {
if (! eom_action) {
/* flush null messages */
- while ((c = Getc(iob)) >= 0 && eom(c, iob))
+ while ((c = getc(iob)) >= 0 && eom(c, iob))
;
if (c >= 0)
ungetc(c, iob);
if (msg_style == MS_MMDF) {
/* flush extra msg hdrs */
- while ((c = Getc(iob)) >= 0 && eom(c, iob))
+ while ((c = getc(iob)) >= 0 && eom(c, iob))
;
if (c >= 0)
ungetc(c, iob);