|
From: | John Swensen |
Subject: | Re: Is it OK for genpath to skip all directories beginning with a period |
Date: | Wed, 18 Feb 2009 17:53:59 -0500 |
On Feb 18, 2009, at 1:41 PM, John W. Eaton wrote:
On 18-Feb-2009, John Swensen wrote:| There is already a FIXME comment in the sources along the lines of the | skipping method you suggested, but that is also non-compatible behavior.Sure, but then at least the user has some easy way to control the behavior, and we could set the defautl to be compatible. jwe
Here is an updated patch as requested. It adds an optional extra parameter to the genpath() function in Octave to allow the user to specify a colon separated list of directories to exclude. I also made to changes to the load-path.cc file to re-use the split_path() function for both splitting paths and splitting other strings with a delimiter. Because of the use of the split_path function, I also changed the C++ version of genpath from using an string_vector to an std::list<std::string>. Let me know if you think it needs any other changes.
John Swensen
genpath_skip_rev2.patch
Description: Binary data
[Prev in Thread] | Current Thread | [Next in Thread] |