refactor(nyrt): consolidate ny_release_strong into lifecycle module
Phase 29y.1 cleanup: Eliminate duplicate ny_release_strong implementation. Changes: - Remove duplicate ny_release_strong from lib.rs (11 lines) - Consolidate into ffi/lifecycle.rs (rename shim → legacy name) - Maintain backward compatibility with existing LLVM lowering Verification: - quick: 154/154 PASS - integration phase29y: 2/2 PASS 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@ -57,18 +57,16 @@ pub extern "C" fn nyrt_handle_release_h(handle: i64) {
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Compatibility shim for existing code
|
||||
// Legacy name (backward compatibility)
|
||||
// ============================================================================
|
||||
|
||||
/// ny_release_strong: Compatibility shim
|
||||
/// ny_release_strong: Legacy name (backward compatibility)
|
||||
///
|
||||
/// Legacy name for nyrt_handle_release_h.
|
||||
/// New code should use nyrt_handle_release_h directly.
|
||||
/// Original name from Phase 287. Kept for backward compatibility with existing
|
||||
/// LLVM lowering code. Equivalent to nyrt_handle_release_h.
|
||||
///
|
||||
/// # Deprecation
|
||||
/// This function is kept for backward compatibility with existing LLVM lowering.
|
||||
/// Future phases will migrate callers to nyrt_handle_release_h.
|
||||
/// New code should prefer nyrt_handle_release_h for clarity.
|
||||
#[no_mangle]
|
||||
pub extern "C" fn ny_release_strong_shim(handle: i64) {
|
||||
pub extern "C" fn ny_release_strong(handle: i64) {
|
||||
nyrt_handle_release_h(handle);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user