From ed5640d8b587fbcfed7dd7967f3de04b37a76f26 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:06:44 +0200 Subject: Adding upstream version 4:7.4.7. Signed-off-by: Daniel Baumann --- soltools/mkdepend/collectdircontent.hxx | 60 +++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 soltools/mkdepend/collectdircontent.hxx (limited to 'soltools/mkdepend/collectdircontent.hxx') diff --git a/soltools/mkdepend/collectdircontent.hxx b/soltools/mkdepend/collectdircontent.hxx new file mode 100644 index 000000000..6821b7643 --- /dev/null +++ b/soltools/mkdepend/collectdircontent.hxx @@ -0,0 +1,60 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +#ifndef INCLUDED_SOLTOOLS_MKDEPEND_COLLECTDIRCONTENT_HXX +#define INCLUDED_SOLTOOLS_MKDEPEND_COLLECTDIRCONTENT_HXX + +#if defined __cplusplus + +#include +#include +#include + +#if defined(_WIN32) +#if !defined WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +#endif +#include +#include +#else +#include +#endif // defined( _WIN32 ) + +#include + +typedef std::set DirContent; +typedef std::map DirMap; +typedef DirMap::value_type EntriesPair; +typedef std::pair PathFilePair; + + +struct IncludesCollection { +private: + DirMap allIncludes; + static PathFilePair split_path(const std::string& filePath); + void add_to_collection(const std::string& dirPath); + +public: + bool exists(std::string filePath); +}; + +#else + +struct IncludesCollection; + +#endif + +#if defined __cplusplus +extern "C" { +#endif + +struct IncludesCollection * create_IncludesCollection(void); +void delete_IncludesCollection(struct IncludesCollection *); + +int call_IncludesCollection_exists(struct IncludesCollection* m, const char* filePath); + +#if defined __cplusplus +} +#endif + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit v1.2.3