Bugzilla – Attachment 204 Details for
Bug 199
Tokeniser is fully running inside a disabled code block, can cause problems
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
The patches!
0001-Fix-for-199-stop-tokenising-after-the-first-symbol-w.patch (text/plain), 870 bytes, created by
ggn
on 2022-12-20 13:43:49 CST
(
hide
)
Description:
The patches!
Filename:
MIME Type:
Creator:
ggn
Created:
2022-12-20 13:43:49 CST
Size:
870 bytes
patch
obsolete
>From 3b2eaf387c9c697cd3c733360d9ae3a248258480 Mon Sep 17 00:00:00 2001 >From: ggn <ggn@atari.org> >Date: Tue, 20 Dec 2022 21:39:51 +0200 >Subject: [PATCH] Fix for #199 - stop tokenising after the first symbol when > inside a disabled code blcok > >--- > token.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > >diff --git a/token.c b/token.c >index 89c7f0a..9cbf8b4 100644 >--- a/token.c >+++ b/token.c >@@ -1257,6 +1257,14 @@ DEBUG { printf("TokenizeLine: Calling fpop() from SRC_IFILE...\n"); } > if (stuffnull) // Arrange for string termination on next pass > nullspot = ln; > >+ if (disabled) >+ { >+ // When we are in a disabled code block, the only thing that can break out >+ // of this is an ".endif" keyword, so this is the minimum we have to parse >+ // in order to discover such a keyword. >+ goto goteol; >+ } >+ > continue; > } > >-- >2.38.1.windows.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 199
: 204