Create separate OpSource for each included file
This commit is contained in:
parent
9ed38739b9
commit
d445bb2867
6 changed files with 131 additions and 104 deletions
|
|
@ -668,6 +668,8 @@ public:
|
|||
const std::string& getSourceFile() const { return sourceFile; }
|
||||
void addSourceText(const char* text) { sourceText = sourceText + text; }
|
||||
const std::string& getSourceText() const { return sourceText; }
|
||||
const std::map<std::string, std::string>& getIncludeText() const { return includeText; }
|
||||
void addIncludeText(const char* name, const char* text, size_t len) { includeText[name].assign(text,len); }
|
||||
void addProcesses(const std::vector<std::string>& p)
|
||||
{
|
||||
for (int i = 0; i < (int)p.size(); ++i)
|
||||
|
|
@ -815,6 +817,9 @@ protected:
|
|||
std::string sourceFile;
|
||||
std::string sourceText;
|
||||
|
||||
// Included text. First string is a name, second is the included text
|
||||
std::map<std::string, std::string> includeText;
|
||||
|
||||
// for OpModuleProcessed, or equivalent
|
||||
TProcesses processes;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue