Skip to content

[0073] 将 format 模块从 s7.c 拆分为独立编译单元#848

Merged
da-liii merged 2 commits into
mainfrom
da/0073/s7_split
May 31, 2026
Merged

[0073] 将 format 模块从 s7.c 拆分为独立编译单元#848
da-liii merged 2 commits into
mainfrom
da/0073/s7_split

Conversation

@da-liii
Copy link
Copy Markdown
Contributor

@da-liii da-liii commented May 31, 2026

摘要

将 s7.c 中的 format 相关函数拆分到独立的编译单元 s7_scheme_format.c 中,并在 (liii base) 中导出 format 函数。

改动内容

  1. 新增 src/s7_scheme_format.csrc/s7_scheme_format.h,包含 format 模块的实现和声明
  2. 修改 src/s7.c,添加大量桥接函数(bridge functions)以支持外部编译单元访问内部宏和字段
  3. 修改 src/s7_internal_helpers.h,添加 format 相关桥接函数声明
  4. 修改 xmake.lua,将 s7_scheme_format.c 作为独立 C11 编译单元
  5. goldfish/liii/base.scm 中导出 format
  6. 新增 tests/liii/base/format-test.scm,包含 11 个 format 单元测试

测试计划

  • xmake b goldfish 编译通过
  • bin/gf test 全部 1457 个测试通过
  • bin/gf doc --build-json 索引更新成功
  • bin/gf doc format 可正常查看文档和测试

🤖 Generated with Claude Code

da-liii and others added 2 commits May 31, 2026 19:03
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@da-liii da-liii merged commit dce7b3b into main May 31, 2026
4 checks passed
@da-liii da-liii deleted the da/0073/s7_split branch May 31, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant