Refactor installer::sorter
Tim Retout
tim at retout.co.uk
Wed Feb 15 13:58:19 PST 2012
Hi!
Here are a few patches related to installer::sorter. I've tried to
keep them low-risk, because much of the code is called during Windows
builds, which I'm not yet testing.
I think the sort algorithm used currently in installer::sorter must be
equivalent to bubble sort; in any case, I removed two of the
subroutines, and replaced the third with a Schwartzian Transform
(which might be overkill for this case, but I need to check the
callers).
I added a unit test for the remaining sort function, but I haven't
tried to plug it in to the build system or anything. I tried to adapt
the standard license header template to Perl comments.
Kind regards,
--
Tim Retout <tim at retout.co.uk>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Turn-on-strictures-in-installer-sorter.patch
Type: text/x-patch
Size: 735 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120215/5a2207d3/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Remove-unnecessary-sorting-subroutines.patch
Type: text/x-patch
Size: 3048 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120215/5a2207d3/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Inline-and-simplify-installer-sorter-sort_array_of_h.patch
Type: text/x-patch
Size: 3140 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120215/5a2207d3/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Use-Exporter-for-installer-sorter.patch
Type: text/x-patch
Size: 4228 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120215/5a2207d3/attachment-0009.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Add-tests-for-installer-sorter.patch
Type: text/x-patch
Size: 2122 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120215/5a2207d3/attachment-0010.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Simplify-installer-sorter-sorting_array_of_hashes.patch
Type: text/x-patch
Size: 1473 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120215/5a2207d3/attachment-0011.bin>
More information about the LibreOffice
mailing list