Commit 9a54b2e2 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Use a range-based representation in core for the texts a user has

read.  The external representation is not yet affected.  (Bug 52).
parent d1c16c66
2002-11-06 Per Cederqvist <ceder@ceder.dyndns.org>
Use a range-based representation in core for the texts a user has
read. The external representation is not yet affected. (Bug 52).
* src/include/kom-types.h (struct read_range): New struct.
(Membership): Removed fields last_text_read, no_of_read and
read_texts. Added fields no_of_read_ranges, read_ranges and
skip_read_texts.
* src/server/ram-parse.c (fparse_read_range_0): New static
function that handles the new range-based representation of
memberships.
(fparse_membership_2): Use it.
(fparse_membership_0): Use it.
(fparse_membership_list_0): Handle the new range-based
representation of memberships.
(fparse_membership_list_2): Ditto.
* src/server/ram-output.c (foutput_read_ranges_0): New static
function that handles the new range-based representation of
memberships.
(foutput_membership_0): Use it.
(foutput_membership_2): Use it.
* src/server/prot-a-output.c (prot_a_output_read_texts): New
static function that handles the new range-based representation of
memberships.
(prot_a_output_membership_old): Use it.
* src/server/person.c (do_query_read_texts): Handle new
range-based representation of memberships.
* src/server/memory.c (clear_membership): Handle new
range-based representation of memberships.
(copy_membership): Ditto.
(init_membership): Ditto.
* src/server/membership.c (copy_public_confs): Handle new
range-based representation of memberships.
(adjust_read): Ditto.
(insert_loc_no): Ditto.
(do_add_member): Ditto.
(do_sub_member): Ditto.
(check_membership): Ditto.
(mark_as_read): Ditto.
(do_get_membership): Ditto.
(get_unread_confs): Ditto.
(set_unread): Ditto.
(set_last_read): Ditto.
(last_text_read): New static inline function.
* src/server/dbck.c (check_membership): Handle range-based
representation of memberships.
Xenofarm warnings.
* scripts/xenofarm.sh: Ignore warnings about reduced hard ulimit.
2002-11-05 Per Cederqvist <ceder@ceder.dyndns.org> 2002-11-05 Per Cederqvist <ceder@ceder.dyndns.org>
Spell-check Protocol-A.texi. Spell-check Protocol-A.texi.
......
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