Skip to content

core: make vector foreach standard C compliant#544

Open
MukundaKatta wants to merge 1 commit into
facebook:mainfrom
MukundaKatta:codex/vector-foreach-standard-c
Open

core: make vector foreach standard C compliant#544
MukundaKatta wants to merge 1 commit into
facebook:mainfrom
MukundaKatta:codex/vector-foreach-standard-c

Conversation

@MukundaKatta
Copy link
Copy Markdown

Summary

  • avoid GNU void-pointer arithmetic in bf_vector_foreach
  • use char-pointer arithmetic internally so the public macro compiles under standard C

Fixes #509.

Testing

  • git diff --check
  • cc -std=c17 -pedantic-errors -Werror -I src/libbpfilter/include -c /tmp/bpfilter-vector-XXXXXX.c

Note: full CMake configuration is blocked locally because libbpf is not installed.

@MukundaKatta MukundaKatta requested a review from qdeslandes as a code owner May 15, 2026 02:30
@meta-cla meta-cla Bot added the cla signed label May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make bf_vector_foreach compliant with the C standard

1 participant