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:
parent
4b6872d053
commit
4f653d8fbe
6 changed files with 232 additions and 2 deletions
21
src/scheduler/include/cli_compat.h
Normal file
21
src/scheduler/include/cli_compat.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue