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

Removed code within #ifdef PROT_a. It was never used, and is

obsoleted by the aux-items.
parent d263521d
/* /*
* $Id: kom-types.h,v 0.35 1999/05/18 13:06:26 byers Exp $ * $Id: kom-types.h,v 0.36 1999/05/20 06:49:09 ceder Exp $
* Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association. * Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -80,42 +80,6 @@ typedef unsigned long Text_no; ...@@ -80,42 +80,6 @@ typedef unsigned long Text_no;
typedef unsigned long Local_text_no; typedef unsigned long Local_text_no;
typedef unsigned long Session_no; typedef unsigned long Session_no;
#ifdef PROT_a
/*
* To uniquely identify a person, conference or text, three numbers
* are used: Universe, Site and X_{recpt,person,text}. The universe is
* omitted when it is LysKOM, or is implied by a echo conference.
*/
/*
* LysKOM, RFC-822, FidoNet, News are examples of universes.
*/
/*typedef unsigned long Universe;*/
/*
* JAKOM, lysator.liu.se, 2:504/113, foo.bar.com are examples of sites
* in the above universes. (Note that comp.lang.c is _not_ a site in
* the News universe).
*/
/*typedef unsigned long Site;*/
/*
* Fritt Forum, ceder, Per Cederqvist, comp.lang.c are examples of
* x_recpt in the above universes.
*/
/*
* But for now, we have a System_id (sum of Universe and Site) and a
* Global_x.
*/
typedef unsigned long System_id;
typedef unsigned long Global_recpt;
typedef unsigned long Global_person;
typedef unsigned long Global_text;
#endif
#define MAX_PERS_NO ((Pers_no) USHRT_MAX) #define MAX_PERS_NO ((Pers_no) USHRT_MAX)
#define MAX_CONF_NO ((Conf_no) USHRT_MAX) #define MAX_CONF_NO ((Conf_no) USHRT_MAX)
...@@ -177,30 +141,15 @@ typedef enum { ...@@ -177,30 +141,15 @@ typedef enum {
comm_in = 3, /* 3 Commented in (text) */ comm_in = 3, /* 3 Commented in (text) */
footn_to = 4, /* 4 This is a footnote to (text) */ footn_to = 4, /* 4 This is a footnote to (text) */
footn_in = 5, /* 5 Footnote to this text in (text) */ footn_in = 5, /* 5 Footnote to this text in (text) */
#ifdef PROT_a
x_author = 10, /* 10 External author (Global_name). */
#endif
loc_no = 6, /* 6 Sequence number within conference */ loc_no = 6, /* 6 Sequence number within conference */
rec_time = 7, /* 7 Received at (time) */ rec_time = 7, /* 7 Received at (time) */
sent_by = 8, /* 8 Sent by (person) */ sent_by = 8, /* 8 Sent by (person) */
sent_at = 9, /* 9 Sent at (time) */ sent_at = 9, /* 9 Sent at (time) */
bcc_recpt = 15, /* 15 BCC recipient (for kannedom) */ bcc_recpt = 15, /* 15 BCC recipient (for kannedom) */
#ifdef PROT_a
,
x_person = 11, /* 11 External person id. (Global_name). */
x_recpt = 12, /* 12 External recipient. (Global_name). */
x_text = 13, /* 13 External text. (Global_text). */
x_system = 14 /* 14 External system identification (System_id). */
#endif
unknown_info = 4711 /* Internal use only. Unknown misc item encountered */ unknown_info = 4711 /* Internal use only. Unknown misc item encountered */
} Info_type; } Info_type;
#ifdef PROT_a
typedef String Global_name;
#endif
typedef union { typedef union {
Conf_no recipient; Conf_no recipient;
Conf_no cc_recipient; Conf_no cc_recipient;
...@@ -209,22 +158,10 @@ typedef union { ...@@ -209,22 +158,10 @@ typedef union {
Text_no commented_in; Text_no commented_in;
Text_no footnote_to; Text_no footnote_to;
Text_no footnoted_in; Text_no footnoted_in;
#ifdef PROT_a
Global_name x_author; /* Protocol a. */
#endif
Local_text_no local_no; Local_text_no local_no;
Time received_at; Time received_at;
Pers_no sender; Pers_no sender;
Time sent_at; Time sent_at;
#ifdef PROT_a
Global_name global_person;
Global_name global_recpt;
Global_text global_text;
System_id system_id;
#endif
Info_type unknown_type; Info_type unknown_type;
} Info_datum; } Info_datum;
......
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