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

@@ -4,8 +4,8 @@
#include "wrap-vector.hpp"
#include "wrap-string.hpp"
#include "wrap-memory.hpp"
#include "wrap-ostream.hpp"
#include "wrap-sstream.hpp"
#include "wrap-ostream.hpp"
class DebugCollector {
private:
@@ -14,8 +14,8 @@ private:
// The flag 'need_flush_' is true if the stringstream contains
// an extra line. In that case, is_regular_ indicates whether
// the extra line is a header or a regular line.
std::vector<std::string> lines_;
std::vector<std::string> targets_;
eng::vector<eng::string> lines_;
eng::vector<eng::string> targets_;
int n_regular_;
bool need_flush_;
bool is_regular_;
@@ -23,12 +23,12 @@ private:
void flush();
bool use(const char *target);
public:
std::ostringstream oss_;
eng::ostringstream oss_;
DebugCollector();
DebugCollector(const std::string &targets);
DebugCollector(const eng::string &targets);
bool do_header();
bool do_line();
void dump(std::ostream &os);
void dump(eng::ostream &os);
friend class DebugBlock;
};