Commit cf818fcc authored by Per Cederqvist's avatar Per Cederqvist

Change the external file format of a Local_to_global. Added

statistics to Local_to_global.  Make a lot of functions in
ram-output.c static.  Increase const awareness.  Some minor
improvements to memory handling.  Remove useless compiler warnings.
Test suite improvement.
parent e63bbb0b
1999-04-05 Per Cederqvist <ceder@gratia>
Change the external file format of a Local_to_global.
* src/server/testsuite/l2g.0/09.exp: Adjusted to new external
format of Local_to_global.
* db-crypt/db/lyskomd-data: Adapted to new format of
Local_to_global objects.
* src/server/local-to-global.c (l2g_read): New file format.
(put_ulong): New static function.
(l2g_write): New file format.
Added statistics to Local_to_global.
* src/server/ramkomd.c (dump_exit_statistics): Call dump_l2g_stats.
* src/server/local-to-global.h: Comments added and improved.
(dump_l2g_stats): New function.
* src/server/local-to-global.c (nr_constructs): New static
variable, used to gather statistics. Changed all functions to set
it where appropriate.
(nr_l2gs): Likewise.
(nr_l2gs_peak): Likewise.
(nr_destructs): Likewise.
(nr_clears): Likewise.
(nr_copies): Likewise.
(nr_joins): Likewise.
(nr_joined_blocks): Likewise.
(nr_blocks): Likewise.
(nr_blocks_peak): Likewise.
(nr_blocks_sparse): Likewise.
(nr_blocks_sparse_peak): Likewise.
(sparse_skip_cost): Likewise.
(nr_sparse_compactions): Likewise.
(nr_sparsifications): Likewise.
(l2g_destruct): Actually fill the destructed object with garbage
data, unless NDEBUG is defined.
(dump_l2g_stats): New function.
Make a lot of functions in ram-output.c static. Increase const
awareness.
* src/server/ram-output.c (foutput_person_0): Added const
qualifier to the person argument.
(foutput_person_2): Likewise.
(foutput_person): Likewise.
(foutput_conference_2): Added const qualifier to the conf_c
argument.
(foutput_aux_flags): Now static.
(foutput_aux_item): Now static.
(foutput_aux_item_list): Now static. Added const qualifier to the
aux argument.
(foutput_membership_type): Now static.
(foutput_string): Now static.
(foutput_priv_bits): Now static.
(foutput_personal_flags): Now static.
(foutput_text_list): Now static.
(foutput_mark_list): Added const qualifier to the mark_list
argument.
(foutput_mark): Now static.
(foutput_membership_list): Now static.
(foutput_time): Now static.
(foutput_member_list): Now static.
(foutput_member): Now static.
(foutput_conf_type): Now static.
(foutput_misc_info): Now static.
(foutput_ulong): Now static.
* src/server/ram-output.h: Track changes in ram-output.c.
* src/include/kom-types.h (Text_mapping): The l2g pointer is
const.
Some minor improvements to memory handling.
* src/server/memory.c (free_conference): Call l2g_destruct.
(free_person): Likewise.
* src/server/conference.c (do_delete_conf): Don't call l2g_clear,
since cache_delete_conf will do so.
Remove useless compiler warnings.
* configure.in: Don't use -Wtraditional and -Wnested-externs.
Test suite improvement.
* src/server/testsuite/config/unix.exp (lyskomd_death): Collect
etc/memory-usage in usage.all.
Test suite fix.
* src/server/testsuite/config/unix.exp (lyskomd_start): The
detection of a server compiled with --with-debug-calls was
......@@ -7,7 +85,7 @@
Test Local_to_global even more.
* src/server/testsuite/l2g.0/11.exp: Increase coverage even
further.
further. Test l2g_clear.
* src/server/local-to-global.h: Comments improved.
* src/server/local-to-global.c: Comments improved.
......
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