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: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ scripts/format.sh --fix # rewrite in place

### 1.2 Notes

- `include/seqlock.h` defines the version macros, and `meson setup` fails when they differ from `project(version:)`, so a release updates both. `include/seqlock_version.h` is a deprecated header that includes `seqlock.h`.
- `include/seqlock.h` defines the version macros, and `meson setup` fails when they differ from `project(version:)`, so a release updates both.
- The build produces only a static library. The only Meson option is `build_tests`.
- `SEQLOCK_COUNTER_TYPE` and the backend macros must be identical for the library and every caller; nothing detects a mismatch. `seqlock.h` includes `seqlock_conf.h` with quotes, so configuration is by `-D` only, never by a replacement header.
- ThreadSanitizer needs a 4 KiB-page kernel with a 48-bit address space on AArch64, and AddressSanitizer does not start on a 39-bit one; use a plain native build there.
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

### Changed

- `seqlock.h` defines `SEQLOCK_VERSION_MAJOR`, `_MINOR`, `_PATCH`, `SEQLOCK_VERSION`, `SEQLOCK_VERSION_STRING` and a new `SEQLOCK_VERSION_NUMBER` (`long`, `MAJOR * 10000 + MINOR * 100 + PATCH`), so a copied-in header carries its version. `seqlock_version.h` is no longer generated; it is installed as a deprecated header that includes `seqlock.h`. Meson fails to configure when the header and `project(version:)` disagree, and the build needs Meson 0.57 or later.
- `seqlock.h` defines `SEQLOCK_VERSION_MAJOR`, `_MINOR`, `_PATCH`, `SEQLOCK_VERSION`, `SEQLOCK_VERSION_STRING` and a new `SEQLOCK_VERSION_NUMBER` (`long`, `MAJOR * 10000 + MINOR * 100 + PATCH`), so a copied-in header carries its version. Meson fails to configure when the header and `project(version:)` disagree, and the build needs Meson 0.57 or later.
- 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

- `seqlock_version.h`. `seqlock.h` defines the version macros.

## [0.1.1] - 2026-06-03

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,4 @@ record_load(const record_cell_t *cell, void *out)
#endif
```

`SEQLOCK_VERSION_STRING` is the same string as `SEQLOCK_VERSION`. `seqlock_version.h` is a deprecated header that includes `seqlock.h`, kept so existing includes compile until the next major release.
`SEQLOCK_VERSION_STRING` is the same string as `SEQLOCK_VERSION`.
2 changes: 0 additions & 2 deletions docs/integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ The install contains `libseqlock.a`, the headers in a `seqlock/` subdirectory, a
#include <seqlock/seqlock.h>
```

`seqlock_version.h` is installed beside it as a deprecated header that includes `seqlock.h`.

## Configuration

Every option in `seqlock_conf.h` sits behind an `#ifndef` guard, so a `-D` definition replaces the shipped default. The options are described in [api.md](api.md#configuration).
Expand Down
19 changes: 0 additions & 19 deletions include/seqlock_version.h

This file was deleted.

1 change: 0 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ seqlock_lib = static_library(
install_headers(
'include/seqlock.h',
'include/seqlock_conf.h',
'include/seqlock_version.h',
subdir: 'seqlock',
)

Expand Down
3 changes: 1 addition & 2 deletions tests/test_seqlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

#include "seqlock.h"
#include "seqlock_test.h"
#include "seqlock_version.h"

#include <stdint.h>
#include <string.h>
Expand Down Expand Up @@ -152,7 +151,7 @@ TEST_CASE(test_large_payload)
}
}

/* The deprecated version header still exposes the macros from seqlock.h. */
/* The version number agrees with its parts. */
TEST_CASE(test_version_macros)
{
TEST_ASSERT(SEQLOCK_VERSION_NUMBER
Expand Down
Loading