Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
311eb7db
Commit
311eb7db
authored
May 20, 1999
by
Per Cederqvist
Browse files
(parse_next_misc): Handle bcc_recpt. Fix usage of the COMPILE_CHECKS macro.
parent
ece028b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libraries/libcommon/misc-parser.c
View file @
311eb7db
/*
* $Id: misc-parser.c,v 0.1
2
199
8
/0
7/08 13:41:32
ceder Exp $
* $Id: misc-parser.c,v 0.1
3
199
9
/0
5/20 06:50:53
ceder Exp $
* Copyright (C) 1990, 1991, 1993, 1994, 1995 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -48,7 +48,7 @@
*/
static
const
char
*
rcsid
=
"$Id: misc-parser.c,v 0.1
2
199
8
/0
7/08 13:41:32
ceder Exp $"
;
rcsid
=
"$Id: misc-parser.c,v 0.1
3
199
9
/0
5/20 06:50:53
ceder Exp $"
;
#include
"rcs.h"
USE
(
rcsid
);
...
...
@@ -117,16 +117,23 @@ parse_next_misc (const Misc_info ** info,
{
case
recpt
:
/* These two are so similar that they can */
case
cc_recpt
:
/* Be handled in the same clause */
case
bcc_recpt
:
if
((
*
info
)
->
type
==
recpt
)
{
result
.
type
=
m_recpt
;
result
.
recipient
=
(
*
(
*
info
)
++
).
datum
.
recipient
;
}
else
else
if
((
*
info
)
->
type
==
cc_recpt
)
{
result
.
type
=
m_cc_recpt
;
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 */
if
(
!
NEXT_IS
(
loc_no
))
...
...
@@ -205,9 +212,14 @@ parse_next_misc (const Misc_info ** info,
#ifndef COMPILE_CHECKS
default:
#endif
case
unknown_info
:
case
loc_no
:
case
rec_time
:
case
sent_by
:
case
sent_at
:
result
.
type
=
m_error
;
break
;
#endif
}
return
result
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment