Commit Graph

9 Commits

Author SHA1 Message Date
李通洲 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
Linus Dierheimer 19a9b18c69 Disk: Linux impl working 2022-10-17 13:19:48 +02:00
李通洲 47a0b8969f FFstrbuf: more inline fns and more tests 2022-09-26 14:57:54 +08:00
李通洲 737b36e799 FFstrbuf / FFlist: add some improvements
1. make some short fns inlinable
2. simplify implementation
3. fix possible crashes with non-allocated strbuf
4. make the default init fn allocates no memory
5. add more tests
2022-09-24 22:18:48 +08:00
李通洲 9eeb216b70 util: add check macros to avoid possible mistakes 2022-09-16 23:43:08 +08:00
Linus Dierheimer bd3c236480 a bit better parsing of fonts 2021-05-23 19:40:34 +02:00
Linus Dierheimer a389b89ff0 supprt for custom / multiple config dirs 2021-05-07 14:55:43 +02:00
Linus Dierheimer d469120e9b format string more like template language 2021-04-24 21:42:48 +02:00
Linus Dierheimer 9bc1f2a116 much more efficient caching 2021-04-15 18:59:26 +02:00