Date: Wed, 13 Jun 2001 11:16:57 -0400 (EDT) From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: Bruce Evans <bde@zeta.org.au> Cc: current@FreeBSD.org Subject: Re: fts_open() (was: Re: Patch to restore WARNS feature) Message-ID: <200106131516.LAA02178@khavrinen.lcs.mit.edu> In-Reply-To: <Pine.BSF.4.21.0106132318410.67996-100000@besplex.bde.org> References: <20010613153416.B21292@sunbay.com> <Pine.BSF.4.21.0106132318410.67996-100000@besplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
<<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.) -GAWollman 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?200106131516.LAA02178>