Commit 2d7cb21e authored by Per Cederqvist's avatar Per Cederqvist
Browse files

New requests: local-to-global-reverse and map-created-texts-reverse.

(Bug 1092).  Added support for reverse local-to-global iterators.
parent a4cb1582
2003-08-22 Per Cederqvist <>
New requests: local-to-global-reverse and
map-created-texts-reverse. (Bug 1092).
* doc/Protocol-A.texi (Mapping Local to Global Text Numbers):
Renamed the field "later-texts-exists" in "Text-Mapping" to
"more-texts-exists", so that it is useful for the new requests
defined below. Updated the descriptions of some fields for the
same purpose.
(local-to-global): Added a link to local-to-global-reverse.
(map-created-texts): Added a link to map-created-texts-reverse.
(set-connection-time-format): Added a missing protocol number.
(local-to-global-reverse): New request.
(map-created-texts-reverse): New request.
* src/server/fncdef.txt: Added local_to_global_reverse and
* src/include/services.h (map_created_texts_reverse): New
(local_to_global_reverse): New request.
* src/server/text.c (local_to_global_reverse): New function.
* src/server/person.c (map_created_texts_reverse): New request.
* src/include/kom-types.h (Text_mapping_reverse): New struct.
* src/server/prot-a.c (prot_a_reply): Handle
* src/server/prot-a-output.h, src/server/prot-a-output.c
(prot_a_output_text_mapping_reverse): New function.
* src/server/connections.h (enum res_type): Added
(union result_holder): Added text_mapping_reverse.
* src/server/testsuite/renumber.el
(renumber-lyskom-send-simple-expect-indented): New function.
* src/server/testsuite/lyskomd.0/00.exp: Added test cases for
local-to-global-reverse and map-created-texts-reverse.
* src/server/testsuite/lyskomd.0/01.exp: Ditto.
* src/server/testsuite/lyskomd.0/03.exp: Ditto.
Added support for reverse local-to-global iterators.
* src/include/kom-types.h (L2g_reverse_iterator): New struct.
* src/server/local-to-global.h (l2gi_searchsome_reverse): New
(l2gi_prev): New function.
* src/server/ (check-l2g): New target.
* src/server/local-to-global.c (find_block_index_key_reverse): New
static function.
(l2gi_searchsome_reverse): New function.
(l2gi_prev): New function.
* src/server/testsuite/test-l2g.c (main): Handle command "b", for
testing backwards iterators. ("r", "R", and "I" were all taken).
* src/server/testsuite/l2g.0/07.exp: Added test cases for reverse
* src/server/testsuite/l2g.0/10.exp: Ditto.
* src/server/testsuite/l2g.0/11.exp: Ditto.
2003-08-20 Per Cederqvist <>
Code cleanup. (Bug 1097).
Supports Markdown
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