feat(argparse): 添加列表类型参数支持
新增 scc_argparse_list_t 类型用于处理多个字符串值的参数, 并添加相应的配置函数 scc_argparse_spec_setup_list。 fix(lexer): 调整关键字标记处理逻辑 将关键字子类型从 SCC_TOK_SUBTYPE_KEYWORD 改为 SCC_TOK_SUBTYPE_IDENTIFIER,并移除相关的枚举定义。 refactor(lexer): 优化跳过换行功能实现 修改 scc_lexer_skip_until_newline 函数实现,改进循环逻辑和错误处理。 feat(pproc): 完善预处理器条件编译支持 重构条件编译状态管理,添加对 #ifdef、#ifndef、#elifdef、 #else、#endif 等指令的支持,并实现嵌套条件处理。 refactor(pproc): 优化文件包含路径处理 添加最大包含深度限制,改进包含路径添加功能, 修复文件状态结构命名。 docs(log): 更新日志模块标准库依赖 调整 stdarg.h 包含逻辑,更新编译器内置宏定义名称。 feat(core): 扩展核心类型定义 添加基础数据类型别名定义,完善类型系统支持。 feat(main): 实现命令行包含路径参数 添加 -I/--include 参数支持,允许用户指定额外的头文件搜索路径。
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
#ifndef __SCC_CORE_TYPE_H__
|
||||
#define __SCC_CORE_TYPE_H__
|
||||
|
||||
#ifndef __SCC_BUILTIN_TYPE__
|
||||
#ifndef __SCC__
|
||||
#include <assert.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
@@ -48,6 +49,29 @@ static_assert(sizeof(cbool) == 1, "cbool size must 1");
|
||||
#define __scc_null
|
||||
#define __scc_isize
|
||||
#define __scc_usize
|
||||
|
||||
/* clang-format off */
|
||||
typedef __scc_i8 i8;
|
||||
typedef __scc_i16 i16;
|
||||
typedef __scc_i32 i32;
|
||||
typedef __scc_i64 i64;
|
||||
typedef __scc_u8 u8;
|
||||
typedef __scc_u16 u16;
|
||||
typedef __scc_u32 u32;
|
||||
typedef __scc_u64 u64;
|
||||
|
||||
typedef __scc_isize isize;
|
||||
typedef __scc_usize usize;
|
||||
typedef __scc_isize pdiff;
|
||||
|
||||
typedef __scc_f32 f32;
|
||||
typedef __scc_f64 f64;
|
||||
|
||||
typedef __scc_bool cbool;
|
||||
/// void / null
|
||||
#define null __scc_null
|
||||
|
||||
/* clang-format on */
|
||||
#endif
|
||||
|
||||
typedef union scc_cvalue {
|
||||
|
||||
Reference in New Issue
Block a user