Re: [PATCH 3/3] argparse: use enums to remove max-value defines in lists

2025-06-03 Thread fengchengwen
It looks more clear and user-friendly for splitting the flag. Acked-by: Chengwen Feng On 2025/5/27 17:21, Bruce Richardson wrote: > The use of lists of #defines with _MAX entries at the end causes issues > for ABI compatibility as those MAX values often leak through to > applications and can caus

[PATCH 3/3] argparse: use enums to remove max-value defines in lists

2025-05-27 Thread Bruce Richardson
The use of lists of #defines with _MAX entries at the end causes issues for ABI compatibility as those MAX values often leak through to applications and can cause issues when changed. We can rework the code to increase type safety by splitting the flags field and using enums for each set of values