Yelninei
71fbe04367
Start work on GNU
2025-08-24 11:29:01 +01:00
李通洲
8589bf2392
Chore: silence compiler warnings
2025-08-23 15:31:42 +08:00
Carter Li
de2dff5da0
Common: corrects the position for appending milliseconds
2025-08-20 11:07:53 +08:00
Carter Li
b05c54486f
LocalIP (Linux): improves netlink route parsing by avoiding possible message truncation
...
Fixes #1919
2025-08-20 11:07:06 +08:00
李通洲
ec0fa89cc8
Common: refactors number formatting to use type-specific append functions
2025-08-19 17:22:11 +08:00
李通洲
7f48500cfd
Format: replaces format specifiers with type-safe append functions
2025-08-19 16:04:00 +08:00
李通洲
8e282a3865
Duration: use ffStrbufAppendUInt
2025-08-19 15:19:12 +08:00
李通洲
ea86273a0e
Common: refactors time formatting to use a shared buffer and utility macro
2025-08-19 09:49:43 +08:00
李通洲
805e277429
JsonConfig: adds 'succeeded' module condition to JSON config
...
Fixes #1908
2025-08-18 14:18:37 +08:00
李通洲
3b5e9c74d6
Modules: return bool to indicate whether the detection is succeeded
2025-08-18 13:38:30 +08:00
李通洲
6356f9d0e5
Netif (Linux): improves default route detection and error handling
...
Ref: #1902
2025-08-16 17:15:44 +08:00
李通洲
597c6f3dbc
Netif (Linux): add verbose logs
2025-08-16 15:13:07 +08:00
李通洲
81bac8bca4
Percent: refactors bar color logic for clarity and consistency; update examples
2025-08-14 16:47:30 +08:00
李通洲
56d22292b0
Revert "Percent: fix a copy-paste error"
...
This reverts commit 3345c1e9dd .
2025-08-14 16:04:55 +08:00
李通洲
0fe3db419e
Separator: honors FQDN settings in Title module
2025-08-14 13:30:02 +08:00
李通洲
61f2823903
Global: fixes -ffast-math compatibility
...
Unifies unset double handling using `-DBL_MAX` sentinel
Fixes #1894
2025-08-14 10:01:34 +08:00
李通洲
146981009b
CommandLine: add --gen-config-full
2025-08-11 14:49:22 +08:00
李通洲
3345c1e9dd
Percent: fix a copy-paste error
2025-08-11 14:18:41 +08:00
李通洲
329cb229f8
Chore: remove unused functions
2025-08-10 23:15:13 +08:00
李通洲
bedb5eb6c5
Netif (SunOS): work around a bug that fails to detect default route for IPv4
2025-08-10 21:42:01 +08:00
李通洲
4588644d39
Networking (SunOS): fix compiler warnings
2025-08-09 18:35:53 +08:00
李通洲
ed94b4c46c
Netif (SunOS): fix compiler warnings
2025-08-09 18:34:25 +08:00
李通洲
8cfee9d693
Netif: unifies BSD netif handling
2025-08-08 11:03:04 +08:00
Carter Li
64568b31d1
Netif (Haiku): add preferred source addr
2025-08-08 10:03:43 +08:00
李通洲
be11013ae2
LocalIP (BSD): fix building
2025-08-07 23:28:54 +08:00
Carter Li
a84c4dc1f4
Netif: refactor API for dual-stack route detection
...
Unifies IPv4 and IPv6 default route queries under a shared result structure and per-family functions. Improves clarity and extensibility by centralizing route logic, streamlining detection of preferred interfaces, and updating all consumers to use the new API.
Prepares for more robust multi-protocol network information handling.
2025-08-07 16:35:42 +08:00
李通洲
b20aea7ab8
Netif (BSD): split different implementations
2025-08-06 13:58:41 +08:00
Jannis Pohl
5e770dc8b0
LocalIP: consider preferred source address when retrieving default route ( #1883 )
...
* LocalIP: consider preferred source address when retrieving default route
* LocalIP: fix logic error when there is no preferred source address
* LocalIP: use macros rather than manual free/close
* LocalIP(BSD): fix build error
* LocalIP: address Copilot suggestions
2025-08-05 23:30:06 +08:00
李通洲
fa4e11c73b
JsonConfig: write all flags when generating config file
2025-08-05 16:47:48 +08:00
李通洲
75d2c668d0
Modules: refactor module option handling for static allocation
...
Moves module option structs out of global config and removes dynamic allocation, using static buffers and size assertions for safer, simpler management.
Refactors module initialization and destruction to work with isolated option structs, eliminating the need for the previous modules container and related code.
Unifies module option header usage and updates detection logic to leverage statically-sized option buffers, improving encapsulation and maintainability.
Simplifies module function signatures and reduces coupling between modules and config.
Enhances future extensibility and reliability by enforcing max size constraints and removing unnecessary indirections.
2025-08-04 14:46:01 +08:00
李通洲
6f8d276545
Modules: add init and destroy option callbacks to module info
2025-08-03 18:40:53 +08:00
李通洲
094d736d38
Modules: remove all parseCommandOptions and related stuff
2025-08-03 10:22:32 +08:00
Carter Li
59289bef6c
Percent: silense compiler warnings
2025-08-02 19:03:42 +08:00
李通洲
0b02543ef2
JsonConfig: refactor JSON key handling to improve safety and consistency
...
Also make keys case-sensitive
2025-08-02 18:51:03 +08:00
李通洲
3cef51ec4a
JsonConfig: refactor string buffer JSON handling for robustness
2025-08-02 17:41:19 +08:00
李通洲
ba3e26f2b4
Option: fix a possible null reference segfault
2025-08-01 16:05:18 +08:00
李通洲
54c5bc5110
Bar: refactor config to use nested objects and deprecates old fields
2025-08-01 15:12:30 +08:00
李通洲
c6675f82f0
Bar: add customizable bar color options for percentage bars
2025-08-01 15:03:24 +08:00
李通洲
afe2c85047
Bar: add configurable elapsed bar borders for percent bars
...
Fix #1875
2025-08-01 15:03:24 +08:00
李通洲
aa0bbd5aee
Percent: add option --percent-width
2025-07-30 15:06:16 +08:00
李通洲
a0174e8666
Global: add new unit related options
...
1. `--<module>-space-before-unit`
2. `--duration-abbreviation`
3. various code refactoring and cleanups
2025-07-30 15:03:23 +08:00
李通洲
a3182c31cb
Chore: add FF_C_NONNULL
2025-07-28 15:35:02 +08:00
李通洲
02c3254961
Netif (Windows): correct default route detection (v2)
2025-07-24 19:31:41 +08:00
李通洲
ccbb9e90ea
Netif (Windows): fix default route detection when the default adapter is disabled
...
This commit addresses an issue where the default route detection on Windows incorrectly identified a disabled adapter as the default route. Previously, when a user disabled the adapter configured as the default route, the system still reported it as active due to stale routing table entries.
2025-07-21 20:24:43 +08:00
李通洲
6c56348e54
JsonConfig: add modules[n].condition to run modules conditionally on different platforms
2025-07-18 15:45:25 +08:00
李通洲
8c6dc34654
Processing (*nix): fix compiling on Android 7
2025-07-18 13:27:17 +08:00
李通洲
cf2034b93e
Processing (Windows): redirect unused std handles to NUL to avoid potential errors
2025-07-18 10:39:11 +08:00
李通洲
f7db03b8c4
Processing (*nix): use traditional fork-exec on Android and OpenBSD
...
Fix https://github.com/termux/termux-packages/issues/25369
2025-07-18 10:37:52 +08:00
Carter Li
1ac1f1f889
Chore: silense compiler warnings
2025-07-16 15:19:48 +08:00
李通洲
468d1e0903
Display: add option --fraction-ndigits
...
to control number of digits to print when formatting ordinary fraction numbers
2025-07-16 10:33:20 +08:00