Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

## [Unreleased]

## [2.6.0] - 2026-10-22

### Added

- `meson install` generates a `ppack.pc` file, so an installed package is consumed with `pkg-config --cflags --libs ppack`, and the build registers `ppack` with `meson.override_dependency`.
Expand Down
8 changes: 4 additions & 4 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,16 +221,16 @@ The same table pattern serves I²C and SPI device frames, register images, fixed
<!-- snippet: skip -->
```c
#define PPACK_VERSION_MAJOR 2
#define PPACK_VERSION_MINOR 5
#define PPACK_VERSION_MINOR 6
#define PPACK_VERSION_PATCH 0
#define PPACK_VERSION "2.5.0"
#define PPACK_VERSION "2.6.0"
```

`PPACK_VERSION_NUMBER` is `MAJOR * 10000 + MINOR * 100 + PATCH` as a `long`, so it holds any version where `int` is 16 bits. Compare it in the preprocessor to require a minimum release:

```c
#if PPACK_VERSION_NUMBER < 20500L
#error "ppack 2.5.0 or later is required"
#if PPACK_VERSION_NUMBER < 20600L
#error "ppack 2.6.0 or later is required"
#endif
```

Expand Down
4 changes: 2 additions & 2 deletions include/ppack.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
/* cppcheck-suppress-begin misra-c2012-2.5 ; @deviation Public version macros
* for consumer diagnostics and #if checks; the library does not use them. */
#define PPACK_VERSION_MAJOR 2
#define PPACK_VERSION_MINOR 5
#define PPACK_VERSION_MINOR 6
#define PPACK_VERSION_PATCH 0
#define PPACK_VERSION "2.5.0"
#define PPACK_VERSION "2.6.0"
#define PPACK_VERSION_STRING PPACK_VERSION
#define PPACK_VERSION_NUMBER \
((PPACK_VERSION_MAJOR * 10000L) + (PPACK_VERSION_MINOR * 100L) \
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
project(
'ppack',
'c',
version: '2.5.0',
version: '2.6.0',
meson_version: '>=0.57.0',
default_options: [
'c_std=c11',
Expand Down
Loading