🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #20217

Re: SLRN: 0.8.7 released

#20217
From: da... John E. Davis
Date: Thu, 28 Mar 1996 00:00
32 lines
1569 bytes
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

Technical Details
Message-ID: <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
References: <slrn4lgvfv.l0t.davis@wiwaxia.mit.edu> <slrn4llprr.9vn.russ@littlewood.math.okstate.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn4lm67e.ss7.davis@wiwaxia.mit.edu>
Subject: Re: SLRN: 0.8.7 released
Date: Thu, 28 Mar 1996 00:00:00 +0000
From: da...@space.mit.edu (John E. Davis)
References: <slrn4lgvfv.l0t.davis@wiwaxia.mit.edu> <slrn4llprr.9vn.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
X-Deja-AN: 144743164
Organization: Center for Space Research
Reply-to: da...@space.mit.edu
Newsgroups: news.software.readers,alt.lang.s-lang