[Toybox] More find cleanup

Felix Janda felix.janda at posteo.de
Sat Apr 20 11:39:10 PDT 2013


Hello,

some more find cleanup in an attached patch.

The main change was to make some code in build_filter_list() less
repetitive using a suitable struct and a loop. The command line parsing
is however now less efficient since after an argument has been tested
for equality with different strings like "-mtime" and the corresponding
type (CHECK_MTIME) has been saved, the saved integer has again to be
checked for equality with stuff to find out what further command line
parsing is necessary.

Apart from this I moved around some variables and got rid of the
unnecessary index "i" in build_filter_list().

Felix

BTW: POSIX-1.2008 TC1 is out
-------------- next part --------------
A non-text attachment was scrubbed...
Name: find-cleanup.patch
Type: text/x-patch
Size: 7899 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20130420/0faaf6ce/attachment-0006.bin>


More information about the Toybox mailing list