Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 08 Jun 2012 08:55:48 -0500 Message-ID: <4FD20464.2CE5@mindspring.com> Date: Fri, 08 Jun 2012 09:55:48 -0400 From: pete Reply-To: pfiland@mindspring.com Organization: PF X-Mailer: Mozilla 3.04Gold (WinNT; I) MIME-Version: 1.0 Newsgroups: comp.lang.c Subject: Re: Breakthrough References: <4FCD273B.5095@mindspring.com> <4fcdb0ef$0$6481$426a74cc@news.free.fr> <4FCEDA85.66BA@mindspring.com> <4FCF56CD.962@mindspring.com> <98pus75mg8q054gcv696u78gvg7gs6h1nk@4ax.com> <4FCFEC9A.C74@mindspring.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Lines: 39 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 4.156.228.2 X-Trace: sv3-QKzV6Ph73p0Opt0njy3xa4mvh9oRSzJdTIzZ4pR328n9zicTHjHCIhHBUhTwU3zW5B1Do0cLRL56BRY!xON6aPvH5eUaNGXacxZpm/8e+u5Wcuy8dzHbKbwfLRG0usK5wSrYsLvjRZtdzaALqCflVkpFxw0N!BAQrgUHz X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2310 X-Received-Bytes: 2451 Xref: csiph.com comp.lang.c:21955 jacob navia wrote: > > Le 07/06/12 01:49, pete a écrit : > > > > Anyway, > > the point that I was was originally trying to make to Jacob Navia, > > still stands; Which is, > > that I have never needed anything else but a GreaterThan macro, > > to implement any kind of comparison sorting algorithm, > > stable or otherwise. > > > > Maybe you have some spare time? From time to time, I have some time. > I am convinced my code would benefit from your critical eye Pete. > > Just download it from > > http://code.google.com/p/ccl/ > > and look at it. > The file listgen.c contains the templated sort function. I will take a look at it. At this point, it occurs to me that if you have searching functions which use exactly the same COMPARE_EXPRESSION macro, as your sorting functions use, then it might be necessary to use the three way comparison. Do you have searching functions which use exactly the same COMPARE_EXPRESSION macro, as your sorting functions use? -- pete