From 48fce6394d3bb5d6829f453a88f874d4c1f2ff13 Mon Sep 17 00:00:00 2001 From: ndparker <> Date: Sat, 31 Mar 2001 17:40:58 +0000 Subject: [PATCH] added constants to keep the call of 'parse_single_thread' and 'get_all_threads' more simple --- selfforum-cgi/shared/Posting/_lib.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/selfforum-cgi/shared/Posting/_lib.pm b/selfforum-cgi/shared/Posting/_lib.pm index 5441830..0f3f015 100644 --- a/selfforum-cgi/shared/Posting/_lib.pm +++ b/selfforum-cgi/shared/Posting/_lib.pm @@ -21,12 +21,18 @@ use XML::DOM; # Export # ==================================================== +use constant SORT_ASCENT => 0; # (young postings first) +use constant SORT_DESCENT => 1; +use constant KEEP_DELETED => 1; +use constant KILL_DELETED => 0; + use base qw(Exporter); @Posting::_lib::EXPORT_OK = qw( get_message_header get_message_body get_message_node get_body_node parse_single_thread parse_xml_file hr_time short_hr_time long_hr_time get_all_threads create_forum_xml_string save_file + SORT_ASCENT SORT_DESCENT KEEP_DELETED KILL_DELETED ); # ==================================================== -- 2.34.1