A full audit of Reaktor's own sources: section banners, return-value and
parameter notes, and descriptions of what a function does are gone. What
stays records a library, OS or browser quirk, a threading or lifetime rule,
or a license. Two comments that still named libdbus are corrected. Code is
unchanged; the vendored nk_sdl3_renderer.h keeps its own comments.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
core/css/css.c reads the stylesheets once into typed values and cascades
them as CSS does: !important, then specificity, then source order. It takes
var(), color-mix(in srgb, ...), em and rem, calc() over pixels, the @media
features Reaktor answers, @import at the top of a sheet, :not(), :enabled,
attribute selectors read as classes, descendant and child combinators, and
escapes. Rules are bucketed by the last compound of their selector, so a
query checks only the rules that could match. cssflat.c, LCUI's libcss and
yutil, and the lcui submodule go.
Screenshots of every showcase tab, notepad and simple, light and dark, with
normal and more contrast, are byte-identical to the libcss build, with
Water.css and with Simple.css; --a11y-dump differs only in the a11y struct's
size. Three values change to what CSS says: an unset background is
transparent black, an unset border color is the text's, and Simple.css's
:enabled:hover no longer reaches a disabled button. Against libcss, loading
the sheets takes 0.35 ms instead of 1.24 and a first query 0.32 us instead
of 4.4. csstest covers the cascade, values, @media and hostile sheets: import
loops and fan-out, var() that grows or expands too often, deep calc(), a sheet
left open, a huge file. 200,000 mutated sheets ran clean under AddressSanitizer.
Simplifications: dead state (redraw_always, sw_noaa, the hover-gap pin, a
muted note, an overwritten slider range, the font-baking blocks of the SDL
renderer, the a11y change index); REAKTOR_LAY_FILL for FILL_X | FILL_Y; one
helper each for flag parsing, capture runs, timings, paths from the working
directory, array growth, focus moves, tooltips, button presses, a11y slot
probes, UIA fragments and test strings; launchtest's notef() and last_node();
the output folder set once in CMake and a write-if-changed function; one test
list, tools/ci/tests.txt, for every workflow, so basetest and imagetest run.
The showcase drops its relaunch button, an ask() button is as wide as its
label, and build.sh takes a bare target. The docs follow, and PERFORMANCE.md
and the chart carry a new pass of all seven benchmark arms on one machine.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The tree's jump to a parent checks the parent against the tree's count, not
the list's. A font's name table is checked in reaktor_font_valid, before
Nuklear reads it, in place of the late check in text.c.
cssflat.c checks every token with one token_ok, frees in one place in
emit_one, and drops unresolved variables once. UTF-8 cleaning uses SDL's
decoder. The file dialog flag becomes file_busy, freed by reaktor_app_free.
urltest becomes basetest and holds the UTF-8 checks.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
When the settings folder's path was too long for a socket, the socket went to a name in /tmp that another user could bind first, receiving the paths a later launch sent. It now goes into /tmp/reaktor-<uid>, created 0700 and checked to be a real folder owned by the user and closed to others; if it is not, the app logs it and runs as a copy of its own.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The pipe's name can be predicted, so another account on the machine could create it first. A later launch then handed that pipe its file paths and connected at the default impersonation level, letting an account with the impersonation privilege act as the user. Launches now connect at identification level only, send nothing unless the pipe's server runs as the same user, and the listener claims the name exclusively. Whenever any of this fails, the app logs it and runs as a copy of its own.
Tested with PowerShell holding the pipe first: the showcase logged that the name was held and ran on its own, and the squatting server was granted Identification only; a normal second launch still hands over, in 184 ms.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The listener read with no time limit, so a client that connected and sent nothing held it: later launches could not hand over their files, and quitting hung, since stopping the listener meant connecting to it. On Windows the pipe is now overlapped, each read waits at most 2 seconds, and a stop event ends any wait; elsewhere each connection has a 2-second receive timeout. A launch whose message never arrives no longer raises the window. Checked on Windows against master: with a silent client connected, a second launch handed over in 2.1 s instead of never, and quitting took 29 ms instead of hanging.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
.single_instance claims a named mutex and pipe on Windows, a Unix socket
elsewhere; a later launch sends its paths, made absolute, and exits.
--new-instance opts out, and shot and dump runs never claim. The showcase
demonstrates it on Diagnostics, and CI checks the hand-off on every platform.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>