From owner-freebsd-current Wed Jun 13 8:17:11 2001 Delivered-To: freebsd-current@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 28EBD37B405 for ; Wed, 13 Jun 2001 08:17:05 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id LAA02178; Wed, 13 Jun 2001 11:16:57 -0400 (EDT) (envelope-from wollman) Date: Wed, 13 Jun 2001 11:16:57 -0400 (EDT) From: Garrett Wollman Message-Id: <200106131516.LAA02178@khavrinen.lcs.mit.edu> To: Bruce Evans Cc: current@FreeBSD.org Subject: Re: fts_open() (was: Re: Patch to restore WARNS feature) In-Reply-To: References: <20010613153416.B21292@sunbay.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG < 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