Commit 6c0cfa62 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(struct l2g_block_info): New forward declaration.

(Local_to_global): New type.
(L2g_iterator): New type.
(L2g_iterator_as_text_list): New type.
(Conference): The texts member is now a Local_to_global, not a Text_list.
(Person): The created_texts member is now a Local_to_global, not a Text_list.
parent 04e88933
/*
* $Id: kom-types.h,v 0.25 1998/06/14 14:50:27 byers Exp $
* $Id: kom-types.h,v 0.26 1998/07/26 16:38:43 ceder Exp $
* Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -412,6 +412,31 @@ typedef struct {
Aux_item_list aux_item_list; /* System aux items */
/* and maybe more... */
} Info;
struct l2g_block_info;
/* Nothing outside local-to-global.c should access the contents of a
Local_to_global directly. Use the accessor functions declared in
local-to-global.h instead. */
typedef struct {
int num_blocks;
Local_text_no first_unused;
struct l2g_block_info * blocks;
} Local_to_global;
typedef struct {
const Local_to_global *l2g;
const struct l2g_block_info *binfo;
int arrindex;
Local_text_no beginval; /* First index in the search */
Local_text_no endval; /* Last index in the search + 1 */
int search_ended; /* 1 if finished, 0 otherwise */
Local_text_no lno; /* The Local_text_no to use */
Text_no tno; /* The Text_no to use */
} L2g_iterator;
typedef L2g_iterator L2g_iterator_as_text_list;
/* For performance reasons, sort the fields in increasing size.
The comments about number of bits are true on a Sun Sparc-2, not
......@@ -448,7 +473,7 @@ typedef struct {
unsigned long no_of_texts;
#else
Member_list members; /* List of members in conf */
Text_list texts; /* List of texts */
Local_to_global texts; /* List of texts */
#endif
} Conference;
......@@ -495,7 +520,7 @@ typedef struct {
unsigned short no_of_marks; /* This many marked texts */
unsigned short no_of_confs; /* Member in this many confs */
#else /* SERVER */
Text_list created_texts;
Local_to_global created_texts;
Mark_list marks; /* List of marked texts */
Membership_list conferences; /* List of conferences the person is
* a member 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