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

(L2g_reverse_iterator): New struct.

(Text_mapping_reverse): New struct.
parent 3fed73dc
/*
* $Id: kom-types.h,v 0.61 2003/08/20 18:27:26 ceder Exp $
* $Id: kom-types.h,v 0.62 2003/08/22 06:45:22 ceder Exp $
* Copyright (C) 1990-1999, 2001-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -401,6 +401,18 @@ typedef struct {
Text_no tno; /* The Text_no to use */
} L2g_iterator;
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_reverse_iterator;
/* This struct holds the information that is needed to output a
Text-Mapping. Please note that the protocol A Text-Mapping data
type looks very different from this structure. */
......@@ -410,6 +422,16 @@ typedef struct {
const Local_to_global *l2g;
} Text_mapping;
/* This struct holds the information that is needed to output a
Text-Mapping in the reverse order. Please note that the protocol A
Text-Mapping data type looks very different from this
structure. */
typedef struct {
Local_text_no ceiling;
unsigned long no_of_texts;
const Local_to_global *l2g;
} Text_mapping_reverse;
/* For performance reasons, sort the fields in increasing size.
The comments about number of bits are true on a Sun Sparc-2, not
necessarily anything else. The code should work anyhow. */
......
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