李通洲
e8e586ce7c
Windows / macOS: simplify code
...
1. simplify resource management by using C++ RAII like GCC attribute extension `cleanup`
2. simplify HEKY reading
Actually `__attribute__((__cleanup__(cleanupFn)))` is supported on all major C compiler ( gcc, clang and icc ) except MSVC I only used it on Windows and macOS for now. Let's see if the project author like it.
2022-11-17 19:54:36 +08:00
李通洲
0bbecb3b33
Thread: silence compiler warnings
2022-11-17 00:13:25 +08:00
李通洲
a5306d60ee
Windows: enable console processing, disable output buffer
...
UCRT doesn't support line buffering, which makes modules being not printed ASAP
2022-11-15 14:50:57 +08:00
李通洲
9da7bb3f30
Networking: support nowait connection (Posix)
...
Thread was used for now.
It's possible to do nonblocking connect & send with io_uring on Linux, but it requires newer kernel and linking to liburing. I don't think it is worth the effort.
2022-11-03 20:25:09 +08:00
李通洲
46ebb52afa
Thread: split ffThreadCreateAndDetach; add ffThreadJoin
2022-11-03 20:25:09 +08:00
李通洲
4f97692245
Networking: support nowait connection (Windows)
2022-11-03 20:25:09 +08:00
Linus Dierheimer
45f8b86f13
Don't segfault if 0 is given as argument index
...
#326
2022-11-01 14:54:27 +01:00
李通洲
895d151e2e
Host: support freebsd
2022-10-27 11:15:53 +08:00
李通洲
e59d64513f
Silence warnings
2022-10-23 17:54:19 +08:00
李通洲
ed85b8249a
Init: enable buffering on Windows
2022-10-23 17:54:02 +08:00
李通洲
62ab091350
Printing: improve performace of ffPrintCharTimes
2022-10-23 10:46:09 +08:00
李通洲
0aac358e33
Init: simplify module arg parsing code
2022-10-23 10:08:02 +08:00
李通洲
e13c88cea6
Global: support bar output for percentage value #294
2022-10-22 16:15:12 +08:00
Linus Dierheimer
19a9b18c69
Disk: Linux impl working
2022-10-17 13:19:48 +02:00
李通洲
c1fc6e2762
Processing: handle a possible error
2022-10-15 21:59:50 +08:00
李通洲
3b541d3670
Thread: fix compile errors
2022-10-14 18:33:11 +08:00
李通洲
1b7a2c2ed5
MSYS2: remove support
...
MSYS2 version was built for smooth transition from POSIX api to Win32 api. It has almost identical output as Windows native version, except requiring msys runtime dll and being a bit slower.
2022-10-14 18:33:11 +08:00
Linus Dierheimer
693cc1e730
Fix build errors
2022-10-13 22:02:58 +02:00
李通洲
79cfa96616
Processing: fix Windows impl
2022-10-13 23:49:09 +08:00
李通洲
3cc6611614
Windows: support native Windows
2022-10-13 23:49:09 +08:00
李通洲
b33e042cd4
Library: support Windows
2022-10-13 23:49:08 +08:00
李通洲
06262c078d
TerminaFont: move windows specific code into its own file
2022-10-12 21:59:21 +08:00
李通洲
b64a234f8a
Networking: support Windows
2022-10-12 21:59:21 +08:00
李通洲
1b594d9ed1
Thread: add common thread abstraction layer, and make threading optional
2022-10-12 21:59:21 +08:00
李通洲
2a491a8da9
Merge remote-tracking branch 'origin/master' into msys2
2022-10-09 21:10:43 +08:00
Linus Dierheimer
b548c6405b
Destroy everything
...
#276
2022-10-09 13:34:55 +02:00
李通洲
661c174348
Merge remote-tracking branch 'origin/master' into msys2
2022-10-09 16:55:51 +08:00
Linus Dierheimer
1dd942a7b1
TARGET_DIR_ETC
2022-10-09 10:39:57 +02:00
李通洲
7c98450acc
OpenCL / Vulkan: enable support for Windows
2022-10-09 15:37:15 +08:00
李通洲
af6b7dd81b
Packages: add support for Windows
2022-10-09 15:37:15 +08:00
李通洲
89850535ae
Windows: replace __CYGWIN__ with __MSYS__
2022-10-09 15:37:14 +08:00
李通洲
09a2f96cf0
TerminalShell: add support for Windows
2022-10-09 15:37:14 +08:00
李通洲
a57e334d73
CpuUsage: support no wait detection on Windows
2022-10-09 15:37:14 +08:00
李通洲
015ad4a307
Fix possible memleaks
2022-10-09 15:37:13 +08:00
李通洲
230d2ac39d
Board: split out from host; add support for Windows
2022-10-06 23:03:15 +08:00
李通洲
c7e6e45078
Host: split Bios module; init support for Windows
2022-10-06 23:02:39 +08:00
李通洲
eaa4230bf5
Windows: add basic support for msys2
2022-10-06 23:01:19 +08:00
Carter Li
01dbd0c266
macOS: completely drop libplist dependency
2022-10-02 01:54:43 +08:00
李通洲
9418138892
Networking: ensure server returns 200 OK
2022-09-30 17:43:23 +08:00
Linus Dierheimer
e6e189497d
Refactor font output
2022-09-29 14:15:11 +02:00
李通洲
8a52836afc
Init: don't pay for unused module
...
Networking can be very slow
2022-09-29 18:33:37 +08:00
李通洲
9cf95620a9
Weather: add new module
2022-09-29 18:33:37 +08:00
李通洲
c72c6c4a27
PublicIp: add option to set public IP server URL
2022-09-29 18:33:37 +08:00
李通洲
e289db184c
PublicIp: improve performance
2022-09-29 18:33:37 +08:00
李通洲
db6ad5a268
CpuUsage: improve performance
...
by moving the first `/proc/stat` query earlier
2022-09-27 23:41:39 +08:00
李通洲
5096b4a81d
Common: add missing features
2022-09-27 23:30:55 +08:00
李通洲
5c64ce3b89
Users: add missing module settings
2022-09-27 23:30:55 +08:00
李通洲
38a6d07c85
TerminalFont: support Termux
2022-09-27 23:30:55 +08:00
李通洲
f324794f54
LocalIp: add option --localip-name-prefix
...
eg: --localip-name-prefix en
2022-09-26 16:20:51 +08:00
李通洲
b2da8bac41
Font: add option to display fonts inline ( enabled by default )
2022-09-26 15:29:11 +08:00