Use binary search, not linear, for looking up color names, mswindows.
2010-05-29 Aidan Kehoe <kehoea@parhasard.net>
* fontcolor-msw.c (mswindows_X_color_map): Sort this, case
insensitively, by the color name.
(colormap_t_compare): New function.
(mswindows_string_to_color): When using symbolic color names, use
binary search, not linear search.
(mswindows_color_list): No need to start from the beginning of the
array and call #'nreverse to get the colors in an intuitive order,
just build the list starting from the end of the array.
| author |
Aidan Kehoe <kehoea@parhasard.net> |
| date |
Sat, 29 May 2010 15:19:54 +0100 |
| parents |
d96db265d893 |
| children |
0ef278ff2894 |
| rev |
line source |
|
623
|
1 This directory tree holds version 21.5 of XEmacs.
|
|
|
2
|
|
2564
|
3 The information in this file has been superseded by the XEmacs FAQ.
|
|
623
|
4
|
|
2564
|
5 The easiest way to read the FAQ is to go to
|
|
623
|
6
|
|
2564
|
7 http://www.xemacs.org/Documentation/21.5/html/xemacs-faq_1.html
|
|
623
|
8
|
|
2564
|
9 You can also the local copy of the FAQ inside XEmacs by using
|
|
|
10 use Help->XEmacs FAQ from the menu, or `C-h F'.
|
|
0
|
11
|
|
2564
|
12 If you don't have XEmacs running and can't access the web,
|
|
|
13 look directly at `man/xemacs-faq.texi' or `info/xemacs-faq.info'.
|
|
623
|
14
|
|
|
15
|