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,5 @@
#include "wrap-ostream.hpp"
#include <ostream>
#include "pprint.hpp"
#include "util.hpp"
#include "table.hpp"
@@ -8,7 +7,7 @@
#include <iostream>
void atomic_print(LuaStack &LS, LuaSlot val, bool quote, eng::ostream *os) {
void atomic_print(LuaStack &LS, LuaSlot val, bool quote, std::ostream *os) {
int tt = LS.type(val);
switch (tt) {
case LUA_TNIL:
@@ -103,7 +102,7 @@ struct Inspector {
bool indent;
int maxlen;
bool anyindent;
eng::ostream *stream;
std::ostream *stream;
};
static void tabify(Inspector &insp, int level) {
@@ -235,7 +234,7 @@ static void pprint_r(Inspector &insp, int level, LuaSlot root) {
LS.result();
}
void pprint(LuaStack &LS0, LuaSlot root, bool indent, eng::ostream *os) {
void pprint(LuaStack &LS0, LuaSlot root, bool indent, std::ostream *os) {
Inspector insp;
LuaStack LS(LS0.state(), insp.ids);
findtables(LS, root, insp.ids);