Date: Thu, 14 Jun 2001 11:14:33 +1000 (EST) From: Bruce Evans <bde@zeta.org.au> To: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> Cc: current@FreeBSD.org Subject: Re: fts_open() (was: Re: Patch to restore WARNS feature) Message-ID: <Pine.BSF.4.21.0106141112550.72020-100000@besplex.bde.org> In-Reply-To: <200106131516.LAA02178@khavrinen.lcs.mit.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 13 Jun 2001, Garrett Wollman wrote: > <<On Wed, 13 Jun 2001 23:28:29 +1000 (EST), Bruce Evans <bde@zeta.org.au> said: > > > 3. Provide an alternative to qsort() that takes an comparison function > > that takes an additional function pointer arg (use this arg to avoid > > the global in (1)). > > Actually, doing this would solve a number of similar problems, and it > doesn't look to be too difficult to do. I would make the additional > argument a `void *'; fts's comparison trampoline function could use > this as a `FTS *' to look up the comparison function. (I think this > is more general than passing any kind of function pointer.) Good idea. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0106141112550.72020-100000>