Migrated engine to using dlmalloc through eng::

This commit is contained in:
2022-02-24 02:17:41 -05:00
parent acc00289fb
commit f467944095
61 changed files with 631 additions and 590 deletions

View File

@@ -49,18 +49,18 @@
class LuaConsole {
public:
using StringVec = std::vector<std::string>;
using StringVec = eng::vector<eng::string>;
private:
lua_State *lua_state_;
std::string raw_input_;
eng::string raw_input_;
int lines_;
std::string prompt_;
eng::string prompt_;
StringVec words_;
void clear_raw_input();
void simplify(const StringVec &words);
void synerr(const std::string &msg);
void synerr(const eng::string &msg);
public:
LuaConsole();
@@ -70,7 +70,7 @@ public:
//
// You should update the prompt immediately after 'add'.
//
const std::string &get_prompt() { return prompt_; }
const eng::string &get_prompt() { return prompt_; }
// Get the command words.
//
@@ -82,7 +82,7 @@ public:
// Add a line of text that was just read from the console.
//
void add(std::string line);
void add(eng::string line);
};