Compare commits

...
35 Commits
Author SHA1 Message Date
p 340cb98bde liberty-proto: fix accidental overallocation
Alpine 3.24 Success
OpenBSD 7.8 Success
2026-11-03 13:30:49 +01:00
p 4d54471bed liberty-xui: make transposition announce changes
Alpine 3.24 Success
OpenBSD 7.8 Success
Forgotten part of bb75c8e.
2026-11-03 13:11:36 +01:00
p 1bc3116835 liberty-xui: AppKit: improve integration
Alpine 3.24 Success
OpenBSD 7.8 Success
2026-10-31 11:12:31 +01:00
p 64a0850aea liberty-xui: AppKit: reduce CPU usage when hidden
Alpine 3.24 Success
OpenBSD 7.8 Success
On X11, this seems to not matter as much.
2026-10-29 07:25:27 +01:00
p c5157ff447 liberty-xui: X11: don't beep on Super+modifiers
Alpine 3.24 Success
OpenBSD 7.8 Success
2026-10-29 06:46:03 +01:00
p 32d66fb575 liberty-xui: use monospaced digits on AppKit
Alpine 3.24 Success
OpenBSD 7.8 Success
It's the better default.
2026-10-28 02:40:48 +01:00
p 0d7326947c liberty-xui: prevent AppKit resource leaks
Alpine 3.24 Success
OpenBSD 7.8 Success
2026-10-28 01:49:31 +01:00
p f0d637df89 Improve documentation
Alpine 3.24 Success
OpenBSD 7.8 Success
2026-09-28 18:54:06 +02:00
p c6a8d65bbc Avoid a compiler warning
Alpine 3.24 Success
OpenBSD 7.8 Success
2026-09-14 20:11:16 +02:00
p c82a367391 lxdrgen-c: safer deserialisation
Alpine 3.24 Success
OpenBSD 7.8 Success
2026-09-14 19:15:25 +02:00
p eba8ead2b7 liberty-xui: fix X11 font matching
Alpine 3.24 Success
OpenBSD 7.8 Success
2026-09-05 16:53:21 +02:00
p 022cce71fa liberty-xui: fix IBus preedit IME
Alpine 3.24 Success
OpenBSD 7.8 Success
2026-09-04 14:59:20 +02:00
p e0b9a31a57 liberty-xui: don't guess X11 modifiers
Alpine 3.24 Success
OpenBSD 7.8 Success
2026-08-31 12:11:22 +02:00
p ba4b3d43b8 liberty-xui: optionally colour manage X11
Alpine 3.24 Success
OpenBSD 7.8 Success
Best effort beats no effort.
2026-08-29 07:14:20 +02:00
p 287225de4d Extend toolchain file
Alpine 3.24 Success
OpenBSD 7.8 Success
2026-08-21 18:23:11 +02:00
p 952665bf3e liberty-xui: try to ignore the Super key 2026-08-21 16:30:44 +02:00
p 4cfaf9e2b3 CMake: assume WINE 11
Alpine 3.24 Success
OpenBSD 7.8 Success
2026-08-21 13:40:00 +02:00
p 285dacb785 liberty-xui: add some clipboard pasting abilities
Alpine 3.24 Success
OpenBSD 7.8 Success
2026-08-11 05:30:53 +02:00
p bb75c8e4fa liberty-xui: add transposition to the line editor
Alpine 3.24 Success
OpenBSD 7.8 Success
2026-08-10 13:09:10 +02:00
p 8fdb6c702d liberty-xui: improve X11 focus handling
Alpine 3.24 Success
OpenBSD 7.8 Success
Pressing a global keyboard shortcut no longer defocuses us.

IBus is actually still not quite happy with something.
2026-08-10 10:05:48 +02:00
p 9c0f8df784 liberty-xui: add support for positioned preedit
Alpine 3.24 Success
OpenBSD 7.8 Success
In fact, all X11 XUI applications should now position their input,
or the IME will be placed in the lower left window corner.
2026-08-10 05:36:08 +02:00
p be66e0e00a liberty-xui: update source code comments 2026-08-08 15:53:30 +02:00
p fb6170f2b6 liberty-xui: speed up X11 labels
Alpine 3.24 Success
OpenBSD 7.8 Success
Avoid pointless normalisation and memory allocation.
2026-08-08 04:10:04 +02:00
p c0ea24d92d liberty-xui: add shell out and XEmbed support
Alpine 3.24 Success
OpenBSD 7.8 Success
To allow for program composition.
2026-08-07 08:04:26 +02:00
p 7f2156c3d7 Eliminate an annoying compilation warning
Alpine 3.24 Success
OpenBSD 7.8 Success
2026-08-05 09:28:15 +02:00
p 998122267b liberty-xui: teach the TUI vertical clipping
Alpine 3.24 Success
OpenBSD 7.8 Success
Specifically for line-wrapped text within scrolled lists.
2026-08-05 08:30:33 +02:00
p c7fdd8ec58 liberty-xui: render multiline padding widgets
Also render that padding underneath labels.
2026-08-05 07:04:18 +02:00
p 12063aecde liberty-xui: clear X11 clip before rendering bg
Alpine 3.24 Success
OpenBSD 7.8 Success
2026-07-31 01:40:09 +02:00
p e90abbd03c liberty-xui: import some widgets from nncmpp
Alpine 3.24 Success
OpenBSD 7.8 Success
- The symbol is what used to be a button, but more aptly named.
 - The scrollbar is adjusted to avoid using the Full Block character.
 - The gauge is adjusted to span the whole height,
   and displays a ratio, using only a single attribute
   which is inverted as necessary.

Widgets now contain text through a pointer, which may still point
right past the structure itself.  This change makes them subclassable,
which is what all of these widgets need.
2026-07-30 17:33:56 +02:00
p 2453d4d0b1 liberty-xui: improve clipping on X11
Alpine 3.24 Success
OpenBSD 7.8 Success
We used to clip text but not widget backgrounds,
resulting in an odd undesirable mix.
2026-07-29 22:16:03 +02:00
p 0af42f975c liberty-xui: fix X11 FontConfig patterns
Look for styles by parameters rather than literal font names,
which is likely to fail, e.g., on Oblique vs Italic for some fonts.
2026-07-29 22:14:41 +02:00
p d4f81ffa89 liberty-xui: expose beeping
Sometimes we may want to beep asynchronously.
2026-07-29 22:14:25 +02:00
p fbb577f3f8 CMakeLists.txt: use scoped target_link_libraries
Alpine 3.23 Success
OpenBSD 7.8 Success
2026-07-20 01:57:16 +02:00
p b7f6b0c757 AddThreads.cmake: use scoped target_link_libraries
Alpine 3.23 Success
OpenBSD 7.8 Scripts failed
"All uses of target_link_libraries with a target must be either
all-keyword or all-plain." and this is the superiour choice.
2026-07-20 01:46:51 +02:00
p f28aa74e6b asciiman: match __a_b__ and **b*c** properly
Alpine 3.23 Success
OpenBSD 7.8 Success
The former is italic "a_b" and the latter is bold "b*c".
2026-07-15 05:39:21 +02:00
11 changed files with 1582 additions and 149 deletions
+4 -4
View File
@@ -50,7 +50,7 @@ endif ()
foreach (name ${tests})
add_executable (test-${name} tests/${name}.c ${common_sources})
add_threads (test-${name})
target_link_libraries (test-${name} ${common_libraries})
target_link_libraries (test-${name} PRIVATE ${common_libraries})
add_test (NAME test-${name} COMMAND test-${name})
endforeach ()
@@ -97,7 +97,7 @@ add_custom_target (test-lxdrgen-outputs ALL DEPENDS ${lxdrgen_outputs})
set_source_files_properties (${lxdrgen_base}.c
PROPERTIES HEADER_FILE_ONLY TRUE)
add_executable (test-lxdrgen-c tests/lxdrgen.c ${lxdrgen_base}.c)
target_include_directories (test-lxdrgen-c PUBLIC ${PROJECT_BINARY_DIR})
target_include_directories (test-lxdrgen-c PRIVATE ${PROJECT_BINARY_DIR})
add_test (NAME test-lxdrgen-c COMMAND test-lxdrgen-c)
set_source_files_properties (${lxdrgen_base}.cpp
@@ -109,8 +109,8 @@ else ()
add_executable (test-lxdrgen-cpp tests/lxdrgen.cpp
${lxdrgen_base}.cpp tools/lxdrgen-cpp-posix.cpp)
endif ()
target_link_libraries (test-lxdrgen-cpp ${common_libraries})
target_include_directories (test-lxdrgen-cpp PUBLIC ${PROJECT_BINARY_DIR})
target_link_libraries (test-lxdrgen-cpp PRIVATE ${common_libraries})
target_include_directories (test-lxdrgen-cpp PRIVATE ${PROJECT_BINARY_DIR})
add_test (NAME test-lxdrgen-cpp COMMAND test-lxdrgen-cpp)
find_program (GO_EXECUTABLE go)
+4 -4
View File
@@ -9,8 +9,8 @@ of as a successor to my other C library, libxtnd.
You are supposed to import it as a git submodule and include the main source
file directly everywhere you need it, setting feature flags as appropriate.
Everything is declared "static". I have come to the conclusion that this style
of C programming suits me the best, as it allows me to nearly forget about the
mess that are header files.
of C programming suits me best, as it allows me to nearly forget about the mess
that are header files.
The API is intentionally unstable, which allows for easy refactoring.
@@ -53,12 +53,12 @@ lxdrgen-cpp-posix.cpp::
lxdrgen-cpp-qt.cpp::
lxdrgen-cpp-win32.cpp::
LibertyXDR backend for C++, primarily targeting Win32 and its wide strings.
Link the result together with one of the accompanied source files.
Link the result together with one of the accompanying source files.
lxdrgen-go.awk::
LibertyXDR backend for Go, supporting _encoding/json_ interfaces. It also
produces optimized JSON marshallers (however, note that the _json.Marshaler_
interface is bound to be underperforming, due to the amount of otherwise
interface is bound to be underperforming, due to the number of otherwise
avoidable memory allocations it necessitates).
lxdrgen-mjs.awk::
+1 -1
View File
@@ -18,6 +18,6 @@ function (add_threads target)
INTERFACE_COMPILE_OPTIONS "-pthread")
endif ()
if (CMAKE_THREAD_LIBS_INIT)
target_link_libraries (${target} "${CMAKE_THREAD_LIBS_INIT}")
target_link_libraries (${target} PUBLIC "${CMAKE_THREAD_LIBS_INIT}")
endif ()
endfunction ()
+2 -1
View File
@@ -4,9 +4,10 @@ set (CMAKE_SYSTEM_PROCESSOR "x86_64")
set (CMAKE_C_COMPILER "x86_64-w64-mingw32-gcc")
set (CMAKE_CXX_COMPILER "x86_64-w64-mingw32-g++")
set (CMAKE_RC_COMPILER "x86_64-w64-mingw32-windres")
set (CMAKE_OBJDUMP "x86_64-w64-mingw32-objdump")
# Remember to set WINEPATH for library dependencies
set (CMAKE_CROSSCOMPILING_EMULATOR "wine64")
set (CMAKE_CROSSCOMPILING_EMULATOR "wine")
set (CMAKE_FIND_ROOT_PATH "/usr/x86_64-w64-mingw32")
+1 -1
View File
@@ -1678,7 +1678,7 @@ mpd_client_add_task
// later flushed if an early ACK or OK arrives).
hard_assert (!self->in_list);
struct mpd_client_task *task = xcalloc (1, sizeof *self);
struct mpd_client_task *task = xcalloc (1, sizeof *task);
task->callback = cb;
task->user_data = user_data;
LIST_APPEND_WITH_TAIL (self->tasks, self->tasks_tail, task);
+1539 -121
View File
File diff suppressed because it is too large Load Diff
+12 -1
View File
@@ -108,6 +108,17 @@ extern char **environ;
#define ATTRIBUTE_SENTINEL
#endif // ! __GNUC__ || __GNUC__ < 4
// Since Clang 2.9 and later GCC 5
#ifndef __has_attribute
#define __has_attribute(x) 0
#endif
#if __has_attribute (nonstring)
#define ATTRIBUTE_NONSTRING __attribute__ ((nonstring))
#else
#define ATTRIBUTE_NONSTRING
#endif
#define N_ELEMENTS(a) (sizeof (a) / sizeof ((a)[0]))
#define BLOCK_START do {
@@ -838,7 +849,7 @@ random_bytes (void *output, size_t len, struct error **e)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
static unsigned char g_siphash_key[16] = "SipHash 2-4 key!";
static unsigned char g_siphash_key[16] ATTRIBUTE_NONSTRING = "SipHash 2-4 key!";
static inline void
siphash_wrapper_randomize (void)
+5 -5
View File
@@ -20,7 +20,7 @@ whatever is appropriate in their target language.
Primitive data types
~~~~~~~~~~~~~~~~~~~~
Like in XDR, all data is serialized in the network byte order, i.e., big-endian.
Like in XDR, all data is serialized in network byte order, i.e. big-endian.
* *void*: 0 bytes
+
@@ -51,7 +51,7 @@ typeless integer constants:
const VERSION = 1;
The value can be either a name of another previously defined constant,
The value can be either the name of a previously defined constant,
or an immediate decimal value, which may not contain leading zeros.
Enumerations
@@ -60,7 +60,7 @@ An *enum* is an *i8* with uniquely named values, in their own namespace.
Values can be either specified explicitly, in the same way as with a constant,
or they can be left implicit, in which case names assume a value that is one
larger than their predecessor. Zero is reserved for internal use, thus
larger than their predecessor. Zero is reserved for internal use. Thus,
enumerations implicitly begin with a value of one. For example, these form
a sequence from one to three:
@@ -80,7 +80,7 @@ definitions can be arbitrarily syntactically nested, as in C.
u8 version; // Version of this report.
struct Item {
Vehicle kind; // The vehicle in question.
i32 count; // How many vehicle of that kind there are.
i32 count; // How many vehicles of that kind there are.
} items<>; // Reported items.
};
@@ -98,7 +98,7 @@ and always-present field, which must be a tag *enum*:
There is no *case* fall-through.
Unless *default* is present, only the listed enumeration values are valid.
Any *default* must currently be empty.
Any *default* must currently be devoid of data.
Framing
-------
+2 -2
View File
@@ -139,9 +139,9 @@ function format(line, v) {
while (line) {
if (match(line, /^[+][+][+][^+]+[+][+][+]/)) {
v = v substr(line, RSTART + 3, RLENGTH - 6)
} else if (match(line, /^__[^_]+__/)) {
} else if (match(line, /^__([^_]+.)*[^_]+__/)) {
v = v "\\fI" substr(line, RSTART + 2, RLENGTH - 4) "\\fP"
} else if (match(line, /^[*][*][^*]+[*][*]/)) {
} else if (match(line, /^[*][*]([^*]+.)*[^*]+[*][*]/)) {
v = v "\\fB" substr(line, RSTART + 2, RLENGTH - 4) "\\fP"
} else if (match(line, /^_[^_]+_/) &&
substr(line, RSTART + RLENGTH) !~ /^[[:alnum:]]/) {
+4 -1
View File
@@ -164,8 +164,11 @@ function codegen_struct_field(d, cg, f, dispose, serialize, deserialize) {
indent(sprintf(serialize, f "[i]")))
}
# Avoiding a compiler warning on platforms where SIZE_MAX > UINT32_MAX.
append(cg, "deserialize", sprintf(CodegenDeserialize["u32"], f "_len") \
"\tif (!(" f " = calloc(" f "_len + 1, sizeof *" f ")))\n" \
"\tif (" f "_len + 0ull == SIZE_MAX)\n" \
"\t\treturn false;\n" \
"\tif (!(" f " = calloc(" f "_len + 1ull, sizeof *" f ")))\n" \
"\t\treturn false;\n")
if (d["type"] == "u8" || d["type"] == "i8") {
append(cg, "deserialize",
+8 -8
View File
@@ -35,7 +35,7 @@ is garbage-collected, unless *wait* has collected the process group leader.
wdye.expect ([pattern1, ...])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Waits until any pattern is ready, in order.
Waits until any of the patterns is ready, in order.
When no *timeout* (or *default*) patterns are included, one is added implicitly.
The function returns the matching _pattern_'s values, while replacing
@@ -44,8 +44,8 @@ passing the matching _pattern_ as their sole argument.
wdye.timeout {[timeout, ] [value1, ...]}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Returns a new timeout _pattern_. When no *timeout* is given, which is specified
in seconds, a default timeout value is assumed. Any further values
Returns a new timeout _pattern_. The *timeout* is specified in seconds.
When none is given, a default timeout value is assumed. Any further values
are remembered to be later processed by *expect*.
wdye.continue ()
@@ -55,21 +55,21 @@ all processing.
PROCESS.buffer
~~~~~~~~~~~~~~
A string with the _process_' current read buffer contents.
A string with the _process_'s current read buffer contents.
PROCESS.pid
~~~~~~~~~~~
An integer with the _process_' process ID, or -1 if *wait* has collected it.
An integer with the _process_'s process ID, or -1 if *wait* has collected it.
PROCESS.term
~~~~~~~~~~~~
A table with the _process_' *terminfo*(5) capabilities,
A table with the _process_'s *terminfo*(5) capabilities,
notably containing all **key_...** codes.
This functionality may not be enabled, then this table will always be empty.
PROCESS:send ([string, ...])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Writes the given strings to the _process_' terminal slave,
Writes the given strings to the _process_'s terminal slave,
and returns the _process_ for method chaining.
Beware of echoing and deadlocks, as only *expect* can read from the _process_,
@@ -85,7 +85,7 @@ When the *nocase* option is _true_, the expression will be matched
case-insensitively.
Unless the *notransfer* option is _true_, all data up until the end of the match
will be erased from the _process_' read buffer upon a successful match.
will be erased from the _process_'s read buffer upon a successful match.
PROCESS:exact {literal [, nocase=true] [, notransfer=true] [, value1, ...]}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~