SourceForge: enblend/enblend: changeset 603:f2f608b8ddb4
Modify the definition of the globbing algorithms for the use with win32.
authorDr. Christoph L. Spiel <cspiel@freenet.de>
Mon Nov 09 11:10:46 2009 +0100 (7 weeks ago)
changeset 603f2f608b8ddb4
parent 602 e29281594440
child 604 a4d94da42373
Modify the definition of the globbing algorithms for the use with win32.
Patch by Thomas Modes.
VERSION
src/filespec.cc
     1.1 --- a/VERSION	Mon Nov 09 11:10:35 2009 +0100
     1.2 +++ b/VERSION	Mon Nov 09 11:10:46 2009 +0100
     1.3 @@ -1,1 +1,1 @@
     1.4 -4.0-f312b1189a2d
     1.5 +4.0-e29281594440
     2.1 --- a/src/filespec.cc	Mon Nov 09 11:10:35 2009 +0100
     2.2 +++ b/src/filespec.cc	Mon Nov 09 11:10:46 2009 +0100
     2.3 @@ -309,7 +309,7 @@
     2.4  #ifdef WANT_WILDCARD_GLOBBING
     2.5  #ifdef _WIN32
     2.6  
     2.7 -class ShellGlobbingAlgorithm: public AbstractGlobbingAlgorithm
     2.8 +class WildcardGlobbingAlgorithm: public AbstractGlobbingAlgorithm
     2.9  {
    2.10  public:
    2.11      FileNameList do_glob(const std::string& a_filespec,
    2.12 @@ -433,12 +433,16 @@
    2.13              ("literal", MAKE_ALGORITHM(new LiteralGlobbingAlgorithm))
    2.14  #ifdef WANT_WILDCARD_GLOBBING
    2.15              ("wildcard", MAKE_ALGORITHM(new WildcardGlobbingAlgorithm))
    2.16 +#ifndef _WIN32
    2.17              ("shell", MAKE_ALGORITHM(new ShellGlobbingAlgorithm))
    2.18 -#endif
    2.19 +#endif //_WIN32
    2.20 +#endif //WAND_WILDCARD_GLOBBING
    2.21              ;
    2.22  
    2.23          setup_alias("literal", "none");
    2.24 +#ifndef _WIN32
    2.25          setup_alias("shell", "sh");
    2.26 +#endif
    2.27      }
    2.28  
    2.29      ~Globbing()