refactor(lex_parser): replace core_pos_* functions with scc_pos_* equivalents

Update all position tracking calls in lex_parser.c to use the scc_pos_* function family (scc_pos_next, scc_pos_next_line) instead of the deprecated core_pos_* variants. This ensures consistency with the scc naming convention and prepares for future removal of the old core functions.
This commit is contained in:
zzy
2025-12-12 21:33:51 +08:00
parent 897ef449fb
commit 94d3f46fac
5 changed files with 27 additions and 54 deletions

View File

@@ -14,12 +14,12 @@ static inline scc_pos_t scc_pos_init() {
return (scc_pos_t){scc_cstring_new(), 1, 1, 0};
}
static inline void core_pos_next(scc_pos_t *pos) {
static inline void scc_pos_next(scc_pos_t *pos) {
pos->offset++;
pos->col++;
}
static inline void core_pos_next_line(scc_pos_t *pos) {
static inline void scc_pos_next_line(scc_pos_t *pos) {
pos->offset++;
pos->line++;
pos->col = 1;