auriemma    00/08/25 14:17:26

  Modified:    c/src/PlatformSupport DirectoryEnumerator.hpp
  Log:
  Modified to support for building TestXPath on AIX.
  
  Revision  Changes    Path
  1.10      +33 -9     xml-xalan/c/src/PlatformSupport/DirectoryEnumerator.hpp
  
  Index: DirectoryEnumerator.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/DirectoryEnumerator.hpp,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- DirectoryEnumerator.hpp   2000/08/22 22:21:31     1.9
  +++ DirectoryEnumerator.hpp   2000/08/25 21:17:24     1.10
  @@ -150,7 +150,11 @@
         */
        bool isDirectory() const
        {
  -             return d_type == DT_DIR;
  +#if defined(AIX)     
  +             return false;
  +#else                
  +             return d_type == DT_DIR;                
  +#endif               
        }
   };
   
  @@ -235,19 +239,39 @@
   
                _findclose(theSearchHandle);
        }
  -#elif defined(__GNUC__)
  -     // Do nothing for now...
  +
  +     
   #else
  -#error Unsupported platform!!!
  +     // Do nothing for now...
  +     // Unsupported platform!!!
   #endif
   }
   
   
  +
  +#if defined(XALAN_NO_DEFAULT_TEMPLATE_ARGUMENTS)
  +template<class CollectionType, class StringType>
  +struct DirectoryEnumeratorFunctor
  +{
  +     CollectionType
  +     operator()(const StringType&    theDirectory) const
  +     {
  +             CollectionType          theCollection;
  +
  +             operator()(theDirectory,
  +                        theCollection);
  +
  +             return theCollection;
  +     }
   
  -template<class CollectionType,
  -              class FilterPredicateType = FilesOnlyFilterPredicate,
  -              class StringType = XalanDOMString,
  -              class StringConversionFunction = c_wstr_functor>
  +     void
  +     operator()(
  +             const StringType&,
  +             const CollectionType&) const
  +     {
  +     }
  +};
  +#else
   #if defined(XALAN_NO_NAMESPACES)
   struct DirectoryEnumeratorFunctor : public unary_function<StringType, 
CollectionType>
   #else
  @@ -284,7 +308,7 @@
        FilterPredicateType                     m_filterPredicate;
        StringConversionFunction        m_conversionFunction;
   };
  -
  +#endif
   
   
   #endif       // DIRECTORY_ENUMERATOR_HEADER_GUARD_1357924680
  
  
  

Reply via email to