diff options
author | Björn Gustavsson <[email protected]> | 2013-02-12 09:35:49 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2013-02-13 11:58:44 +0100 |
commit | 3c40105f4666e1c38752a5bbf1c282c221dda967 (patch) | |
tree | 0ba4874acff9af56aaa64837a406a96413c14f1d /lib/configure.in.src | |
parent | f8b9d04789cb307c519f7c99493ebc9118a2b8c2 (diff) | |
download | otp-3c40105f4666e1c38752a5bbf1c282c221dda967.tar.gz otp-3c40105f4666e1c38752a5bbf1c282c221dda967.tar.bz2 otp-3c40105f4666e1c38752a5bbf1c282c221dda967.zip |
Rethink the filelib:wildcard() functions
Commit 70b5e24c9498225fadc08d19503269c8aad851bf broke
filelib:wildcard(Pattern, ".").
Over the years, the logic for filelib:wilcard() has become a mess
of special cases.
Probably because of premature optimization, filelib:wildcard(Pattern)
and filelib:wildcard(Pattern, Cwd) are handled differently.
They can be consolidated if we use a "." as the default Cwd argument.
We can also simplify things by compiling the Cwd argument into the
wildcard. We did not that in the initial implementation because it
used to be possible to pre-compile a wildcard and pass it to
filelib:wildcard/{1,2}. Since that is no longer possible, there is
no point in keeping the compiled wildcard "portable" (not dependent
on the Cwd argument).
Diffstat (limited to 'lib/configure.in.src')
0 files changed, 0 insertions, 0 deletions