李通洲
e0eba8ce21
Chore: run clang-format
...
```bash
find . -type f \( -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.hpp" \) ! -path "src/3rdparty/*" -print0 | xargs -0 clang-format -i
```
2026-03-29 10:03:32 +08:00
Carter Li
d60b25e424
Refactor: renames src/util to src/common
2026-01-06 09:48:38 +08:00
Carter Li
61690a1804
Util: moves util/io/io.h to util/io.h
2026-01-06 09:13:40 +08:00
李通洲
1e43e35857
Chore: merges common/* into util/*
2026-01-05 17:54:41 +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
李通洲
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
Carter Li
1c598add39
Chore (Linux): always ignore hidden files when enumerating directories
2024-10-15 10:16:58 +08:00
Carter Li
b5a8d6b86d
PowerAdapter (Linux): simplify
2024-10-12 10:42:13 +08:00
Carter Li
71db83f806
PowerAdapter (Linux): don't print not connected either
...
To align result to macOS
2024-02-08 13:51:30 +08:00
李通洲
0746afa0c2
PowerAdapter (macOS): don't show not connected if no power adapter is detected
2024-02-08 10:53:58 +08:00
Carter Li
7d7789565b
PowerAdapter (macOS): improve detection for Intel macbook
2024-01-20 21:46:57 +08:00
李通洲
396112e8ea
PowerAdapter: simplify implementation and support serial number detection
2024-01-05 11:01:32 +08:00
Carter Li
5c75e271ef
PowerAdapter (Linux): add support
2024-01-04 15:16:51 +08:00
李通洲
f9597eba39
Global: remove #ifndef FF_INCLUDED_* guards
2023-11-09 13:46:45 +08:00
李通洲
90ea096ca3
macOS: don't keep variable matchDict
2023-10-07 15:51:05 +08:00
李通洲
f995d8d806
PowerAdapter: rename PowerAdapterResult to FFPowerAdapterResult
2023-09-06 16:27:02 +08:00
李通洲
d0f093c567
Global: make FFinstance instance a global variable
...
As discussed in https://github.com/fastfetch-cli/fastfetch/discussions/473
2023-06-24 17:28:05 +08:00
李通洲
823f773e26
PowerAdapter: support JSON config
2023-06-10 09:15:15 +08:00
李通洲
f2540f00a5
Address some feedbacks
2022-10-09 23:23:46 +08:00
李通洲
5498b0b042
PowerAdapter: make it a seperated module
2022-09-23 15:33:23 +08:00