On Jan 20, 2012, at 1:24 PM, Tom Browder wrote: > While on the general topic of code improvement, I would like to see > some kind of easy-to-use bu_ wrapper around the libc qsort and bsearch > functions along with maybe some standard comp functions for oft-used > structs like regions and such. Of course I would volunteer to take a > shot at it if such would be acceptable.
Sounds good. I'm actually in the middle of implementing a new container structure in libbu for tabular data processing, so there may be some overlap or coordination warranted. If you're addressing just sorting and searching on a list, the trick of the wrapper is actually coming up with something sufficiently general yet actually simpler than qsort and bsearch. In many cases (like regions), it might just make more sense to have a librt search/sort routine that directly calls qsort, bsearch, etc. Cheers! Sean ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ BRL-CAD Developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/brlcad-devel
