Skip to content

Update caf to use new paffy Cigar array API#1905

Open
benedictpaten wants to merge 2 commits intomasterfrom
faster_pafs
Open

Update caf to use new paffy Cigar array API#1905
benedictpaten wants to merge 2 commits intomasterfrom
faster_pafs

Conversation

@benedictpaten
Copy link
Collaborator

Summary

  • The paffy submodule was updated (commit 8816b372) and refactored Cigar from a singly-linked list to a contiguous array container (CigarRecord[]) accessed via cigar_count() / cigar_get()
  • Updated caf/impl/pinchIterator.c to replace Cigar *op cursor with an integer index and rewrote traversal using the new array accessors
  • Updated caf/tests/pinchIteratorTest.c to use the new array API for both traversal and construction
  • Added a Makefile fix to sync paffy's embedded sonLib to the cactus-level sonLib before building, so that stFile_getLineFromFileWithBufferUnlocked (added in the updated sonLib) is available when compiling paffy

Test plan

  • make -j 8 builds cleanly with no errors
  • ./bin/stCafTests passes all 17 tests including testPinchIteratorFromFile

🤖 Generated with Claude Code

benedictpaten and others added 2 commits March 10, 2026 12:16
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The paffy submodule refactored Cigar from a singly-linked list to a
contiguous array container with CigarRecord entries, accessed via
cigar_count() and cigar_get(). Update pinchIterator.c and
pinchIteratorTest.c to use the new API. Also sync paffy's embedded
sonLib to the cactus-level sonLib before building, as the new paffy
code requires stFile_getLineFromFileWithBufferUnlocked which was added
in the updated sonLib.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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