李通洲
abc6c0593c
Chore: IndentPPDirectives: BeforeHash [ci skip]
2026-04-15 16:17:08 +08:00
李通洲
c7ecc33b64
Global: removes FFlist::elementSize
...
Improves performance of module Sound and PhysicalMemory
2026-04-14 15:47:26 +08:00
李通洲
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
李通洲
1e43e35857
Chore: merges common/* into util/*
2026-01-05 17:54:41 +08:00
李通洲
8c86003220
Common: introduces FF_LIBRARY_LOAD_MESSAGE to simplify library-loading
2026-01-05 17:54:41 +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
李通洲
2b20ed873c
GPU: update JSON result structure; fix segfault and memleaks
2025-03-24 22:56:00 +08:00
Carter Li
ddce9b2357
GPU: rename ffGetGPUVendorString to ffGPUGetVendorString
2024-12-28 15:26:17 +08:00
李通洲
b257134d74
Chore: introduce macro ARRAY_SIZE
2024-10-18 16:44:41 +08:00
Carter Li
e2474d1238
OpenCL: print more detailed error messages
2024-10-11 13:28:10 +08:00
michela feng
9332f42889
GPU: detect GPU index ( #1267 )
2024-09-19 15:22:09 +08:00
李通洲
c9d539090d
Global: remove --lib-xxx support
2024-09-04 15:56:11 +08:00
李通洲
c549a5cab8
GPU (macOS): report core usage
2024-08-01 13:54:03 +08:00
李通洲
408a2d731a
GPU: support printing frequency in MHz
2024-07-17 15:49:12 +08:00
李通洲
ddbafd1cca
OpenCL: use the newest supported OpenCL version
2024-06-21 09:18:08 +08:00
李通洲
16d70eed03
GPU: report deviceId in JSON output
2024-06-21 08:57:08 +08:00
李通洲
bf15adf57a
OpenCL (Linux): fix crashing on AlpineLinux
2024-06-21 08:45:21 +08:00
李通洲
dbd1f96353
OpenCL: don't use NULL as platform id
2024-06-20 19:44:08 +08:00
李通洲
8b3cff33da
OpenCL: use strong typing
2024-06-20 15:54:08 +08:00
李通洲
146c9b2bc6
OpenCL: fix building when OpenCL is disabled
2024-06-20 15:34:09 +08:00
李通洲
3c7cb339e2
OpenCL: fix building on non-apple platforms
2024-06-20 15:14:52 +08:00
李通洲
6318668d0b
GPU: support detect gpu devices with OpenCL
2024-06-20 15:14:52 +08:00
李通洲
96fc1db85e
OpenCL: detect GPU info
2024-06-20 15:14:52 +08:00
Sergey Fedorov
27aa5c0343
opencl.c: unbreak build on macOS with no OpenCL support ( #940 )
...
Fixes: https://github.com/fastfetch-cli/fastfetch/issues/939
2024-05-19 21:51:46 +08:00
李通洲
0282b884cc
OpenCL: fix possible segfaults
...
Found in Alpine Linux
2024-01-26 09:38:08 +08:00
李通洲
f9597eba39
Global: remove #ifndef FF_INCLUDED_* guards
2023-11-09 13:46:45 +08:00
李通洲
2c49dcceaf
Options (Library): split code
2023-10-25 16:24:24 +08:00
李通洲
cdaf5e9281
OpenCL: JSON format support
2023-09-07 09:20:52 +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
李通洲
da76c6efbe
Global: refactor strncmp to ffStrStartsWith
2023-06-19 17:11:57 +08:00
李通洲
60cf3ec861
OpenCL: split detection code
2023-04-25 19:08:27 +08:00