Commit 60be7915 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Unify several fields in the Info_datum union. This makes it possible

to handle recpt, cc_recpt and bcc_recpt by the same code in many
places, resulting in the removal of approximately 300 lines of code.
(Bug 139).
parent 5c3fcfd6
2001-11-04 Per Cederqvist <ceder@moria>
Unify several fields in the Info_datum union. This makes it
possible to handle recpt, cc_recpt and bcc_recpt by the same code
in many places, resulting in the removal of approximately 300
lines of code. (Bug 139).
* src/include/kom-types.h (Info_datum): Removed cc_recipient and
bcc_recipient -- use recipient instead. Removed comment_to,
commented_in, footnote_to and footnoted_in, and added text_link
as a replacement.
* src/server/text.c (find_recipient): Adjusted to Info_datum
unification. Simplified code.
(is_member_in_recpt): Ditto.
(do_sub_recpt): Ditto.
(is_sender): Ditto.
(filter_secret_info): Ditto.
(person_text_read_access): Ditto.
(do_delete_text): Ditto.
(check_double_subm): Ditto.
(check_double_comm): Ditto.
(create_text_check_misc): Ditto.
(create_text_add_aux): Ditto.
(is_comment_to): Adjusted to Info_datum unification.
(is_footnote_to): Ditto.
(do_add_footnote): Ditto.
(do_add_comment): Ditto.
(do_add_bcc_recpt): Ditto.
(do_add_cc_recpt): Ditto.
(do_sub_comment): Ditto.
(do_sub_footnote): Ditto.
(is_comm_sender): Ditto.
(create_text_add_miscs): Ditto.
* src/server/text-garb.c (garb_text): Adjusted to Info_datum
unification. Simplified code.
* src/server/ram-parse.c (fparse_misc_info): Ditto.
* src/server/ram-output.c (foutput_misc_info): Ditto.
* src/server/prot-a-parse.c (prot_a_parse_misc_info): Ditto.
* src/server/prot-a-output.c (prot_a_output_misc_info): Ditto.
* src/server/membership.c (add_rec_time): Ditto.
* src/libraries/libcommon/misc-parser.c (parse_next_misc):
Adjusted to Info_datum unification.
* src/server/dbck.c (is_comment_to, is_commented_in)
(is_footnote_to, is_footnoted_in): Adjusted to Info_datum
unification.
(is_recipient): Adjusted to Info_datum unification. Simplified
code.
2001-11-03 Per Cederqvist <ceder@moria>
Add references to Bugzilla for all relevant FIXME comments, and
......
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