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