Stu Black trurl
trurl commented on pull request vitrine/wmaker#7 2025-12-08 13:38:01 -05:00
Rewrite WUtils notification.c in Rust

It is not entirely clear to me if this delegation machinery is going to stick around, so I don't want to spend time on making it nicer to use right now. (As far as I can tell, it is partially used…

trurl pushed to refactor/wutil-rs-notification at trurl/wmaker 2025-12-08 13:32:11 -05:00
d3dac752cc Indent with tabs, as is standard for this file.
trurl commented on pull request vitrine/wmaker#7 2025-12-08 13:30:12 -05:00
Rewrite WUtils notification.c in Rust

It's not you. This was a tabs/spaces thing. I think I've fixed it in the .c files I touched in this PR.

trurl commented on pull request vitrine/wmaker#7 2025-12-08 13:27:10 -05:00
Rewrite WUtils notification.c in Rust

Ok, that makes sense.

trurl pushed to refactor/wutil-rs-notification at trurl/wmaker 2025-12-08 13:26:23 -05:00
0893be1cea Use BTreeMap instead of HashMap for notification subscriptions.
d8057575ce Use a helper method for adding notification listeners.
d8912c58e6 Fix typo in comment.
b7f765e3f6 Rewrite WINGs/notification.c in Rust.
d88d626fbe Remove direct creation and posting of notifications from WINGs.
Compare 23 commits »
trurl commented on pull request vitrine/wmaker#7 2025-12-08 13:14:44 -05:00
Rewrite WUtils notification.c in Rust

Sure. Done.

trurl commented on pull request vitrine/wmaker#7 2025-12-08 13:07:07 -05:00
Rewrite WUtils notification.c in Rust

Done. Thanks!

trurl pushed to refactor/wutil-rs at trurl/wmaker 2025-12-08 13:04:39 -05:00
0097d1819e Move functions on Bag which were only called by FFI code inline.
8270124869 Nix dead code that was left commented out.
89183f3bcb Rewrite WMBag in Rust.
46e540b1b1 Prune the WMBag API in preparation for rewriting it in Rust.
9802b684ae Rewrite WINGs/tree.c in Rust.
Compare 7 commits »
trurl deleted branch refactor/wutil-rs-bagtree from trurl/wmaker 2025-12-08 13:00:36 -05:00
trurl pushed to refactor/wutil-rs at vitrine/wmaker 2025-12-08 13:00:36 -05:00
0097d1819e Move functions on Bag which were only called by FFI code inline.
8270124869 Nix dead code that was left commented out.
89183f3bcb Rewrite WMBag in Rust.
46e540b1b1 Prune the WMBag API in preparation for rewriting it in Rust.
Compare 4 commits »
trurl merged pull request vitrine/wmaker#4 2025-12-08 13:00:34 -05:00
Rewrite WUtils bagtree.c in Rust
trurl pushed to refactor/wutil-rs-bagtree at trurl/wmaker 2025-12-08 13:00:18 -05:00
0097d1819e Move functions on Bag which were only called by FFI code inline.
8270124869 Nix dead code that was left commented out.
89183f3bcb Rewrite WMBag in Rust.
46e540b1b1 Prune the WMBag API in preparation for rewriting it in Rust.
9802b684ae Rewrite WINGs/tree.c in Rust.
Compare 15 commits »
trurl deleted branch refactor/wutil-rs-tree from trurl/wmaker 2025-12-08 12:59:53 -05:00
trurl pushed to refactor/wutil-rs at vitrine/wmaker 2025-12-08 12:59:51 -05:00
9802b684ae Rewrite WINGs/tree.c in Rust.
0a04a4c12e Remove depthFirst parameter from WMTreeWalk.
e1a263cc5b Prune unused WMTree API functions.
Compare 3 commits »
trurl merged pull request vitrine/wmaker#6 2025-12-08 12:59:50 -05:00
Rewrite WUtils tree.c in Rust
trurl pushed to refactor/wutil-rs-tree at trurl/wmaker 2025-12-08 12:59:26 -05:00
9802b684ae Rewrite WINGs/tree.c in Rust.
0a04a4c12e Remove depthFirst parameter from WMTreeWalk.
e1a263cc5b Prune unused WMTree API functions.
c298b5f96f Avoid an unnecessary allocation in wtrimspace.
dfd77b11a9 Don't scan ahead unnecessarily in wstrndup.
Compare 10 commits »
trurl commented on pull request vitrine/wmaker#6 2025-12-08 12:58:38 -05:00
Rewrite WUtils tree.c in Rust

I think this is going to be replaced soon enough, so I'll merge as-is.

trurl pushed to refactor/wutil-rs at trurl/wmaker 2025-12-08 12:47:03 -05:00
c298b5f96f Avoid an unnecessary allocation in wtrimspace.
dfd77b11a9 Don't scan ahead unnecessarily in wstrndup.
927cc93e0a Add string.rs to Makefile.am for wutil-rs.
d2046de7ff Unit tests for wtokenjoin.
a7a44397a4 Rewrite all functions from WUtils string.c in Rust.
Compare 7 commits »
trurl deleted branch refactor/wutil-rs-string from trurl/wmaker 2025-12-08 12:40:59 -05:00
trurl pushed to refactor/wutil-rs at vitrine/wmaker 2025-12-08 12:40:58 -05:00
c298b5f96f Avoid an unnecessary allocation in wtrimspace.
dfd77b11a9 Don't scan ahead unnecessarily in wstrndup.
927cc93e0a Add string.rs to Makefile.am for wutil-rs.
d2046de7ff Unit tests for wtokenjoin.
a7a44397a4 Rewrite all functions from WUtils string.c in Rust.
Compare 7 commits »