[0072] 从 s7.c 拆分基础函数和谓词函数#847
Merged
Merged
Conversation
…?/random-state?/continuation?/iterator?)
…cheme_predicate.c
…port/g_open_output_string 到 s7_scheme_write.c
…yclic_sequences/object_to_let/pair_line_number/reverse/port_line_number/tree_memq/tree_set_memq/format_nr/unlet_disabled/curlet)
…_syms/heap_analyze/show_op_stack/is_op_stack/outlet_unlet/heap_holder/heap_holders)
…/list_1/append_2) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…7pp bridge Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…vide 系列) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…eme_base.c Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…ase.c Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…dicate.c 迁移到 s7_scheme_base.c Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…heme_base.c Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…me_predicate.c 迁移到 s7_scheme_base.c Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…redicate.c Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
… bridge Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…p bridge Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…s7_scheme_base.c Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
从
s7.c中拆分基础函数和谓词函数到独立的模块文件中,降低单文件复杂度,提升编译速度和代码可维护性。主要变更
s7_scheme_base.c:迁移基础函数(算术运算、let 操作、列表操作、错误处理等)s7_scheme_predicate.c:迁移类型谓词和比较函数s7_scheme_write.c:迁移端口相关函数s7_scheme_inexact.c:迁移浮点相关函数s7_liii_vector.c:迁移 complex-vector 相关函数s7_dtoa.c:迁移 Grisu2 双精度浮点转字符串算法s7_ctables.c:迁移字符分类表s7_op_names.c:迁移操作码名称表s7_internal_helpers.h:内部辅助函数声明xmake.lua:添加新源文件到构建系统涉及文件
src/s7.c(大量函数迁出,体积显著减小)src/s7_scheme_base.c/hsrc/s7_scheme_predicate.c/hsrc/s7_scheme_write.c/hsrc/s7_scheme_inexact.c/hsrc/s7_liii_vector.c/hsrc/s7_dtoa.c/hsrc/s7_ctables.c/hsrc/s7_op_names.c/hsrc/s7_internal_helpers.htests/scheme/s7-test.scmxmake.lua🤖 Generated with Claude Code