summaryrefslogtreecommitdiff
path: root/cpp/include/Slice/Preprocessor.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/Slice/Preprocessor.h')
-rw-r--r--cpp/include/Slice/Preprocessor.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/cpp/include/Slice/Preprocessor.h b/cpp/include/Slice/Preprocessor.h
index 07925d53642..f296a82ff07 100644
--- a/cpp/include/Slice/Preprocessor.h
+++ b/cpp/include/Slice/Preprocessor.h
@@ -11,10 +11,12 @@
#define PREPROCESSOR_H
#include <IceUtil/Config.h>
+#include <vector>
#ifdef __BCPLUSPLUS__
# include <stdio.h>
#endif
+
#ifndef SLICE_API
# ifdef SLICE_API_EXPORTS
# define SLICE_API ICE_DECLSPEC_EXPORT
@@ -30,7 +32,7 @@ class SLICE_API Preprocessor
{
public:
- Preprocessor(const std::string&, const std::string&, const std::string&);
+ Preprocessor(const std::string&, const std::string&, const std::vector<std::string>&);
~Preprocessor();
FILE* preprocess(bool);
@@ -38,7 +40,7 @@ public:
enum Language { CPlusPlus, Java, CSharp, VisualBasic };
- void printMakefileDependencies(Language);
+ void printMakefileDependencies(Language, const std::vector<std::string>&);
std::string getBaseName();
@@ -48,11 +50,11 @@ public:
private:
bool checkInputFile();
- std::string searchIceCpp();
const std::string _path;
const std::string _fileName;
- const std::string _args;
+ const std::vector<std::string> _args;
+ std::string _cppFile;
FILE* _cppHandle;
};