More work on moving engine into dlmalloc heap
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user