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