mirror of
https://github.com/pocketpy/pocketpy
synced 2025-12-06 18:20:17 +00:00
...
This commit is contained in:
parent
f41368afbb
commit
ab53927019
@ -24,7 +24,7 @@ enum CompileMode {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct SourceData {
|
struct SourceData {
|
||||||
Str source;
|
std::string source; // assume '\0' terminated
|
||||||
Str filename;
|
Str filename;
|
||||||
std::vector<const char*> line_starts;
|
std::vector<const char*> line_starts;
|
||||||
CompileMode mode;
|
CompileMode mode;
|
||||||
|
|||||||
@ -14,8 +14,8 @@ namespace pkpy{
|
|||||||
}
|
}
|
||||||
|
|
||||||
this->filename = filename;
|
this->filename = filename;
|
||||||
this->source = std::move(ss.str());
|
this->source = ss.str().str();
|
||||||
line_starts.push_back(this->source.begin());
|
line_starts.push_back(this->source.c_str());
|
||||||
this->mode = mode;
|
this->mode = mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user