format using clang-format to formate code
This commit is contained in:
@@ -5,21 +5,21 @@
|
||||
|
||||
/* ====== 内存管理核心接口 ====== */
|
||||
|
||||
void* smcc_malloc(usize size);
|
||||
void* smcc_calloc(usize count, usize size);
|
||||
void* smcc_realloc(void *ptr, usize new_size);
|
||||
void *smcc_malloc(usize size);
|
||||
void *smcc_calloc(usize count, usize size);
|
||||
void *smcc_realloc(void *ptr, usize new_size);
|
||||
void smcc_free(void *ptr);
|
||||
|
||||
/* ====== 文件系统核心接口 ====== */
|
||||
|
||||
/* 文件句柄 - 不透明指针 */
|
||||
typedef struct smcc_file* smcc_file_t;
|
||||
typedef struct smcc_file *smcc_file_t;
|
||||
|
||||
/* 文件打开模式 - 只保留编译器真正需要的 */
|
||||
typedef enum {
|
||||
SMCC_FILE_READ, /* 读取源文件、头文件 */
|
||||
SMCC_FILE_WRITE, /* 写入目标文件、汇编文件 */
|
||||
SMCC_FILE_APPEND /* 日志、调试输出 */
|
||||
SMCC_FILE_READ, /* 读取源文件、头文件 */
|
||||
SMCC_FILE_WRITE, /* 写入目标文件、汇编文件 */
|
||||
SMCC_FILE_APPEND /* 日志、调试输出 */
|
||||
} smcc_file_mode_t;
|
||||
|
||||
/* 核心文件操作 */
|
||||
|
||||
Reference in New Issue
Block a user