diff options
| author | Kenny Levinsen <kl@kl.wtf> | 2025-04-30 13:34:31 +0200 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2025-05-01 00:00:50 +0200 |
| commit | 8ac1f72c9ef88b2919457e3598059f963df69305 (patch) | |
| tree | 25e2138f48abe1c12b4c7aacc87a0d99b6405b3d /include/stringop.h | |
| parent | 6cac61b6b96c4a48a69f8ec3c06c2df560b01827 (diff) | |
config/output: Use INT_MAX as x/y unset value
We oftne use -1 to indicate unset values. In case of output (x, y), we
would consider the fields set if they are not both -1. This means that
(0, -1) and (-1, 0) are valid coordinates, but (-1, -1) is not.
We support negative output positioning, so we cannot use -1 to mean
unset. Zero is also not an option as that would disallow reverting a set
position back to (0, 0).
INT_MAX is an unreasonable output position, so use it to indicate unset
values, and only use the value when both are set.
Diffstat (limited to 'include/stringop.h')
0 files changed, 0 insertions, 0 deletions
