🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #20241

Re: SLRN: 0.8.7 released

#20241
From: ru... R. Smith
Date: Fri, 29 Mar 1996 00:00
44 lines
1926 bytes
In article <slrn4lm67...@wiwaxia.mit.edu>, John E. Davis wrote:
>On 28 Mar 1996 19:24:43 GMT, R. Smith <ru...@littlewood.math.okstate.edu>
>wrote:
> : And I have to ask, once again:  could we have article sorting by
> : score value?  Pretty please?  This is an strn feature I really miss.
>
>Here is a quick hack.  Hopefully this is a step closer to what you want.
>Replace slrn/src/art.c:header_subj_cmp with this version:
>
>static int header_subj_cmp (Slrn_Header_Type **ap, Slrn_Header_Type **bp)
>{
>   int cmp;
>   Slrn_Header_Type *a = *ap, *b = *bp;
>   int ahigh, bhigh;
>   
>   ahigh = (0 != (a->flags & (HEADER_HIGH_SCORE | FAKE_HEADER_HIGH_SCORE)));
>   bhigh = (0 != (b->flags & (HEADER_HIGH_SCORE | FAKE_HEADER_HIGH_SCORE)));
>   
>   if (ahigh == bhigh)
>     {
>	cmp = subject_cmp ((unsigned char *) (a->subject),
>			   (unsigned char *) (b->subject));
>	if (!cmp) return a->number - b->number;
>     }
>   else cmp = bhigh - ahigh;
>   
>   return cmp;
>}
>
>--John
>


For the record, this works fine, once you remember to set sorting_method
to 2 or 3.  I'm not sure I'd recommend it as a permanent method, but. :)

-R

-- 
Russ Smith
16i9477F24BA6E9E2C7[d64%P64/d0<y]sylyx

Technical Details
Message-ID: <slrn4lo7ef.nhb.russ@littlewood.math.okstate.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail
References: <slrn4lgvfv.l0t.davis@wiwaxia.mit.edu> <slrn4llprr.9vn.russ@littlewood.math.okstate.edu> <slrn4lm67e.ss7.davis@wiwaxia.mit.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn4lo7ef.nhb.russ@littlewood.math.okstate.edu>
Subject: Re: SLRN: 0.8.7 released
Date: Fri, 29 Mar 1996 00:00:00 +0000
From: ru...@littlewood.math.okstate.edu (R. Smith)
References: <slrn4lgvfv.l0t.davis@wiwaxia.mit.edu> <slrn4llprr.9vn.russ@littlewood.math.okstate.edu> <slrn4lm67e.ss7.davis@wiwaxia.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail
X-Deja-AN: 144873886
Organization: Oklahoma State University, Stillwater OK
Newsgroups: news.software.readers,alt.lang.s-lang