refactor(argparse): 将null替换为nullptr以提高C++兼容性
- 在argparse库中将所有null指针常量替换为nullptr - 更新头文件和源文件中的指针初始化和比较操作 - 修改测试文件中的相关断言检查 - 更新AST定义文件中的注释说明
This commit is contained in:
@@ -148,11 +148,11 @@ void scc_argparse_print_error(scc_argparse_context_t *ctx,
|
||||
|
||||
static inline void scc_argparse_spec_init(scc_argparse_spec_t *spec) {
|
||||
spec->value_type = SCC_ARGPARSE_VAL_TYPE_STRING;
|
||||
spec->raw_value = null;
|
||||
spec->store.ptr_store = null;
|
||||
spec->raw_value = nullptr;
|
||||
spec->store.ptr_store = nullptr;
|
||||
|
||||
spec->choices.count = 0;
|
||||
spec->choices.values = null;
|
||||
spec->choices.values = nullptr;
|
||||
|
||||
spec->flag_required = false;
|
||||
spec->flag_store_as_count = false;
|
||||
|
||||
Reference in New Issue
Block a user