Re: [tin 2.1.1] snaphsots
Dennis Preiser <[email protected]> Tue, 21 Feb 2012 18:10:39 +0100
| Newsgroups | gmane.network.tin.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Feb 21, 2012 at 11:10:55AM +0100, Urs Janßen wrote:
> I've made snapshots of the upcomming tin 2.1.1 (unstable) release
> including the --enbale-heapsort configure option. If specified a new
> 'M'enu option is available to specify the sorting function used.
I think this is not group specific. We can undo the changes which would
be necessary only for group specific attributes (read_attributes_file(),
attribute state).
Dennis
diff -urp tin-2.1.1/include/tin.h tin-2.1.1_r1/include/tin.h
--- tin-2.1.1/include/tin.h 2012-02-21 16:58:50.000000000 +0100
+++ tin-2.1.1_r1/include/tin.h 2012-02-21 17:20:37.000000000 +0100
@@ -1672,9 +1672,6 @@ struct t_attribute_state {
unsigned signature_repost:1;
unsigned sort_article_type:1;
unsigned sort_threads_type:1;
-#ifdef USE_HEAPSORT
- unsigned sort_function:1;
-#endif
unsigned start_editor_offset:1;
unsigned tex2iso_conv:1;
unsigned thread_articles:1;
diff -urp tin-2.1.1/src/attrib.c tin-2.1.1_r1/src/attrib.c
--- tin-2.1.1/src/attrib.c 2012-02-21 09:42:39.000000000 +0100
+++ tin-2.1.1_r1/src/attrib.c 2012-02-21 17:16:54.000000000 +0100
@@ -224,9 +224,6 @@ set_default_state(
state->signature_repost = FALSE;
state->sort_article_type = FALSE;
state->sort_threads_type = FALSE;
-#ifdef USE_HEAPSORT
- state->sort_function = 0;
-#endif
state->start_editor_offset = FALSE;
state->tex2iso_conv = FALSE;
state->thread_articles = FALSE;
@@ -452,9 +449,6 @@ read_attributes_file(
MATCH_STRING("sigfile=", OPT_ATTRIB_SIGFILE);
MATCH_INTEGER("sort_article_type=", OPT_ATTRIB_SORT_ARTICLE_TYPE, SORT_ARTICLES_BY_LINES_ASCEND);
MATCH_INTEGER("sort_threads_type=", OPT_ATTRIB_SORT_THREADS_TYPE, SORT_THREADS_BY_LAST_POSTING_DATE_ASCEND);
-#ifdef USE_HEAPSORT
- MATCH_LIST("sort_function=", OPT_SORT_FUNCTION, txt_sort_functions);
-#endif
break;
case 't':