File: flags.diff

package info (click to toggle)
tclex 1.2a1-20
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 788 kB
  • sloc: ansic: 3,784; tcl: 452; makefile: 87; sh: 71; lex: 48
file content (21 lines) | stat: -rw-r--r-- 645 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Sergei Golovan
Subject: Patch adapts tcLex to the changes in the Tcl internal
 Command structure.
Date: Thu, 27 Mar 2025 13:43:32 +0300

--- a/src/tcLex.c
+++ b/src/tcLex.c
@@ -1145,7 +1145,13 @@
     
     currentLexer = LexerGetCurrent(interp);
     if (currentLexer) {
+#if defined(CMD_IS_DELETED)
+	if (((Command*)currentLexer->command)->flags & CMD_IS_DELETED)
+#elif defined(CMD_DYING)
+	if (((Command*)currentLexer->command)->flags & CMD_DYING)
+#else
 	if (((Command*)currentLexer->command)->deleted)
+#endif
 	    /* If command has been deleted, the token is meaningless. Return no result */
 	    Tcl_ResetResult(interp);
 	else