More work on moving engine into dlmalloc heap

This commit is contained in:
2022-02-25 19:57:23 -05:00
parent 08f6aa2092
commit ff932dba10
52 changed files with 351 additions and 484 deletions

View File

@@ -1,6 +1,7 @@
#include "wrap-string.hpp"
#include "wrap-vector.hpp"
#include "wrap-algorithm.hpp"
#include <algorithm>
#include "util.hpp"
@@ -8,7 +9,6 @@
#include <sys/stat.h>
#include <iomanip>
#include <cassert>
#include <fstream>
#include <cstdlib>
#include <cmath>
@@ -41,7 +41,7 @@ bool is_identifier(const eng::string &str) {
return true;
}
void quote_string(const eng::string &s, eng::ostream *os) {
void quote_string(const eng::string &s, std::ostream *os) {
bool anysq = false;
bool anydq = false;
for (char c : s) {
@@ -363,22 +363,22 @@ eng::string XYZ::debug_string() const {
} // namespace util
eng::ostream &operator<<(eng::ostream &oss, const util::hex64 &v) {
std::ostream &operator<<(std::ostream &oss, const util::hex64 &v) {
oss << "0x" << std::setw(16) << std::setfill('0') << std::hex;
return oss;
}
eng::ostream &operator<<(eng::ostream &oss, const util::hex32 &v) {
std::ostream &operator<<(std::ostream &oss, const util::hex32 &v) {
oss << "0x" << std::setw(8) << std::setfill('0') << std::hex;
return oss;
}
eng::ostream &operator<<(eng::ostream &oss, const util::hex16 &v) {
std::ostream &operator<<(std::ostream &oss, const util::hex16 &v) {
oss << "0x" << std::setw(4) << std::setfill('0') << std::hex;
return oss;
}
eng::ostream &operator<<(eng::ostream &oss, const util::hex8 &v) {
std::ostream &operator<<(std::ostream &oss, const util::hex8 &v) {
oss << "0x" << std::setw(2) << std::setfill('0') << std::hex;
return oss;
}