Merge branch 'claude1' of github.com:Rconybea/xo-umbrella2 into claude1

This commit is contained in:
Roland Conybeare 2026-03-17 13:07:17 -04:00
commit e9e708dc56
14 changed files with 24 additions and 13 deletions

View file

@ -77,7 +77,11 @@ namespace ut {
//REQUIRE(sbuf.lo() == sbuf.pbase());
#ifdef __linux__
auto expected = string_view("empty log_streambuf :sbuf.lo 0 :sbuf.hi 0 :sbuf.color_escape_chars 0");
#else
auto expected = string_view("empty log_streambuf :sbuf.lo 0x0 :sbuf.hi 0x0 :sbuf.color_escape_chars 0");
#endif
REQUIRE(string_view(sbuf) == expected);

View file

@ -729,7 +729,7 @@ namespace xo {
vsm.begin_interactive_session();
span_type input = span_type::from_cstr("report_memory_use();");
span_type input = span_type::from_cstr("report-memory-use();");
log && log(xtag("input", input));

View file

@ -33,9 +33,9 @@ namespace xo {
xfer_cwd(obj<ARuntimeContext> rcx)
{
char buf[PATH_MAX];
::getcwd(buf, sizeof(buf));
char * cwd = ::getcwd(buf, sizeof(buf));
return obj<AGCObject,DString>(DString::from_cstr(rcx.allocator(), buf));
return obj<AGCObject,DString>(DString::from_cstr(rcx.allocator(), cwd));
}
DPrimitive_gco_0 *

View file

@ -1,7 +1,7 @@
{
mode: "implementation",
output_cpp_dir: "src/reader2/facet",
output_hpp_dir: "include/xo/interpreter2",
output_hpp_dir: "include/xo/reader2",
output_impl_subdir: "env",
includes: [
"<xo/alloc2/GCObject.hpp>",

View file

@ -1,7 +1,7 @@
{
mode: "implementation",
output_cpp_dir: "src/interpreter2/facet",
output_hpp_dir: "include/xo/interpreter2",
output_cpp_dir: "src/reader2/facet",
output_hpp_dir: "include/xo/reader2",
output_impl_subdir: "env",
includes: [ "<xo/printable2/Printable.hpp>",
"<xo/printable2/detail/IPrintable_Xfer.hpp>" ],

View file

@ -2,7 +2,7 @@
mode: "implementation",
output_cpp_dir: "src/reader2",
output_hpp_dir: "include/xo/reader2",
output_impl_subdir: "ssm",
output_impl_subdir: "paren",
includes: [ "<xo/printable2/Printable.hpp>",
"<xo/printable2/detail/IPrintable_Xfer.hpp>" ],
local_types: [],

View file

@ -2,7 +2,7 @@
mode: "implementation",
output_cpp_dir: "src/reader2",
output_hpp_dir: "include/xo/reader2",
output_impl_subdir: "ssm",
output_impl_subdir: "paren",
includes: [ "\"SyntaxStateMachine.hpp\"",
"\"ssm/ISyntaxStateMachine_Xfer.hpp\"" ],
local_types: [ ],

View file

@ -5,8 +5,8 @@
#pragma once
#include "DParenSsm.hpp"
#include "ssm/ISyntaxStateMachine_DParenSsm.hpp"
#include "ssm/IPrintable_DParenSsm.hpp"
#include "paren/DParenSsm.hpp"
#include "paren/ISyntaxStateMachine_DParenSsm.hpp"
#include "paren/IPrintable_DParenSsm.hpp"
/* end ParenSsm.hpp */

View file

@ -11,7 +11,7 @@
* [idl/IPrintable_DParenSsm.json5]
**/
#include "ssm/IPrintable_DParenSsm.hpp"
#include "paren/IPrintable_DParenSsm.hpp"
namespace xo {
namespace scm {

View file

@ -11,7 +11,7 @@
* [idl/ISyntaxStateMachine_DParenSsm.json5]
**/
#include "ssm/ISyntaxStateMachine_DParenSsm.hpp"
#include "paren/ISyntaxStateMachine_DParenSsm.hpp"
namespace xo {
namespace scm {

View file

@ -4,6 +4,7 @@
**/
#include "Metatype.hpp"
#include <cassert>
namespace xo {
namespace scm {
@ -36,6 +37,9 @@ namespace xo {
case code::t_callable: return "callable";
case code::t_any: return "any";
}
assert(false);
return "?metatype";
}
bool
@ -86,6 +90,9 @@ namespace xo {
case code::t_any:
return true;
}
assert(false);
return false;
}
} /*namespace scm*/