Skip to content

Commit 4daf8bb

Browse files
ciolansteenIonut Adrian CiolanCopilot
authored
feat(fff-c): add stable C accessor functions for external FFI consumers (#395)
* feat(fff-c): add stable C accessor functions for external FFI consumers * fff-c: add accessor unit tests (8 tests, 0 warnings) Tests cover: - Null-pointer guards: every getter returns its zero-value (0 / false / null) when passed a null pointer — no UB, no crash - Data correctness: FffFileItem, FffGrepMatch, FffSearchResult and FffGrepResult getters return exactly the values stored in the struct All 8 tests pass clean under Rust 2024 edition (no unsafe-op warnings). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * style: apply cargo fmt formatting Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Ionut Adrian Ciolan <iadrian@ciolan.net> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 2201fae commit 4daf8bb

2 files changed

Lines changed: 883 additions & 0 deletions

File tree

0 commit comments

Comments
 (0)