Hello, I would like to submit the attached patch. This reinstates my original fix, with some additional comments and applying the fix in another location in the same source file.
I have still been having heavy problems with files not being found by CodeTools. THIS FIXES THE PROBLEMS. This is not a shot in the dark. This is a well thought through and tested patch. The reason for the failures of the old version is that the binary searches in this unit were using a different comparison function from the one that the list of files was originally sorted with. Sorting a list with one comparison function, then doing a binary search with a different one, can cause the binary search to fail. On some systems, there may be fewer problems than on mine because the two different comparison functions may happen to use the same order of characters. On Mac OS X, the binary search failed when filenames with underscores were used. Some comparison functions sort the underscore _ before the letters, while other comparison functions sort the underscore after the letters. Cheers, Tobias
DirCache-TG-2007-10-08.patch
Description: Binary data
