Commit b946262f authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(is_comment_to, is_commented_in)

(is_footnote_to, is_footnoted_in): Adjusted to Info_datum unification.
(is_recipient): Adjusted to Info_datum unification.  Simplified code.
parent 30527719
/*
* $Id: dbck.c,v 0.62 2001/11/03 18:03:51 ceder Exp $
* $Id: dbck.c,v 0.63 2001/11/04 14:20:08 ceder Exp $
* Copyright (C) 1991-2000 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -35,7 +35,7 @@
static const char *
rcsid = "$Id: dbck.c,v 0.62 2001/11/03 18:03:51 ceder Exp $";
rcsid = "$Id: dbck.c,v 0.63 2001/11/04 14:20:08 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -267,7 +267,7 @@ is_comment_to(Text_no comment,
switch( parent->misc_items[ i ].type )
{
case comm_in:
if ( parent->misc_items[ i ].datum.commented_in == comment )
if ( parent->misc_items[ i ].datum.text_link == comment )
return TRUE;
break;
default:
......@@ -289,7 +289,7 @@ is_commented_in(Text_no parent,
switch( child->misc_items[ i ].type )
{
case comm_to:
if ( child->misc_items[ i ].datum.comment_to == parent )
if ( child->misc_items[ i ].datum.text_link == parent )
return TRUE;
break;
default:
......@@ -311,7 +311,7 @@ is_footnote_to(Text_no footnote,
switch( parent->misc_items[ i ].type )
{
case footn_in:
if ( parent->misc_items[ i ].datum.footnoted_in == footnote )
if ( parent->misc_items[ i ].datum.text_link == footnote )
return TRUE;
break;
default:
......@@ -333,7 +333,7 @@ is_footnoted_in(Text_no parent,
switch( child->misc_items[ i ].type )
{
case footn_to:
if ( child->misc_items[ i ].datum.footnote_to == parent )
if ( child->misc_items[ i ].datum.text_link == parent )
return TRUE;
break;
default:
......@@ -1048,26 +1048,14 @@ is_recipient(Conf_no conf_no,
switch( t_stat->misc_items[ i ].type )
{
case recpt:
if ( t_stat->misc_items[ i ].datum.recipient == conf_no )
{
return TRUE;
}
break;
case cc_recpt:
if ( t_stat->misc_items[ i ].datum.cc_recipient == conf_no )
{
return TRUE;
}
break;
case bcc_recpt:
if ( t_stat->misc_items[ i ].datum.bcc_recipient == conf_no )
if ( t_stat->misc_items[ i ].datum.recipient == conf_no )
{
return TRUE;
}
break;
case rec_time:
case comm_to:
case comm_in:
......
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