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
3 changes: 2 additions & 1 deletion 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]

## [0.2.0] - 2026-10-22

### Added

- `scripts/format.sh`, which pins the clang-format release and runs it with `uvx`. CI checks formatting through it.
Expand All @@ -20,7 +22,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- The build produces and installs only the static library. The shared library, which neither `seqlock_dep` nor `seqlock.pc` linked, is no longer built.
- CI installs Meson, Ninja and gcovr with `uv` instead of `pip`.
- CI gates on 100% branch coverage as well as line coverage. The reader retry branches are reached deterministically by a single-threaded test, and the no-atomics backend is built and tested alongside the C11 backend.

- Added security policy, SPDX headers, and cleaned ignore rules while leaving the existing special coverage/concurrency handling unchanged.

### Removed
Expand Down
10 changes: 5 additions & 5 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,16 +179,16 @@ record_load(const record_cell_t *cell, void *out)
<!-- snippet: skip -->
```c
#define SEQLOCK_VERSION_MAJOR 0
#define SEQLOCK_VERSION_MINOR 1
#define SEQLOCK_VERSION_PATCH 1
#define SEQLOCK_VERSION "0.1.1"
#define SEQLOCK_VERSION_MINOR 2
#define SEQLOCK_VERSION_PATCH 0
#define SEQLOCK_VERSION "0.2.0"
```

`SEQLOCK_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 SEQLOCK_VERSION_NUMBER < 101L
#error "seqlock 0.1.1 or later is required"
#if SEQLOCK_VERSION_NUMBER < 200L
#error "seqlock 0.2.0 or later is required"
#endif
```

Expand Down
6 changes: 3 additions & 3 deletions include/seqlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,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 SEQLOCK_VERSION_MAJOR 0
#define SEQLOCK_VERSION_MINOR 1
#define SEQLOCK_VERSION_PATCH 1
#define SEQLOCK_VERSION "0.1.1"
#define SEQLOCK_VERSION_MINOR 2
#define SEQLOCK_VERSION_PATCH 0
#define SEQLOCK_VERSION "0.2.0"
#define SEQLOCK_VERSION_STRING SEQLOCK_VERSION
#define SEQLOCK_VERSION_NUMBER \
((SEQLOCK_VERSION_MAJOR * 10000L) + (SEQLOCK_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(
'seqlock',
'c',
version: '0.1.1',
version: '0.2.0',
meson_version: '>=0.57.0',
default_options: [
'c_std=c11',
Expand Down
Loading