From 4b6f52291cf7773c71d2ec5ddbc5541580985f05 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Fri, 25 Jul 2025 10:42:40 -0400 Subject: [PATCH] build: osx carveouts --- include/xo/indentlog/print/ppdetail_atomic.hpp | 1 + include/xo/indentlog/print/pretty.hpp | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/xo/indentlog/print/ppdetail_atomic.hpp b/include/xo/indentlog/print/ppdetail_atomic.hpp index 8982402..d8036fe 100644 --- a/include/xo/indentlog/print/ppdetail_atomic.hpp +++ b/include/xo/indentlog/print/ppdetail_atomic.hpp @@ -23,6 +23,7 @@ namespace xo { : pps_{pps}, ci0_{ci0}, ci1_{ci0 + indent_width}, upto_{upto} {} ppstate * pps() const { return pps_; } + std::uint32_t ci0_unused() const { return ci0_; } std::uint32_t ci1() const { return ci1_; } bool upto() const { return upto_; } diff --git a/include/xo/indentlog/print/pretty.hpp b/include/xo/indentlog/print/pretty.hpp index c6ed3a4..9f17d64 100644 --- a/include/xo/indentlog/print/pretty.hpp +++ b/include/xo/indentlog/print/pretty.hpp @@ -39,6 +39,8 @@ namespace xo { uint32_t indent_width() const { return config_->indent_width_; } ppindentinfo indent_info(bool upto) { return ppindentinfo(this, lpos(), indent_width(), upto); } + std::uint32_t current_indent_unused() const { return current_indent_; } + std::uint32_t pos() const { return scratch_sbuf_->pos(); } /** current position relative to start of line (last \n or \r), * excluding color escape sequences @@ -170,7 +172,7 @@ namespace xo { /** readonly pretty-printer config **/ const ppconfig * config_ = nullptr; - }; + }; /*ppstate*/ /** @class ppstate_standalone * @brief like ppstate, but also holds streambuf