Commit 05d5d173 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Don't crash if a person has read more than 65535 texts after the first

unread.  Complete the renaming of aux.h.  Fix several minor errors in
Protocol-A.texi.  Generate a stable machine-readable file with the
syntax of Protocol A.
parent 6cc31e43
2003-08-28 Per Cederqvist <ceder@ceder.dyndns.org>
Don't crash if a person has read more than 65535 texts after the
first unread.
* src/server/ram-parse.c (fparse_read_range_0): Use int, not
short, in case a person has read many texts after the first unread
text.
Complete the renaming of aux.h.
* scripts/lyskomd-copyrights: src/server/aux.h has been renamed to
src/server/aux-no.h.
Fix several minor errors in Protocol-A.texi.
* doc/Protocol-A.texi (Protocol Requests): The status codes for
who-is-on-ident and get-session-info-ident were "r" but should
have been "O".
(login-old): Added info about when this request became obsolete in
the section.
(get-person-stat-old): Ditto.
(lookup-name): Ditto.
(get-conf-stat-older): Ditto.
(mark-text-old): Ditto.
(who-is-on-old): Ditto.
(broadcast): Ditto.
(get-session-info): Ditto.
(re-lookup-person): Ditto.
(re-lookup-conf): Ditto.
(lookup-person): Ditto.
(lookup-conf): Ditto.
(query-read-texts-10): Ditto.
(get-membership-10): Ditto.
(set-connection-time-format): Fixed typo in the @section heading.
(Asynchronous Messages): The status codes for async-new-text-old
was "r" but should have been "O".
(async-new-text-old): Added async number to the @section heading.
(async-i-am-off): Ditto.
(async-i-am-on-obsolete): Ditto.
(async-new-name): Ditto.
(async-i-am-on): Ditto.
(async-sync-db): Ditto.
(async-leave-conf): Ditto.
(async-login): Ditto.
(async-broadcast): Ditto.
(async-rejected-connection): Ditto.
(async-send-message): Ditto.
(async-logout): Ditto.
(async-deleted-text): Ditto.
(async-new-text): Ditto.
(async-new-recipient): Ditto.
(async-sub-recipient): Ditto.
(async-new-membership): Ditto.
(async-new-user-area): Ditto.
(async-new-presentation): Ditto.
(async-new-motd): Ditto.
(async-text-aux-changed): Ditto.
Generate a stable machine-readable file with the syntax of
Protocol A.
* doc/checkargs.py (defined_request_names): New variable.
(defined_request_names): New variable.
(defined_async_names): New variable.
(set_values): New variable.
(tt): New variable.
(tr): New variable.
(rt): New variable.
(rr): New variable.
(at): New variable.
(ar): New variable.
(has_suffix): New function.
(remove_suffix): New function.
(prot_a_type.__init__): Initialize __protover.
(prot_a_type.line_no): Renamed from line().
(prot_a_type.use): New argument: protover. All callers
and derived methods updated.
(prot_a_type.protover): New method.
(prot_a_builtin.use_recurse): Ditto.
(prot_a_simple.base_type): New method.
(prot_a_simple.array): New method.
(prot_a_alternate.type_a): New method.
(prot_a_alternate.type_b): New method.
(prot_a_struct.fields): New method.
(prot_a_bitstring.add_field): Store the bits in the order they are
defined.
(prot_a_bitstring.bits): New method.
(prot_a_selection.fields): New method.
(prot_a_enumeration_of.base_type): New method.
(prot_a_msg): New class.
(prot_a_request): New class.
(prot_a_async): New class.
(menu): New class.
(reader.menu_re): New constant.
(reader.getc_eofok): If a menu line for a request or async message
is found, store the information.
(reader.menu): New method.
(lexer.section_re): New method.
(lexer.__init__): __implemented_conftypes and
__implemented_privbits both maps to None, not a random number.
(lexer.run): If __toplevel_at() returns a non-None value, return
it.
(lexer.__toplevel_at): Return the result of the called "toplevel_"
method instead of always returning None.
(lexer.toplevel_set): New method.
(lexer.toplevel_section): New method.
(lexer.toplevel_findex): Store information about the request in a
prot_a_request instance. Check the corresponding @section heading
and @menu item.
(lexer.toplevel_amindex): Ditto for asyncs.
(lexer.__parse_async): New API.
(lexer.toplevel_bye): Generate stable names. Return the error
flag instead of calling sys.exit().
(lexer.__parse_request): New API.
(lexer.__parse_type): New argument: protover.
(lexer.__parse_request_arg): Ditto. Return the parsed info.
(lexer.__bad_arg): Fixed minor typo.
(lexer.generate_stable_names): New method.
(generate_stable_output): New function.
2003-08-26 Per Cederqvist <ceder@ceder.dyndns.org> 2003-08-26 Per Cederqvist <ceder@ceder.dyndns.org>
* Release 2.1.1. * Release 2.1.1.
......
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