From 89538ccd6a5163cdd02b7396c6254cc373e4a019 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Tue, 22 Sep 2020 17:18:57 +0200 Subject: [PATCH] Mark not unmapping macro-containing files as okay There isn't really a better alternative. Making several mappings instead requires too much bookkeeping. --- src/asm/lexer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/asm/lexer.c b/src/asm/lexer.c index e76785e89..5f191606d 100644 --- a/src/asm/lexer.c +++ b/src/asm/lexer.c @@ -304,7 +304,7 @@ struct LexerState { char *ptr; /* Technically `const` during the lexer's execution */ off_t size; off_t offset; - bool isReferenced; /* If a macro in this file requires not unmapping it*/ + bool isReferenced; /* If a macro in this file requires not unmapping it */ }; struct { /* Otherwise */ int fd; @@ -2004,7 +2004,6 @@ void lexer_CaptureMacroBody(char **capture, size_t *size) /* If the file is `mmap`ed, we need not to unmap it to keep access to the macro */ if (lexerState->isMmapped) - /* FIXME: this is godawful, but RGBASM doesn't even clean up anything anyways. */ lexerState->isReferenced = true; /*