xo-alloc / xo-object: utest coverage + assorted bugfixes

This commit is contained in:
Roland Conybeare 2025-08-07 18:32:14 -05:00
commit bd00826448
34 changed files with 1069 additions and 326 deletions

View file

@ -7,6 +7,7 @@
#include "GC.hpp"
#include "TaggedPtr.hpp"
#include "xo/reflect/Reflect.hpp"
#include "xo/indentlog/print/quoted.hpp"
#include <bsd/string.h>
#include <cstddef>
#include <cstring>
@ -15,6 +16,7 @@
namespace xo {
using xo::reflect::Reflect;
using xo::reflect::TaggedPtr;
using xo::print::quot;
namespace obj {
String::String(owner owner, std::size_t z, char * s)
@ -98,9 +100,7 @@ namespace xo {
void
String::display(std::ostream & os) const {
// TODO: print with escapes
os << "\"" << c_str() << "\"";
os << quot(c_str());
}
// ----- GC support -----