李通洲
8ea4468eec
Common (Endian): adds new header
2026-09-01 00:20:40 +08:00
李通洲
61656a1a7a
Global: replaces __attribute__ to C23 [[attribute]]
2026-07-11 08:14:21 +08:00
李通洲
ba18705d2e
Global: replaces NULL to nullptr
2026-07-10 18:10:09 +08:00
Carter Li
873454191f
Global: uses typed enums
2026-07-10 18:09:46 +08:00
Carter Li
d1bf208a92
Chore: renames stringUtils to strutil
2026-05-28 15:58:08 +08:00
李通洲
c7ecc33b64
Global: removes FFlist::elementSize
...
Improves performance of module Sound and PhysicalMemory
2026-04-14 15:47:26 +08:00
Carter Li
f6a363f7ad
Global: unifies GCC attributes usage
2026-04-09 20:02:04 +08:00
Carter Li
6cf403da7d
Global: renames smbiosHelper to smbios
2026-03-31 20:01:25 +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
795bbde459
Smbios: improves robostness; adds maiformed SMBIOS data verification and more debug log
2026-03-24 15:12:21 +08:00
Carter Li
ea4a4f0691
CPUCache (Linux): makes shared cache dedupe key boundary-safe
...
Fixes #2228
2026-03-16 09:52:43 +08:00
李通洲
7ea0bbfb21
CPU / CPUCache (Windows): prefers NtQuerySystemInformation(Ex)
2026-03-03 16:01:36 +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
李通洲
d236850119
CPUCache (macOS): fixes cache line size detection
2025-12-11 14:38:06 +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
李通洲
7562e05123
Chore: fix a lot code smell
2025-03-25 22:08:50 +08:00
李通洲
97e1b987dd
Global: pack all enums and make flag enums unsigned
2024-11-14 11:00:44 +08:00
李通洲
7c8250c68c
StringUtil: rename ffStrCopy and correctly reflect its usage
2024-11-11 18:02:23 +08:00
李通洲
b257134d74
Chore: introduce macro ARRAY_SIZE
2024-10-18 16:44:41 +08:00
李通洲
48bb5b8746
Chore: use ffStrCopyN instead of strlcpy
2024-10-17 22:29:38 +08:00
李通洲
993902916d
Chore: don't use strncpy in favor of strlcpy
...
strncpy doesn't require target to be NUL terminated
2024-10-17 16:16:04 +08:00
Carter Li
edf24d9820
CPUCache: add detection by SMBIOS
2024-06-21 23:07:07 +08:00
Carter Li
d35490aeef
Fastfetch: make it compile on SunOS
2024-06-16 01:02:48 +08:00
李通洲
58f7d6fed4
CPUCache (Linux): report error if cache size is unavailable (Android)
2024-06-07 20:43:26 +08:00
Carter Li
f2ff20d69c
CPUCache (Linux): detect cache line size
2024-06-05 16:11:52 +08:00
李通洲
e8ddd33614
CPUCache (macOS): detect cache line size
2024-06-05 16:11:52 +08:00
李通洲
1e5a6b2eef
CPUCache (FreeBSD): fix build
2024-06-05 15:45:26 +08:00
李通洲
84c2564c54
CPUCache (Windows): detect cache line size
2024-06-05 15:44:36 +08:00
李通洲
00f7334a3a
CPUCache (macOS): add support
2024-06-05 14:35:25 +08:00
Carter Li
df9144ea31
CpuCache: move to a new module; add linux impl
2024-06-05 14:35:25 +08:00