From b98c2c4e1831d635b5c33501c72d93d5b1236291 Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Fri, 22 Sep 2006 07:56:28 +0000 Subject: INTEGRATION: CWS vgbugs04 (1.1.2); FILE ADDED 2006/08/23 13:43:49 vg 1.1.2.3: #137785# case insensitive paths for Windows 2006/07/04 14:21:28 vg 1.1.2.2: #137785# optimize makedepend 2006/07/04 10:37:13 vg 1.1.2.1: #137785# optimize makedepend --- soltools/mkdepend/collectdircontent.hxx | 57 +++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 soltools/mkdepend/collectdircontent.hxx (limited to 'soltools') diff --git a/soltools/mkdepend/collectdircontent.hxx b/soltools/mkdepend/collectdircontent.hxx new file mode 100644 index 000000000000..1ffd9cf60f0c --- /dev/null +++ b/soltools/mkdepend/collectdircontent.hxx @@ -0,0 +1,57 @@ +#ifndef COLLECTDIRCONTENT_H +#define COLLECTDIRCONTENT_H + +#if defined __cplusplus + +#include +#include +#include + +#if defined( WNT ) +#include +#include +#else +#include +#endif // defined( WNT ) + +#include + +using namespace std; + +typedef set DirContent; +typedef map DirMap; +typedef DirMap::value_type EntriesPair; +typedef pair PathFilePair; + + +struct IncludesCollection { + private: + DirMap allIncludes; +// bool search(string filePath); +// bool add_dir(string dirPath); + PathFilePair split_path(const string& filePath); + void add_to_collection(const string& dirPath); + + public: + bool exists(string filePath); +}; + +#else + +struct IncludesCollection; + +#endif + +#if defined __cplusplus +extern "C" { +#endif + +struct IncludesCollection * create_IncludesCollection(void); + +int call_IncludesCollection_exists(struct IncludesCollection* m, const char* filePath); + +#if defined __cplusplus +} +#endif + +#endif // COLLECTDIRCONTENT_H -- cgit