Skip to content

refactor!: remove the extern "C" guards from the public headers - #17

Merged
aajll merged 1 commit into
masterfrom
16-refactor-remove-extern-c
Oct 15, 2026
Merged

aajll merged 1 commit into
masterfrom
16-refactor-remove-extern-c

Conversation

@aajll

@aajll aajll commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Layer 1 of 1.

What and why

ppack.h wrapped its declarations in extern "C". The primitives are C11 libraries for C consumers; C++ and Rust consumers get native implementations rather than bindings, so the guards are removed and the headers make no C++ claim. The guard also did not hold: ppack_platform.h uses _Static_assert at file scope, so a C++ translation unit including ppack.h failed to compile.

The CHANGELOG lists the removal under Removed. It ships in the next minor release under the release policy.

Acceptance criteria

  • No public header contains __cplusplus or extern "C" (git grep -n __cplusplus include is empty).
  • The docs make no C++ claim, and the CHANGELOG lists the removal under Removed.
  • CI passes, including both TI C2000 jobs.

Checks

  • meson test: 3/3. misch run, misch deviations.
  • scripts/format.sh

Refs #16

The library is C11 only; C++ and Rust consumers use native implementations rather than bindings, so the headers make no C++ claim. The guard also did not hold: `ppack_platform.h` uses `_Static_assert` at file scope, so a C++ translation unit including `ppack.h` failed to compile.

Refs #16
@aajll aajll linked an issue Oct 15, 2026 that may be closed by this pull request
3 tasks done
@aajll
aajll merged commit d06cf38 into master Oct 15, 2026
9 checks passed
@aajll
aajll deleted the 16-refactor-remove-extern-c branch October 15, 2026 15:41
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.

Remove the extern "C" guards from the public headers

1 participant