Commit 311eb7db authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(parse_next_misc): Handle bcc_recpt. Fix usage of the COMPILE_CHECKS macro.

parent ece028b0
/* /*
* $Id: misc-parser.c,v 0.12 1998/07/08 13:41:32 ceder Exp $ * $Id: misc-parser.c,v 0.13 1999/05/20 06:50:53 ceder Exp $
* Copyright (C) 1990, 1991, 1993, 1994, 1995 Lysator Academic Computer Association. * Copyright (C) 1990, 1991, 1993, 1994, 1995 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
*/ */
static const char * static const char *
rcsid = "$Id: misc-parser.c,v 0.12 1998/07/08 13:41:32 ceder Exp $"; rcsid = "$Id: misc-parser.c,v 0.13 1999/05/20 06:50:53 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -117,16 +117,23 @@ parse_next_misc (const Misc_info ** info, ...@@ -117,16 +117,23 @@ parse_next_misc (const Misc_info ** info,
{ {
case recpt: /* These two are so similar that they can */ case recpt: /* These two are so similar that they can */
case cc_recpt: /* Be handled in the same clause */ case cc_recpt: /* Be handled in the same clause */
case bcc_recpt:
if ((*info)->type == recpt) if ((*info)->type == recpt)
{ {
result.type = m_recpt; result.type = m_recpt;
result.recipient = (*(*info)++).datum.recipient; result.recipient = (*(*info)++).datum.recipient;
} }
else else if ((*info)->type == cc_recpt)
{ {
result.type = m_cc_recpt; result.type = m_cc_recpt;
result.cc_recipient = (*(*info)++).datum.cc_recipient; result.cc_recipient = (*(*info)++).datum.cc_recipient;
} }
else
{
result.type = m_bcc_recpt;
result.bcc_recipient = (*(*info)++).datum.bcc_recipient;
}
/* There should follow a 'Local no', but check nevertheless */ /* There should follow a 'Local no', but check nevertheless */
if (! NEXT_IS (loc_no)) if (! NEXT_IS (loc_no))
...@@ -205,9 +212,14 @@ parse_next_misc (const Misc_info ** info, ...@@ -205,9 +212,14 @@ parse_next_misc (const Misc_info ** info,
#ifndef COMPILE_CHECKS #ifndef COMPILE_CHECKS
default: default:
#endif
case unknown_info:
case loc_no:
case rec_time:
case sent_by:
case sent_at:
result.type = m_error; result.type = m_error;
break; break;
#endif
} }
return result; return result;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment