| Files | Last commit | Last update |
|---|---|---|
refactor(selfdev): split long functions in the shared-memory transport What: - Publisher, subscriber, listener, platform and runtime code: long functions are split into private helpers along their existing steps (socket setup, handshake handling, segment growth, delivery, event dispatch). - Tests, the test peer and the benchmark tool: repeated or long blocks move into small helper functions. - The two OHOS probe programs: main is split into one function per checked step. Why: The size check limits function length, nesting depth and branch count. Behaviour, messages, error codes and the order of checks are unchanged; no copies or allocations were added on the publish and take paths. Verification: - ibmw_selfdev_shm_test: 110 passed, 1 skipped (needs root, as before). - ctest -R shm: 3/3 passed. - The OHOS C programs pass gcc -fsyntax-only. - clang-format --dry-run -Werror on the changed files is clean. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 6 days ago |