Commit 7804adef authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Fix in misc_info handling.

parent 7e2ed1b9
Mon Sep 23 19:39:55 1991 Per Cederqvist (ceder at lysator)
* text.c (sender): handle a sent_at correctly.
Sat Sep 21 02:12:24 1991 Per Cederqvist (ceder at lysator)
* "isc.h" is now known as "isc-interface.h" to avoid confusion
......
/*
* $Id: text.c,v 0.6 1991/09/21 13:06:43 ceder Exp $
* $Id: text.c,v 0.7 1991/09/23 18:15:43 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -28,7 +28,7 @@
* All atomic calls that deals with texts.
*/
static char *rcsid = "$Id: text.c,v 0.6 1991/09/21 13:06:43 ceder Exp $";
static char *rcsid = "$Id: text.c,v 0.7 1991/09/23 18:15:43 ceder Exp $";
#include <time.h>
#include <stdlib.h>
......@@ -756,16 +756,13 @@ sender(Text_stat * t_stat,
case comm_in:
case footn_to:
case footn_in:
case sent_at:
return 0; /* No sender. */
case loc_no:
case rec_time:
break; /* These may come before a sent_by. */
case sent_at:
log("ERROR: sender(): Misc_item out of order.\n");
return 0;
#ifndef COMPILE_CHECKS
default:
log("ERROR: sender(): Illegal misc_item found.\n");
......@@ -880,56 +877,6 @@ is_comm_sender(Text_stat * text_s,
return FALSE;
}
#if 0
/*
* Check if ACTPERS has sent this text as a footnote to parent.
*/
static Bool
is_footn_sender(Text_stat * text_s,
Text_no parent)
{
int i;
if ( !ACTPERS )
{
return FALSE;
}
for ( i = 0; i < text_s->no_of_misc; i++ )
{
switch( text_s->misc_items[ i ].type )
{
case footn_to:
if ( text_s->misc_items[ i ].datum.footnote_to == parent
&& sender ( text_s, i ) == ACTPERS )
{
return TRUE;
}
break;
case recpt:
case cc_recpt:
case loc_no:
case rec_time:
case comm_in:
case comm_to:
case footn_in:
case sent_by:
case sent_at:
break;
#ifndef COMPILE_CHECKS
default:
restart_kom("is_footn_sender(): Illegal misc_item found.\n");
#endif
}
}
return FALSE;
}
#endif
/*
* Check if ACTPERS is allowed to add a footnote to a text. Sets errno if
......
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