Commit 7bb5f53
Prefix public bitfield macros with
* Prefix public bitfield macros with `LBT_` to avoid namespace pollution
`src/libblastrampoline.h` is the public header, but it defined the unprefixed
macros `BF_CHUNK`, `BF_MASK`, and `BITFIELD_{GET,SET,CLEAR}` into every
consumer's namespace. `BF_MASK` in particular is a likely collision.
Rename them to `LBT_`-prefixed names (`LBT_BF_CHUNK`, `LBT_BF_MASK`,
`LBT_BITFIELD_{GET,SET,CLEAR}`) and update the in-tree usages. The three
documented public macros (`BITFIELD_{GET,SET,CLEAR}`, referenced from the
`active_forwards` docstring) are kept as backwards-compatible aliases so
existing consumers don't break; `BF_CHUNK`/`BF_MASK` were internal helpers and
are renamed without aliases.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Drop the unprefixed bitfield macro aliases
Per review discussion, remove the backwards-compatible `BITFIELD_{GET,SET,CLEAR}`
aliases and keep only the `LBT_`-prefixed macros. These are compile-time-only
helper macros (not exported symbols), so removing them does not affect the ABI /
soversion — no major version bump required.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>LBT_ to avoid namespace pollution (#177)1 parent 2789a73 commit 7bb5f53
3 files changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
410 | | - | |
| 410 | + | |
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments