[0055] 将 s7.c 中的 complex 相关内置函数迁移到 s7_scheme_complex.c#834
Open
da-liii wants to merge 2 commits into
Open
Conversation
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
g_is_complex(complex?内置函数)到s7_scheme_complex.cs7i_apply_boolean_method和s7i_is_complex_symbol到s7_internal_helpers.hs7_scheme_complex.c,并暴露为s7i_casinh_1、s7i_cacosh_1、s7i_catanh_1s7_scheme_inexact.c使用s7i_casinh_1等函数s7_scheme_complex.ccomplex_vector相关函数(g_complex_vector_ref、g_complex_vector_set、g_make_complex_vector等)因深度耦合s7.c共享向量基础设施,保留在s7.c中Test plan
bin/gf tests/scheme/base/complex-p-test.scmbin/gf tests/scheme/complex/angle-test.scmbin/gf tests/scheme/complex/imag-part-test.scmbin/gf tests/scheme/complex/magnitude-test.scmbin/gf tests/scheme/complex/make-polar-test.scmbin/gf tests/scheme/complex/make-rectangular-test.scmbin/gf tests/scheme/complex/real-part-test.scmbin/gf tests/liii/vector/complex-vector-test.scmbin/gf tests/liii/vector/complex-vector-p-test.scmbin/gf tests/liii/vector/complex-vector-ref-test.scmbin/gf tests/liii/vector/complex-vector-set-bang-test.scmbin/gf tests/liii/vector/make-complex-vector-test.scmbin/gf tests/scheme/inexact/acos-test.scmbin/gf tests/scheme/inexact/asin-test.scmbin/gf tests/scheme/inexact/cos-test.scmbin/gf tests/scheme/inexact/exp-test.scmbin/gf tests/scheme/inexact/log-test.scmbin/gf tests/scheme/inexact/sin-test.scmbin/gf tests/scheme/inexact/sqrt-test.scmbin/gf tests/scheme/inexact/tan-test.scm🤖 Generated with Claude Code