refactor(argparse): 将null替换为nullptr以提高C++兼容性

- 在argparse库中将所有null指针常量替换为nullptr
- 更新头文件和源文件中的指针初始化和比较操作
- 修改测试文件中的相关断言检查
- 更新AST定义文件中的注释说明
This commit is contained in:
zzy
2026-04-05 20:18:09 +08:00
parent 27d86d5685
commit 4144f7841c
76 changed files with 1430 additions and 998 deletions

View File

@@ -76,7 +76,7 @@ void scc_hashtable_init(scc_hashtable_t *ht,
* @param ht 哈希表实例指针
* @param key 键指针
* @param value 值指针
* @return 被替换的旧值指针(无替换返回NULL
* @return 被替换的旧值指针(无替换返回nullptr
*/
void *scc_hashtable_set(scc_hashtable_t *ht, const void *key, void *value);
@@ -84,7 +84,7 @@ void *scc_hashtable_set(scc_hashtable_t *ht, const void *key, void *value);
* @brief 查找键对应值
* @param ht 哈希表实例指针
* @param key 查找键指针
* @return 找到返回值指针,未找到返回NULL
* @return 找到返回值指针,未找到返回nullptr
*/
void *scc_hashtable_get(scc_hashtable_t *ht, const void *key);
@@ -92,7 +92,7 @@ void *scc_hashtable_get(scc_hashtable_t *ht, const void *key);
* @brief 删除键值对
* @param ht 哈希表实例指针
* @param key 要删除的键指针
* @return 被删除的值指针(不存在返回NULL
* @return 被删除的值指针(不存在返回nullptr
*
* @note 实际采用墓碑标记方式删除
*/