Markus Neteler wrote:

> Related wish: could the list be printed in alphabetical order?
> While the colors.desc file is ordered, the help text is no more:

The rules are almost ordered; the only exception is that the "special"
rules (those which are coded rather than read from etc/colors/*, i.e. 
random, grey.eq, grey.log and rules) are listed last.

If you want to re-sort the list after those are added:

        static int cmp_names(const void *aa, const void *bb)
        {
            char *const *a = (char *const *)aa;
            char *const *b = (char *const *)bb;
        
            return strcmp(*a, *b);
        }

        static void scan_rules(void)
        {
        ...
            qsort(rules, nrules, sizeof(char *), cmp_names);
        }

Personally, I would be inclined to leave the special rules at the end.

-- 
Glynn Clements <[EMAIL PROTECTED]>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to