17 Commits
Author SHA1 Message Date
Liu 464eed1402 build: centralize package versions and standardize on C11
versions.json is now the single source of truth; scripts/sync-versions.mjs keeps xmake descriptors, tracked version headers and package.json in sync. Sub-library versions are aligned with the published 1.0.0 packages. C11 is set at the project level, and _GNU_SOURCE is defined on POSIX so strict C11 still exposes clock_gettime, strdup and recursive pthread mutexes.
2026-11-19 22:03:59 +08:00
Liu 2e58a3936d refactor(ctest): implement timing without yutil
ctest only used y_gettime() for the elapsed time report, which pulled the yutil static library and its private dependency ordering into every test target. Replace it with a local monotonic clock (clock_gettime on POSIX, GetTickCount on Windows) and drop the yutil dependency from ctest and ctest-tests.
2026-11-19 01:20:07 +08:00
Liu 3801fdc10f refactor(yutil): rename public APIs and migrate timer to ptk
- charset module renamed to encoding (decode/encode kept)
- time: get_time_ms → y_gettime, sleep_ms → y_sleep
- time: delete get_time_us, get_time_delta, sleep_s
- string: strdup2 → y_strdup, wcsdup2 → y_wcsdup
- string: strtolower → y_strlower, strtrim → y_strtrim
- string: wcstrim → y_wcstrim, strhash → y_strhash
- string: strreplace → y_strreplace, strsplit → y_strsplit
- string: delete wcsreplace, cmdsplit
- math: delete y_iround, y_pow2
- timer module migrated from yutil to ptk as internal timer_scheduler
- WinMain simplified to use __argc/__argv instead of cmdsplit

BREAKING CHANGE: all renamed yutil public APIs require downstream
  to update function names. Deleted APIs require code changes:
  - get_time_us: use y_gettime() for ms timestamps
  - get_time_delta: use y_gettime() - start instead
  - sleep_s: use y_sleep(ms) with millisecond argument
  - wcsreplace: no replacement, had zero callers
  - cmdsplit: WinMain now uses __argc/__argv from CRT
  - timer_list_*: migrated to ptk timer_scheduler_*;
    ptk_reset_timer still available for external use
2026-08-05 22:42:26 +08:00
Liu 6cd01b468e chore: update copyright comment 2026-08-05 22:42:22 +08:00
Liu 7f9f52b904 chore: update copyright and email 2026-08-05 22:42:16 +08:00
Liu c6cb7da777 feat(ctest): add suite filter, list and CTEST_MAIN macro
Introduce ctest_suite_t, ctest_parse_args, ctest_run_suites and CTEST_MAIN macro to standardize test binary entry points. Support --grep / --grep= / --list / --interactive / --help. Add lib/ctest/tests/ for self-tests covering str converters and grep filter logic.
2026-08-05 22:41:10 +08:00
Liu 940a0fc33a chore: update copyright 2025-01-05 23:29:56 +08:00
Liu 30ce628ed4 feat(ctest): add ctest_equal_wcs() 2024-05-13 22:49:23 +08:00
Liu d60ec9227d chore: update copyright year 2024-05-13 22:49:22 +08:00
Liu 023b35e245 chore: add copyright header 2024-05-13 22:49:20 +08:00
Liu 59e3220370 style: euqal -> equal 2024-05-13 22:49:18 +08:00
Liu 27db5aeede feat: add i18n library 2023-06-03 17:52:22 +08:00
Liu c2930907cb feat: add libui-router 2023-05-03 17:49:51 +08:00
Liu f3f1fc612c feat: update libctest 2023-05-02 14:44:41 +08:00
Liu f5d0d120a2 refactor: update header files and xmake.lua 2023-04-30 00:31:47 +08:00
Liu d4ea54a78a refactor: remove some dependencies of libui 2023-04-01 22:36:10 +08:00
Liu 98632bdfca feat: merge libimage, libtext and libfont into pandagl 2023-04-01 22:36:08 +08:00