From d1fa5ccd4d36c3bc27bb79275dc14e783e47baaa Mon Sep 17 00:00:00 2001 From: Rangi42 Date: Wed, 28 Feb 2024 21:01:49 -0500 Subject: [PATCH] Rename `lexer_DeleteState` to `lexer_CleanupState` --- include/asm/lexer.hpp | 2 +- src/asm/fstack.cpp | 2 +- src/asm/lexer.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/asm/lexer.hpp b/include/asm/lexer.hpp index 5866d30c..65ea2a11 100644 --- a/include/asm/lexer.hpp +++ b/include/asm/lexer.hpp @@ -122,7 +122,7 @@ bool lexer_OpenFile(struct LexerState &state, char const *path); void lexer_OpenFileView(struct LexerState &state, char const *path, char *buf, size_t size, uint32_t lineNo); void lexer_RestartRept(uint32_t lineNo); -void lexer_DeleteState(struct LexerState &state); +void lexer_CleanupState(struct LexerState &state); void lexer_Init(void); void lexer_SetMode(enum LexerMode mode); void lexer_ToggleStringExpansion(bool enable); diff --git a/src/asm/fstack.cpp b/src/asm/fstack.cpp index 8c1943b3..991545a7 100644 --- a/src/asm/fstack.cpp +++ b/src/asm/fstack.cpp @@ -237,7 +237,7 @@ bool yywrap(void) contextStack.pop(); - lexer_DeleteState(oldContext.lexerState); + lexer_CleanupState(oldContext.lexerState); // Restore args if a macro (not REPT) saved them if (oldContext.fileInfo->type == NODE_MACRO) { macro_FreeArgs(macro_GetCurrentArgs()); diff --git a/src/asm/lexer.cpp b/src/asm/lexer.cpp index a6d4d89f..ef9a91c2 100644 --- a/src/asm/lexer.cpp +++ b/src/asm/lexer.cpp @@ -451,7 +451,7 @@ void lexer_RestartRept(uint32_t lineNo) lexerState->lineNo = lineNo; } -void lexer_DeleteState(struct LexerState &state) +void lexer_CleanupState(struct LexerState &state) { // A big chunk of the lexer state soundness is the file stack ("fstack"). // Each context in the fstack has its own *unique* lexer state; thus, we always guarantee