GSoC/GCI Archive
Google Code-in 2012 BRL-CAD

Make mged 'tables' command not call system()

completed by: Gmercer015

mentors: Sean

BRL-CAD's geometry editor (MGED) provides hundreds of functions that users can call on the command line. One of our oldest commands writes data out to text files and calls the unix "sort" command to sort a list of items.. That's really bad.

This task involves replacing the three calls to system() with a call to quicksort() or any other simple in-memory sorting mechanism.

Code:

  • src/libged/tables.c