Migrated engine to using dlmalloc through eng::
This commit is contained in:
@@ -87,6 +87,7 @@
|
||||
#include "invocation.hpp"
|
||||
#include "debugcollector.hpp"
|
||||
|
||||
|
||||
struct PrintBufferCore;
|
||||
|
||||
class PrintBuffer {
|
||||
@@ -112,10 +113,10 @@ public:
|
||||
bool never_printed() const;
|
||||
|
||||
// Get the specified line number.
|
||||
const std::string &nth(int n) const;
|
||||
const eng::string &nth(int n) const;
|
||||
|
||||
// Print the entire contents of the buffer to a string (for unit testing).
|
||||
std::string debug_string() const;
|
||||
eng::string debug_string() const;
|
||||
|
||||
// Clear the buffer
|
||||
void clear();
|
||||
@@ -123,7 +124,7 @@ public:
|
||||
// Add a string. If the string doesn't end in a newline, a newline
|
||||
// is added. The string is broken into lines, and the lines are added
|
||||
// to the PrintBuffer.
|
||||
void add_string(const std::string &s, bool auth);
|
||||
void add_string(const eng::string &s, bool auth);
|
||||
|
||||
// Discard lines up to but not including line N.
|
||||
void discard_upto(int n);
|
||||
@@ -150,7 +151,7 @@ public:
|
||||
// Copy any new lines from the printbuffer to the stdostream.
|
||||
// Update the current line number. Return true if the printbuffer
|
||||
// contains any lines that have already been channeled.
|
||||
bool channel(const PrintBuffer *pb, std::ostream &ostream);
|
||||
bool channel(const PrintBuffer *pb, eng::ostream &ostream);
|
||||
|
||||
// Generate an invocation that removes unnecessary lines from the
|
||||
// printbuffer.
|
||||
|
||||
Reference in New Issue
Block a user