feat(scheduler-sim-discrete-clock): --sim-speed deprecation-warning helper and discrete-clock test binary (task 1.1)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Rongsong Shen 2026-09-29 04:23:46 +00:00
parent 4b6872d053
commit 4f653d8fbe
Signed by untrusted user: rshen
GPG key ID: 80533536B0EB651C
6 changed files with 232 additions and 2 deletions

View file

@ -0,0 +1,21 @@
#if !defined(_CLI_COMPAT_H_)
#define _CLI_COMPAT_H_ 1
/*
* cli_compat.h - command-line compatibility shims for retired xce_scheduler
* options (scheduler-sim-discrete-clock spec, design.md, Components:
* CliCompat).
*/
/*
* sched_cli_warn_deprecated_options - logs one WARN per deprecated option
* that was given. sim_speed is the raw --sim-speed value as argp stored it
* (the last occurrence), or NULL when the option was not given.
*
* Call once, after mylog_init(), before any mode-specific startup. Never
* fails, never exits, never parses the value (Req 2.3, 2.4, 2.5).
*/
void sched_cli_warn_deprecated_options(const char* sim_speed);
#endif